pygsti.tools.symplectic.bitstring_for_pauli#
- bitstring_for_pauli(p)#
Get the bitstring corresponding to a Pauli.
The state, represented by a bitstring, that the Pauli operator represented by the phase-vector p creates when acting on the standard input state.
- Parameters:
p (numpy.ndarray) – Phase vector of a symplectic representation, encoding a Pauli operation.
- Returns:
A list of 0 or 1 elements.
- Return type:
list