Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed exp-val calculation by slicing and conjugate #93

Merged
merged 4 commits into from
Feb 10, 2021

Conversation

1tnguyen
Copy link
Member

The test circuit in #91 helped uncover some subtle bugs in these special exp-val calculation methods.

  • In the slicing method, the parity tracker flag was not placed in the correct scope -> not properly initialized.

  • In the double-depth method, the counter and tensor name list must be cached for the base circuit, before adding change-of-basis.

Thien Nguyen added 4 commits February 10, 2021 13:33
I put the parity flag in the wrong scope, hence was not set correctly for each projected path. Need to have more than 2 projected qubits to see this bug...

Signed-off-by: Thien Nguyen <[email protected]>
Need to restore the state of the base tensor network in VQE mode.

Signed-off-by: Thien Nguyen <[email protected]>
so that we can quickly validate the exp-val calculation

This script has helped uncover a couple of hard-to-detect bugs..

Signed-off-by: Thien Nguyen <[email protected]>
@1tnguyen 1tnguyen merged commit fcda625 into ORNL-QCI:master Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant