An object that knows its expansion in the Pauli basis.



View source

Efficiently obtains expansion of self in the Pauli basis.

Linear dict keyed by name of Pauli basis element. The names consist of n captal letters from the set 'I', 'X', 'Y', 'Z' where n is the number of qubits. For example, 'II', 'IX' and 'XY' are valid Pauli names in the two-qubit case.