rigetti / forest-benchmarking

A library for quantum characterization, verification, validation (QCVV), and benchmarking using pyQuil.
Apache License 2.0
53 stars 22 forks source link

Correct error in process DFE experiment generation. #204

Closed kylegulshen closed 4 years ago

kylegulshen commented 5 years ago

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: image

Checklist

kylegulshen commented 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.

kylegulshen commented 4 years ago

206 should fix the test issues