Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 8, 2024
1 parent c105292 commit 4704913
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_randomized_benchmarking.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,9 @@ def test_generate_inv_dict_cliffords_file(tmp_path):
def test_layer_circuit_single_qubit(mocker, depth):
qubit = 0
rb_gen = RB_Generator(123)
single_qubit_spy = mocker.spy(rb_gen, 'layer_gen_single_qubit')
two_qubit_spy = mocker.spy(rb_gen, 'layer_gen_two_qubit')
single_qubit_spy = mocker.spy(rb_gen, "layer_gen_single_qubit")
two_qubit_spy = mocker.spy(rb_gen, "layer_gen_two_qubit")

circuit, indices = layer_circuit(rb_gen, depth, qubit)

# assert that generator was called expected number of times
Expand All @@ -213,9 +213,9 @@ def test_layer_circuit_single_qubit(mocker, depth):
def test_layer_circuit_two_qubit(mocker, depth):
qubit_pair = (0, 1)
rb_gen = RB_Generator(123, file="2qubitCliffs.json")
single_qubit_spy = mocker.spy(rb_gen, 'layer_gen_single_qubit')
two_qubit_spy = mocker.spy(rb_gen, 'layer_gen_two_qubit')
single_qubit_spy = mocker.spy(rb_gen, "layer_gen_single_qubit")
two_qubit_spy = mocker.spy(rb_gen, "layer_gen_two_qubit")

circuit, indices = layer_circuit(rb_gen, depth, qubit_pair)

# assert that generator was called expected number of times
Expand Down

0 comments on commit 4704913

Please sign in to comment.