I fixed a known issue that the SPAM twirling feature has not implemented expectation_with_uncertainty(), calling evaluate_circuit() would not call the wrapper's redefinition of expectation() with the previous version of this code.
The function evaluate_circuit() now functions correctly, further implementation of the uncertainty calculation with SPAM twirling is still possible.
Checklist
[x] I have performed a self-review of my code.
[x] I have commented my code and used numpy-style docstrings
[ ] I have made corresponding updates to the documentation.
[x] My changes generate no new warnings
[ ] I have added/updated tests to make sure bugfix/feature works.
[x] New and existing unit tests pass locally with my changes.
Type of change
Please delete options that are not relevant.
[x] Bug fix (non-breaking change which fixes an issue)
Description
expectation_with_uncertainty()
, callingevaluate_circuit()
would not call the wrapper's redefinition ofexpectation()
with the previous version of this code.evaluate_circuit()
now functions correctly, further implementation of the uncertainty calculation with SPAM twirling is still possible.Checklist
Type of change
Please delete options that are not relevant.
How Has This Been Tested?