Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrazinskas committed Dec 22, 2023
1 parent ccab46d commit 724600b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/iqm/cirq_iqm/iqm_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def close_client(self):
def run_sweep( # type: ignore[override]
self, program: cirq.Circuit, params: cirq.Sweepable, repetitions: int = 1
) -> list[IQMResult]:

# validate the circuit for the device
self._device.validate_circuit(program)

Expand Down
6 changes: 0 additions & 6 deletions tests/test_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class TestSimplifyCircuit:
],
)
def test_simplify_circuit_eject_z(self, two_qubit_gate, qubits):

q0, q1 = qubits[:2]
c = cirq.Circuit()
c.append(
Expand All @@ -132,7 +131,6 @@ def test_simplify_circuit_eject_z(self, two_qubit_gate, qubits):
assert len(new) == 2

def test_simplify_circuit_merge_one_parameter_gates(self, qubits):

q0, q1 = qubits[:2]
c = cirq.Circuit()
c.append(
Expand All @@ -147,7 +145,6 @@ def test_simplify_circuit_merge_one_parameter_gates(self, qubits):
assert len(new) == 1

def test_simplify_circuit_drop_rz_before_measurement(self, qubits):

q0, q1 = qubits[:2]
c = cirq.Circuit()
c.append(
Expand All @@ -165,7 +162,6 @@ def test_simplify_circuit_drop_rz_before_measurement(self, qubits):
assert new[0].operations[0].qubits == (q1,)

def test_drop_rz_before_measurement(self, qubits):

q0, q1, q2 = qubits[:3]
c = cirq.Circuit()
c.append(
Expand All @@ -190,7 +186,6 @@ def test_drop_rz_before_measurement(self, qubits):
assert op.qubits == (q2,)

def test_drop_rz_before_measurement_drop_final(self, qubits):

q0, q1, q2 = qubits[:3]
c = cirq.Circuit()
c.append(
Expand All @@ -212,7 +207,6 @@ def test_drop_rz_before_measurement_drop_final(self, qubits):
assert op.qubits == (q0,)

def test_simplify_circuit_merge_one_qubit_gates(self, qubits):

q0 = qubits[0]
c = cirq.Circuit()
c.append(
Expand Down

0 comments on commit 724600b

Please sign in to comment.