Skip to content

Commit

Permalink
maybe fix classical registers in teleportation-based QEC
Browse files Browse the repository at this point in the history
  • Loading branch information
perlinm committed Dec 17, 2024
1 parent b864193 commit 0e8ae1d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/quantum-pecos/src/pecos/qeclib/steane/steane_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,9 @@ def qec_tel_x(
If(self.log).Then(aux.x()),
Permute(self.d, aux.d),
# update syndromes and pauli frame
self.last_raw_syn_z.set(self.syn_meas),
self.last_raw_syn_x.set(0),
self.last_raw_syn_z.set(0),
self.syn_z.set(self.syn_meas),
self.pf_x.set(0),
)
if flag_bit is not None:
Expand All @@ -557,8 +558,9 @@ def qec_tel_z(
If(self.log).Then(aux.z()),
Permute(self.d, aux.d),
# update syndromes and pauli frame
self.last_raw_syn_x.set(self.syn_meas),
self.last_raw_syn_x.set(0),
self.last_raw_syn_z.set(0),
self.syn_x.set(self.syn_meas),
self.pf_z.set(0),
)
if flag_bit is not None:
Expand Down

0 comments on commit 0e8ae1d

Please sign in to comment.