0.21.0 - 2026-08-25¶
Added¶
Added the
strategyargument toGroupGatesIntoBoxesto determine how to to assign two-qubit gates to boxes, allowing for new strategies like"alap". The default behavior has not changed and corresponds to the"asap"strategy. This can also be specified with the newboxing_strategyargument ofgenerate_boxing_pass_manager. (#380)Added support for
delayinGroupGatesIntoBoxes,GroupMeasIntoBoxes, andAddTerminalRightDressedBoxes. Added support forresetinGroupGatesIntoBoxesandAddTerminalRightDressedBoxes. (#381)Added support for
Delayoperations withStretchdurations. (#384)Added
decompositionargument toAddTerminalRightDressedBoxes. (#392)Added
samplomatic.quantum_programmodule to storeQuantumProgram,QuantumProgramResults, and all the related classes. (#396)
Fixed¶
Fixed a crash in
generate_boxing_pass_managerwhen the input circuit contained inlineGlobalPhaseGate(or other zero-bit) instructions. TheGroupGatesIntoBoxesandGroupMeasIntoBoxespasses now treat zero-qubit standard gates as pass-through and no longer fail on operations with emptyqargsandcargs(such as a zero-width barrier). Note that, independently,build()does not and has never preservedQuantumCircuit.global_phasein the template circuit; this expected behavior is now documented in thebuild()docstring. (#377)Fixed
samplomatic.visualization.plot_graph()to draw straight lines between nodes when the edge data is missing. Prior to this fix, it used a spline that sometimes ended up curved in strange ways. (#378)The
decompositionargument now applies to terminal right dressed-boxes ingenerate_boxing_pass_manager. Previously, it would always userzsx. (#392)When the boxing pass manager encounters an instruction whose name starts with
"meas", it treats it as a standard measurement instruction. (#399)Named reset instructions, such as
"reset_2", are now recognized by the boxing passes and by :class:~.BoxKey. (#400)