tqec.circuit.schedule.schedule.Schedule#

class Schedule(schedule: list[int] = <factory>)[source]#

Thin wrapper around list[int] to represent a schedule.

This class ensures that the list of integers provided is a valid schedule by checking that all entries are positive integers, that the list is sorted and that it does not contain any duplicate.

__init__(schedule: list[int] = <factory>) None#

Methods

__init__([schedule])

append(value)

Append an integer to the schedule.

append_schedule(schedule)

from_offsets(schedule_offsets)

Get a valid schedule from offsets.

insert(i, value)

Insert an integer to the schedule.

Attributes

schedule