Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
itoko committed Jan 17, 2024
1 parent 93eff2e commit 5dbb32f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/library/randomized_benchmarking/test_clifford_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ def test_clifford_synthesis_non_linear_connectivity(self, num_qubits):
"""Check if clifford synthesis with non-linear connectivity does not change Clifford"""
basis_gates = tuple(["rz", "sx", "cx"])
# star
coupling_tuple = ((tuple((0, i) for i in range(1, num_qubits))))
coupling_tuple = tuple((0, i) for i in range(1, num_qubits))
for seed in range(5):
expected = random_clifford(num_qubits=num_qubits, seed=seed)
circuit = _synthesize_clifford(expected, basis_gates, coupling_tuple)
synthesized = Clifford(circuit)
self.assertEqual(expected, synthesized)

# cycle
coupling_tuple = (tuple((i, (i + 1) % num_qubits) for i in range(num_qubits)))
coupling_tuple = tuple((i, (i + 1) % num_qubits) for i in range(num_qubits))
for seed in range(5):
expected = random_clifford(num_qubits=num_qubits, seed=seed)
circuit = _synthesize_clifford(expected, basis_gates, coupling_tuple)
Expand Down

0 comments on commit 5dbb32f

Please sign in to comment.