pygsti.tools.basistools.state_to_pauli_density_vec#
- state_to_pauli_density_vec(state_vec)#
Convert a single qubit state vector into a Liouville vector in the Pauli basis.
- 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