tqec.circuit.schedule.ScheduledCircuits

class ScheduledCircuits(circuits: list[ScheduledCircuit])[source]
__init__(circuits: list[ScheduledCircuit]) None[source]

Represents a collection of ScheduledCircuit instances.

This class aims at providing accessors for several instances of ScheduledCircuit. It allows to iterate on gates globally, for all the managed instances of ScheduledCircuit, and implement a few other accessor methods to help with the task of merging multiple ScheduledCircuit together.

Parameters:

circuits – the instances that should be managed.

Methods

__init__(circuits)

Represents a collection of ScheduledCircuit instances.

collect_moments()

Collect all the moments that can be collected.

has_pending_moment()

Checks if any of the managed instances has a pending moment.

Attributes

number_of_circuits