-
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.
Adding support for multi-qubit observable estimation (#42)
* Adding logic for single observable Tensor, adding integration test; modifying docstring for tests * Comment * Remove print statements * Correct test to have PauliY in there * Modify test parameter * Modifying flaky parameters, modifying tolerance value, docstrings * Adding flaky runs to hermitian test case * Toggle flaky numbers * Modify test such that no SWAP erros may be outputted * Remove print stmt * Revert tensor obs case QPUDevice.expval * Add warning to the user, add test for it * First pass at multi-qubit observables * Test on wires expval with operator estimation * Comments * Test remvoe space * Linting * Test docstring * Changing tests * Changing PyQvm test settings * Update pennylane_forest/qpu.py Co-Authored-By: Josh Izaac <josh146@gmail.com> * Update pennylane_forest/qpu.py Co-Authored-By: Josh Izaac <josh146@gmail.com> * Moving assert condition for multi-qub osbervables into loop condition * Minor clean-up * Moving check for Hermitian observables at same level of check for no. of wires * Multi qubit observables with and without readout errors * Testing for multi-qubit readout mitigtation * Removing unnecessary dict * Cleaning up single-qubit case * Same preparation program for single and multi qubit observables * Consolidating and cleaning up logic for expval * Removing white space * Keeping same format as master * No need to separately perform logic for Hermitian observable * Comments for clarity * Adding flaky decorator to tests * Spreading shots budget across 20 diff expts; adding similar test without parametric compilation Co-authored-by: antalszava <antalszava@gmail.com> Co-authored-by: Josh Izaac <josh146@gmail.com>
- Loading branch information
1 parent
a2115a1
commit 3dab35e
Showing
2 changed files
with
186 additions
and
60 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
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