From 97146be1220bdf71e66846ce4e4b3bf29999969f Mon Sep 17 00:00:00 2001 From: TimWeaving Date: Tue, 27 Feb 2024 20:42:02 +0000 Subject: [PATCH] Projectors were not being applied --- symmer/projection/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symmer/projection/base.py b/symmer/projection/base.py index 3a7bdc05..0a2725a3 100644 --- a/symmer/projection/base.py +++ b/symmer/projection/base.py @@ -145,7 +145,7 @@ def project_state(self, state: QuantumState) -> QuantumState: )[0] ] # Projections onto the stabilizer subspace - #transformation_list += list(map(lambda x:(x**2 + x)*.5,self.stabilizers.rotate_onto_single_qubit_paulis())) + transformation_list += list(map(lambda x:(x**2 + x)*.5,self.stabilizers.rotate_onto_single_qubit_paulis())) # Rotations mapping stabilizers onto single-qubit Pauli operators transformation_list += list(map(lambda s:trotter(s[0]*(np.pi/4*1j)), self.stabilizers.stabilizer_rotations)) # Product over the transformation list yields final transformation operator