Skip to content

Commit 2aac80f

Browse files
Add stabilizer
1 parent e1ef65f commit 2aac80f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

quantumreservoirpy/stabilizer.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def during(self, circuit, timestep, reservoirnumber):
8989

9090
if self.decode:
9191
Stabilizer.decoder(circuit, self.tableau)
92-
9392
@staticmethod
9493
def generate_tableau(
9594
n_qubits: int,
@@ -248,8 +247,6 @@ def decoder(circuit: QuantumCircuit, code_tableau: dict):
248247
circuit.barrier()
249248

250249
# syndrome measurement operations
251-
252-
253250
for j in range(n_meas):
254251
circuit.reset(ar)
255252
circuit.h(ar)
@@ -268,7 +265,6 @@ def decoder(circuit: QuantumCircuit, code_tableau: dict):
268265
circuit.h(ar)
269266
circuit.measure(ar, cr[j])
270267
circuit.barrier()
271-
272268
for j in range(n_meas):
273269
with circuit.if_test((cr[j], 1)):
274270
circuit.pauli(code_tableau["destabilizer"][j][1:], qr)

0 commit comments

Comments
 (0)