iqm.error_reduction_tools.utils.readout_twirling_strings#
Readout twirling string generation utilities.
This module provides helper functions to build per-qubit I/X twirling
strings used by REM workflows. The supported strategies are:
HADAMARD: Ensure balanced coverage ofI/Xcombinations across all qubits PAIRS.Requires up to
2nstrings fornactive qubits.
MINIMAL: Two alternating strings.LOCAL: 4 strings balancing nearest-neighbor pair combinations.PROBELINES:LOCALstrings plus probe-line specific Hadamard masks.The number of strings should be a multiple of 4, ideally four times the smaller power of 2 greater than the largest control line length. This ensures balanced coverage across all pairs of qubits connected by a control line.
Note
All strategies ensure that, for each qubit, the number of I and X operators is equal.
Functions
|
Generate readout twirling strings for the requested strategy. |