Skip to content

Commit

Permalink
Tag Pauli memory syndrome qubit as mergeable (#206)
Browse files Browse the repository at this point in the history
Fix #205
  • Loading branch information
nelimee authored Apr 10, 2024
1 parent 4f9c663 commit 8231340
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tqec/plaquette/library/utils/pauli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import cirq
from tqec.exceptions import TQECException
from tqec.plaquette.plaquette import Plaquette
from tqec.plaquette.qubit import PlaquetteQubit

_SUPPORTED_PAULI: set[str] = set("xz")
Expand Down Expand Up @@ -53,7 +54,7 @@ def make_pauli_syndrome_measurement_circuit(

circuit = cirq.Circuit()
if reset_syndrome_qubit:
circuit.append(cirq.Moment(cirq.R(sq)))
circuit.append(cirq.Moment(cirq.R(sq).with_tags(Plaquette._MERGEABLE_TAG)))

is_in_X_basis: bool = False
for i, pauli in enumerate(pauli_string.lower()):
Expand Down

0 comments on commit 8231340

Please sign in to comment.