-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
marginal_counts fails on qiskit Result structure #10385
Comments
Calling
Your problem should be fixed if you call |
@Abhiraj-Shrotriya Using The signature for
So it seems reasonable to expect the |
This was caused by a bug (of sorts) in Aer (see Qiskit/qiskit-aer#1845). If you're able to use Aer 0.11 temporarily until Aer 0.12.2 can be released, hopefully in the next week or two, that should work around the problem, I think. |
Oh, Aer 0.12.0 might be fine too - I forget exactly which version the issue appeared in. |
The issue will be fixed in the next release of qiskit aer (confirmed by running from git with commit 6802355b7f3f721098d62255ea994ce6abda5ed3), closing this issue. |
Environment
What is happening?
The
marginalize_counts
method fails on the output of the Aer simulator (aqiskit.result.result.Result
structure). A minimal example is included below.The error generated is:
How can we reproduce the issue?
What should happen?
This code worked in previous version of qiskit-terra. The
marginalize_counts
should work without error on results generated by qiskit.Any suggestions?
No response
The text was updated successfully, but these errors were encountered: