pygsti.tools.state_to_pauli_density_vec¶
-
pygsti.tools.
state_to_pauli_density_vec
(state_vec)¶ Convert a single qubit state vector into a density matrix.
Parameters: state_vec (list or tuple) – State vector in the sigma-z basis, len(state_vec) == 2 Returns: The 2x2 density matrix of the pure state given by state_vec, given as a 4x1 column vector in the Pauli basis. Return type: numpy array