tqec.circuit.schedule.manipulation#
Defines functions to modify or merge ScheduledCircuit
instances.
This module implement a few central functions for the tqec
library:
remove_duplicate_instructions()
to remove some instructions appearing twice in a single moment (most of the time due to data qubit reset/measurements that are defined by each plaquette, even on qubits shared with other plaquettes, leading to duplicates).merge_scheduled_circuits()
that merge severalScheduledCircuit
instances into one.relabel_circuits_qubit_indices()
to prepare severalScheduledCircuit
before merging them. This function is called internally bymerge_scheduled_circuits()
but might be useful at other places and so is kept public.
Functions
|
Merge several ScheduledCircuit instances into one instance. |
|
Relabel the qubit indices of the provided circuits to avoid collision. |
|
Removes all the duplicate instructions from the given list. |