What happens when I use CDR?#
A figure of the typical workflow of CDR as implemented in Mitiq is shown in the figure below.
Similarly to ZNE and PEC, CDR is divided in two main stages: first, one of circuit generation and a second for inference of the mitigated value. In CDR, the generation of quantum circuits is different, as it involves the generation of training circuits.
Note
In [15], the authors lay out two different methods for generating the training circuits.
Randomly replacing gates in the target circuit with nearby Clifford gates.
Construct new circuits with the use of a Markov Chain Monte Carlo (MCMC) which produce classicaly simulable states.
The authors of [15] derive results with the use of the MCMC method, whereas Mitiq uses simpler approach presented in point 1.
The division of CDR into training, learning and prediction stages is shown more generally in the figure below.