-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
BasicAer (and Aer) do not capture global phase #4805
Labels
bug
Something isn't working
Comments
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Jul 29, 2020
This commit adds the global phase circuit property to the experiment headers in the assembled qobj. Currently we do not pass the global phase to backends so simulators can not take it into account. The experiment header is used since it's a free form field for properties of the circuit that a backend can use if they want, but there are no requirements on it. With this in place it should enable Qiskit#4805 and Qiskit/qiskit-aer#847 to be fixed. Related to Qiskit#4805
mtreinish
added a commit
that referenced
this issue
Jul 29, 2020
This commit adds the global phase circuit property to the experiment headers in the assembled qobj. Currently we do not pass the global phase to backends so simulators can not take it into account. The experiment header is used since it's a free form field for properties of the circuit that a backend can use if they want, but there are no requirements on it. With this in place it should enable #4805 and Qiskit/qiskit-aer#847 to be fixed. Related to #4805
Qobj global phase support was added to Aer in Qiskit/qiskit-aer#931 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Information
What is the current behavior?
BasicAer doesn't get the phases right (neither does Aer, but that'll probably be fixed within Aer). The tests using BasicAer, which I think is only
test_to_matrix
intest_extensions_standard
works by coincidence because the rotation angles are 0 and thereby the phase difference ise^{i0} = 1
.Also this causes the tests in #4638 to fail, because there's a test using BasicAer where the phase is not 1.
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: