Closed kylegulshen closed 4 years ago
Thanks for the comments!
I addressed those comments and then realized a couple of other things should have been updated as well.
1) state dfe can be simplified significantly after the changes 2) monte carlo needed to be updated as well 3) the changes made some of the content of the example notebook wrong 4) I noticed a couple other minor mistakes in the example notebook explanation and bad formatting in the code
If it is preferable that I roll back the changes to address your comments only and open new PRs to address the other stuff, let me know.
Description
The old code was not properly generating all of the required experiment settings for process DFE. In particular only 7^n of the required (4^n - 1)2^n settings were included. For a single qubit all settings were present. For two qubits there was one missing setting for each observable with exactly one Identity term.
The error is illustrated by the following mismatch between the analytically calculated fidelity and the simulated fidelity between the identity and CPHASE(theta) for various theta:
Checklist
docs/source/changes.rst
) has a description of this change.