You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python version: Irrelevant, as it's called from C++
Operating system: Windows, linux, macos
What is the current behavior?
Calling AerState::probability throws an exception with the message "Save amplitude square must be defined on full width of qubits."
The exception comes from here:
Informations
What is the current behavior?
Calling
AerState::probability
throws an exception with the message "Save amplitude square must be defined on full width of qubits."The exception comes from here:
qiskit-aer/src/simulators/stabilizer/stabilizer_state.hpp
Line 578 in 269c26f
Steps to reproduce the problem
Configure a stabilizer simulator then call 'probability' for an outcome.
What is the expected behavior?
Return the probability.
Suggested solutions
Modify
AerState::probability
to add the list of qubits, that is, insertsomewhere here:
qiskit-aer/src/controllers/state_controller.hpp
Line 1382 in 269c26f
This issue is similar with this one: #2234
The text was updated successfully, but these errors were encountered: