-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readout Error Mitigation using Operator Estimation (#19)
* added ability to return multi-qubit expectation values to all devices * cleaned up by adding separate probability method * typo * added multimode hermitian expval test to pyqvm * added suggested changes * undo conftest change * Loading as qvm if load_qc is False * Switching inheritance from QVMDevice to ForestDevice more directly * Allowing QPUDevice class to be instantiated * Calculating PauliZ expectation using measure_observables * Specifying symmetrization/calibration at instantiation of QPU device * Removing readout error added to program for debugging purposes * Double quotes for strings, where possible, as in master * Missed a single quote * Changing pre_expval to pre_measure * Changing expectations to observables * Changing to a currently available lattice * Missed a lattice * Changing expectation to observable, and getting rid of pre-rotations * Directly creating expt settings for all observables, except for 'Hermitian' * Using operator_estimation for estimating all observables except for 'Hermitian' * Using generic qpu to prevent future errors * Initializing a device once within the class * Adding optional readout error for testing * Getting rid of __init__ constructor to let pytest catch test suite * Cleaning up code for QPU class * Tests with readout errors but no mitigation * Averaging over several experiments to get closer agreement * Adding tests for readout error mitigation * Example notebook demo-ing readout error mitigation * Filled out notebook * Removing unused import * Making QPUDevice a subclass of QVMDevice * Removing unnecessary error raising * Re-factoring out some code to avoid duplication between QVM and QPU * Adding authorship
- Loading branch information
1 parent
70d1682
commit 7b59049
Showing
5 changed files
with
457 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters