Module: cirq.circuits.circuit

The circuit data structure.

Circuits consist of a list of Moments, each Moment made up of a set of Operations. Each Operation is a Gate that acts on some Qubits, for a given Moment the Operations must all act on distinct Qubits.

Classes

class AbstractCircuit: The base class for Circuit-like objects.

class Alignment: An enumeration.

class Circuit: A mutable list of groups of operations to apply to some qubits.

class CircuitOperation: An operation that encapsulates a circuit.

Type Aliases

INT_TYPE: The central part of internal API.

CIRCUIT_TYPE Instance of typing.TypeVar
TIn Instance of typing.TypeVar
TKey Instance of typing.TypeVar
TOut Instance of typing.TypeVar
TYPE_CHECKING False
T_DESIRED_GATE_TYPE Instance of typing.TypeVar