|View source on GitHub|
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.
class Circuit: A mutable list of groups of operations to apply to some qubits.