cirq.PauliSumExponential

Represents an operator defined by the exponential of a PauliSum.

Used in the notebooks

Used in the tutorials

Given a hermitian/anti-hermitian PauliSum PS_1 + PS_2 + ... + PS_N, this class returns an operation which is equivalent to exp(j * exponent * (PS_1 + PS_2 + ... + PS_N)).

This class only supports commuting Pauli terms.

qubits

Methods

matrix

View source

Reconstructs matrix of self from underlying Pauli sum exponentials.

Raises
ValueError if exponent is parameterized.

with_qubits

View source

__eq__

View source

__iter__

View source

__ne__

View source

__pow__

View source