Skip to content

Commit

Permalink
Format modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
pavoljuhas committed Aug 16, 2023
1 parent 15d428c commit 81ecbd5
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion cirq-core/cirq/ops/eigen_gate_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ def test_extrapolate():


def test_matrix():

for n in [1, 2, 3, 4, 0.0001, 3.9999]:
assert cirq.has_unitary(CExpZinGate(n))

Expand Down
2 changes: 1 addition & 1 deletion cirq-core/cirq/ops/pauli_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
""",
)

PAULI_GATE_LIKE = Union['cirq.Pauli', 'cirq.IdentityGate', str, int,]
PAULI_GATE_LIKE = Union['cirq.Pauli', 'cirq.IdentityGate', str, int]
document(
PAULI_GATE_LIKE,
"""An object that can be interpreted as a Pauli gate.
Expand Down
2 changes: 0 additions & 2 deletions cirq-core/cirq/protocols/unitary_protocol_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ def _test_gate_that_allocates_qubits(gate):
def test_decompose_gate_that_allocates_clean_qubits(
theta: float, phase_state: int, target_bitsize: int, ancilla_bitsize: int
):

gate = testing.PhaseUsingCleanAncilla(theta, phase_state, target_bitsize, ancilla_bitsize)
_test_gate_that_allocates_qubits(gate)

Expand All @@ -220,7 +219,6 @@ def test_decompose_gate_that_allocates_clean_qubits(
def test_decompose_gate_that_allocates_dirty_qubits(
phase_state: int, target_bitsize: int, ancilla_bitsize: int
):

gate = testing.PhaseUsingDirtyAncilla(phase_state, target_bitsize, ancilla_bitsize)
_test_gate_that_allocates_qubits(gate)

Expand Down
2 changes: 1 addition & 1 deletion cirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, num_qubits: int, initial_state: int = 0) -> None:
self.omega: complex = 1

# Apply X for every non-zero element of initial_state
for (i, val) in enumerate(
for i, val in enumerate(
big_endian_int_to_digits(initial_state, digit_count=num_qubits, base=2)
):
if val:
Expand Down
1 change: 0 additions & 1 deletion cirq-core/cirq/testing/random_circuit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ def test_random_circuit_reproducible_with_seed(seed):


def test_random_circuit_not_expected_number_of_qubits():

circuit = cirq.testing.random_circuit(
qubits=3, n_moments=1, op_density=1.0, gate_domain={cirq.CNOT: 2}
)
Expand Down
1 change: 0 additions & 1 deletion cirq-core/cirq/transformers/stratify.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ def _stratify_circuit(
ignored_ops = []
op_time_indices = {}
for op in moment:

# Identify the earliest moment that can accommodate this op.
min_time_index_for_op = circuits.circuit.get_earliest_accommodating_moment_index(
op, qubit_time_index, measurement_time_index, control_time_index
Expand Down
1 change: 0 additions & 1 deletion cirq-google/cirq_google/calibration/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ def run_calibrations(
processor = None

if processor is not None:

if calibration_request_type == LocalXEBPhasedFSimCalibrationRequest:
engine_sampler = processor.get_sampler()
return _run_local_calibrations_via_sampler(calibrations, engine_sampler)
Expand Down

0 comments on commit 81ecbd5

Please sign in to comment.