pygsti.tools.optools.unitary_to_pauligate

pygsti.tools.optools.unitary_to_pauligate#

unitary_to_pauligate(u)#

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

Parameters:

u (numpy array) – A dxd array giving the action of the unitary on a state in the sigma-z basis. where d = 2 ** n-qubits

Returns:

The operator on density matrices that have been vectorized as d**2 vectors in the Pauli basis.

Return type:

numpy array