Implement a good way of tracking measurements #45
Labels
backend
Issue pertaining to the Python backend (tqec package)
enhancement
New feature or request, may not be in the task flow
help wanted
Extra attention is needed
Measurements need to be translated to record offsets in order to be readable and usable by
Stim
. This is currently handled byCircuitMeasurementMap
that takes acirq.Circuit
instance as input and provides a way to compute the record offset for any measurement in thiscirq.Circuit
instance.The current implementation of
CircuitMeasurementMap
is not adapted to the movement of a logical qubit due to one "limitation" (that was originally a feature): it counts measurements in a repeatedcirq.CircuitOperation
only once.This means that if we perform the following QEC experiment:
the$n_2$ QEC cycles only once (instead of $n_2$ times).
CircuitMeasurementMap
would not be able to accurately compute the measurement records of the measurements included in the final observable, because it would count each measurement in theA quick fix would be to change the behaviour of
CircuitMeasurementMap
oncirq.CircuitOperation
instances when they are repeated.The text was updated successfully, but these errors were encountered: