Skip to main content

Module basic_passes

Module basic_passes 

Source
Expand description

Basic optimization passes: gate cancellation, commutation, merging, and rotation merging.

Structsยง

GateCancellation
Gate cancellation pass - removes redundant gates
GateCommutation
Gate commutation pass - reorders gates to enable other optimizations
GateMerging
Gate merging pass - combines adjacent gates
RotationMerging
Rotation merging pass - specifically merges rotation gates