Expand description
Built-in truncation policies and combinators. See design doc §7.
Structs§
- And
- Logical AND of two policies — both must accept.
- Coefficient
Threshold - Drop terms whose coefficient magnitude is at most
epsilon. - Or
- Logical OR of two policies — either accepting is enough.
- TopN
- Retain only the
nterms with largest coefficient magnitude. Implemented as afinalize_layerpartial sort (no per-term filter). - Weight
Cutoff - Drop terms whose Pauli weight (number of non-identity qubits) exceeds
k.