deltakit.decode.utils.split_measurement_bitstring#

deltakit.decode.utils.split_measurement_bitstring(bitstring: FixedWidthBitstring, circuit: Circuit) list[FixedWidthBitstring]#

Split a measurement bitstring according to the number of measurements in each layer of the circuit.

Parameters:
  • bitstring (FixedWidthBitstring) – The measurement bitstring.

  • circuit (stim.Circuit) – The stim circuit that generated the bitstring.

Returns:

The measurement bitstring split so each item in the list corresponds to measurements taken in the same layer.

Return type:

List[FixedWidthBitstring]