Skip to content

Commit

Permalink
Added updatd on Z init
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldofnodes committed Mar 22, 2024
1 parent 166499d commit 2b8b248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def get_plus_state(self,z_multiple: int = 0) -> Qubit:
[self.Z(qubit=qubit) for _ in range(z_multiple)]

self.add_c_setreg(value=index, arg=self.index_reg)
self.add_c_setreg(value=z_multiple, arg=self.qubit_init_t_mult_reg[self.vertex_qubit[index]])
self.add_c_setreg(value=z_multiple, arg=self.qubit_init_z_mult_reg[self.vertex_qubit[index]])
self.add_wasm_to_reg(
"update_z_correction",
self.wfh,
[self.qubit_init_t_mult_reg[self.vertex_qubit[index]], self.index_reg],
[self.qubit_init_z_mult_reg[self.vertex_qubit[index]], self.index_reg],
[],
)
return qubit
Expand Down

0 comments on commit 2b8b248

Please sign in to comment.