cirq.SupportsPauliExpansion

An object that knows its expansion in the Pauli basis.

Methods

_pauli_expansion_

View source

Efficiently obtains expansion of self in the Pauli basis.

Returns
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.