From 2b8b2480bdc79f33fc4d61afb2880966173ab666 Mon Sep 17 00:00:00 2001 From: Jonathan Miller Date: Fri, 22 Mar 2024 15:09:08 +0000 Subject: [PATCH] Added updatd on Z init --- pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py b/pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py index 0988a7c6..47498012 100644 --- a/pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py +++ b/pytket-mbqc-py/pytket_mbqc_py/graph_circuit.py @@ -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