Skip to content

Commit

Permalink
Merge pull request #182 from UCL-CCS/project_state_bug
Browse files Browse the repository at this point in the history
Projectors were not being applied
  • Loading branch information
TimWeaving authored Feb 27, 2024
2 parents 46a502f + 97146be commit dd9104d
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 dd9104d

Please sign in to comment.