StabilizerStateChForm(num_qubits: int, initial_state: Union[int, numpy.ndarray] = 0)¶
A representation of stabilizer states using the CH form,
$|\psi> = \omega U_C U_H |s>$
This representation keeps track of overall phase.
__init__(num_qubits: int, initial_state: Union[int, numpy.ndarray] = 0) → None¶
num_qubits – The number of qubits in the system
initial_state – If an int, the state is set to the computational
state corresponding to this state. (basis) –
an np.ndarray it is the full initial state. (If) –
copy()Returns the amplitude of x’th element of
Applies a Z projector on the q’th qubit.