diff --git a/glue/cirq/stimcirq/_cirq_to_stim.py b/glue/cirq/stimcirq/_cirq_to_stim.py index 3b272cc0..8b7df855 100644 --- a/glue/cirq/stimcirq/_cirq_to_stim.py +++ b/glue/cirq/stimcirq/_cirq_to_stim.py @@ -150,7 +150,7 @@ def gate_to_stim_append_func() -> Dict[cirq.Gate, Callable[[stim.Circuit, List[i ny = (cirq.Y, True) nz = (cirq.Z, True) - def do_nothing(_gates, _targets, _tag): + def do_nothing(_gates, _targets, tag): pass def use( diff --git a/glue/cirq/stimcirq/_stim_to_cirq.py b/glue/cirq/stimcirq/_stim_to_cirq.py index 509257af..1be3ba7c 100644 --- a/glue/cirq/stimcirq/_stim_to_cirq.py +++ b/glue/cirq/stimcirq/_stim_to_cirq.py @@ -423,7 +423,7 @@ def __call__( stim_sweep_bit_index=a.value, cirq_sweep_symbol=f'sweep[{a.value}]', pauli=self.pauli_gate, - ).on(cirq.LineQubit(b.value).with_tags(*tags)) + ).on(cirq.LineQubit(b.value)).with_tags(*tags) ) else: if not a.is_qubit_target or not b.is_qubit_target: