SeedLayerGenerator.remove_atomic_units

SeedLayerGenerator.remove_atomic_units(circuit)[source]

Return circuits after removing upto self.num_removed atomic units.

Atomic units defined as multi-qudit gates and the single-qudit gates that are directly dependent on them. Except for single-qudit circuits, where the single-qudit gate is the atomic unit.

For two qudit synthesis, these atomic units look like:

– two_qudit_gate – single_qudit_gate_1 –

– two_qudit_gate – single_qudit_gate_2 –

Generally, this will find the last num_removed multi-qudit gates, and remove them and any single qudit gates that are directly dependent on them.