pygsti.tools.unitary_to_pauligate_1q

pygsti.tools.unitary_to_pauligate_1q(U)

Get the linear operator on (vectorized) density matrices corresponding to a 1-qubit unitary operator on states.

Parameters:U (numpy array) – A 2x2 array giving the action of the unitary on a state in the sigma-z basis.
Returns:The operator on density matrices that have been vectorized as length-4 vectors in the Pauli basis. Array has shape == (4,4).
Return type:numpy array