pygsti.tools.unitary_to_pauligate_2q¶
-
pygsti.tools.
unitary_to_pauligate_2q
(U)¶ Get the linear operator on (vectorized) density matrices corresponding to a 2-qubit unitary operator on states.
Parameters: U (numpy array) – A 4x4 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-16 vectors in the Pauli-product basis. Array has shape == (16,16). Return type: numpy array