Skip to content

Commit

Permalink
Projectors were not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWeaving committed Feb 27, 2024
1 parent 46a502f commit 97146be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symmer/projection/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 97146be

Please sign in to comment.