pygsti.tools.symplectic.apply_clifford_to_stabilizer_state

pygsti.tools.symplectic.apply_clifford_to_stabilizer_state#

apply_clifford_to_stabilizer_state(s, p, state_s, state_p)#

Applies a clifford in the symplectic representation to a stabilizer state in the standard stabilizer representation.

The output corresponds to the stabilizer representation of the output state.

Parameters:
  • s (numpy array) – The symplectic matrix over the integers mod 2 representing the Clifford

  • p (numpy array) – The ‘phase vector’ over the integers mod 4 representing the Clifford

  • state_s (numpy array) – The matrix over the integers mod 2 representing the stabilizer state

  • state_p (numpy array) – The ‘phase vector’ over the integers mod 4 representing the stabilizer state

Returns:

  • out_s (numpy array) – The symplectic matrix over the integers mod 2 representing the output state

  • out_p (numpy array) – The ‘phase vector’ over the integers mod 4 representing the output state