qat.analog.util.convert_superoperator_canonical_to_ptm
- qat.analog.util.convert_superoperator_canonical_to_ptm(superoperator)
Convert a \(N\)-qubit superoperator matrix expressed in the canonical (i.e. computational) basis to the basis of generalized Pauli matrices for \(N\) qubits.
- Parameters
superoperator (numpy.ndarray) – \(4^N \times 4^N\) matrix
- Returns
\(4^N \times 4^N\) Pauli transfer matrix
- Return type
ptm (numpy.ndarray)