Module: cirq.ops.diagonal_gate

Creates the gate instance for any number qubits diagonal gate.

The gate is used to create a (2^n)x(2^n) matrix with the diagonal elements passed as a list.

Classes

class DiagonalGate: A gate given by a diagonal (2^n)\times(2^n) matrix.

TYPE_CHECKING False