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
Not all api calls work for all simulators. They do work for example for the statevector one, but some fail - throwing an exception - when using the MPS simulator, for example.
Steps to reproduce the problem
Configure the MPS simulator instead of the default.
Call any function that is implemented using state->apply_mc... (I think all implemented like that will fail, since they are not implemented by the MPS simulator). If I recall correctly, there are others that might fail besides those, but I will have to check.
What is the expected behavior?
Calls should succed, applying the operation.
Suggested solutions
There are workarounds, already mentioned in this related issue: #2221
For example aer_apply_x could be implemented using apply_x instead of apply_mcx. Various other gates might not have such an easy change, but still they can be implemented, for example the aer_apply_rx could be implemented with something like:
Informations
Latest dev version from main branch.
Irrelevant, as it's called from C/C++.
Windows, Linux, MacOS
What is the current behavior?
Not all api calls work for all simulators. They do work for example for the statevector one, but some fail - throwing an exception - when using the MPS simulator, for example.
Steps to reproduce the problem
Configure the MPS simulator instead of the default.
Call any function that is implemented using
state->apply_mc...
(I think all implemented like that will fail, since they are not implemented by the MPS simulator). If I recall correctly, there are others that might fail besides those, but I will have to check.What is the expected behavior?
Calls should succed, applying the operation.
Suggested solutions
There are workarounds, already mentioned in this related issue: #2221
For example
aer_apply_x
could be implemented usingapply_x
instead ofapply_mcx
. Various other gates might not have such an easy change, but still they can be implemented, for example theaer_apply_rx
could be implemented with something like:or the more complex ones like 'aer_apply_crx', with something like:
or for `aer_apply_crz':
and so on...
I think I could do the changes, if considered worthy.
The text was updated successfully, but these errors were encountered: