@@ -57,8 +57,8 @@ class GeminiNoiseModelABC(cirq.NoiseModel, MoveNoiseModelABC):
5757
5858 def __post_init__ (self ):
5959 if (
60- self .cz_paired_correlated_rates is None
61- and self .cz_paired_error_probabilities is None
60+ self .cz_paired_correlated_rates is None
61+ and self .cz_paired_error_probabilities is None
6262 ):
6363 # NOTE: no input, set to default value; weird setattr for frozen dataclass
6464 object .__setattr__ (
@@ -248,7 +248,8 @@ def noisy_moment(self, moment, system_qubits):
248248 # Check if the moment contains 1-qubit gates or 2-qubit gates
249249 elif len (moment .operations [0 ].qubits ) == 1 :
250250 if (isinstance (moment .operations [0 ].gate , cirq .ResetChannel )) or (
251- cirq .is_measurement (moment .operations [0 ])) or (isinstance (moment .operations [0 ].gate , cirq .BitFlipChannel )):
251+ cirq .is_measurement (moment .operations [0 ])) or (
252+ isinstance (moment .operations [0 ].gate , cirq .BitFlipChannel )):
252253 move_noise_ops = []
253254 gate_noise_ops = []
254255 else :
@@ -354,8 +355,8 @@ def count_remaining_cz_moments(moments_2q):
354355 pm = 2 * self .sitter_pauli_rates [0 ]
355356 ps = 2 * self .cz_unpaired_pauli_rates [0 ]
356357
357- #probability of a bitflip error for a sitting, unpaired qubit during a move/cz/move cycle.
358- heuristic_1step_bitflip_error : float = 2 * pm * (1 - ps ) * (1 - pm ) + (1 - pm )** 2 * ps + pm ** 2 * ps
358+ # probability of a bitflip error for a sitting, unpaired qubit during a move/cz/move cycle.
359+ heuristic_1step_bitflip_error : float = 2 * pm * (1 - ps ) * (1 - pm ) + (1 - pm ) ** 2 * ps + pm ** 2 * ps
359360
360361 for idx , moment in enumerate (moments_1q ):
361362 interleaved_moments .append (moment )
@@ -412,7 +413,8 @@ def noisy_moment(self, moment, system_qubits):
412413 # Check if the moment contains 1-qubit gates or 2-qubit gates
413414 elif len (moment .operations [0 ].qubits ) == 1 :
414415 if (isinstance (moment .operations [0 ].gate , cirq .ResetChannel )) or (
415- cirq .is_measurement (moment .operations [0 ])) or (isinstance (moment .operations [0 ].gate , cirq .BitFlipChannel )):
416+ cirq .is_measurement (moment .operations [0 ])) or (
417+ isinstance (moment .operations [0 ].gate , cirq .BitFlipChannel )):
416418 gate_noise_ops = []
417419 else :
418420 gate_noise_ops , _ = self ._single_qubit_moment_noise_ops (
0 commit comments