-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MPS simulator has global bond dimension and singular values truncation threshold #2286
Labels
bug
Something isn't working
Comments
aromanro
added a commit
to InvictusWingsSRL/qiskit-aer
that referenced
this issue
Jan 15, 2025
Making those values non-static is not that easy, since there are a lot of static calls in the |
aromanro
added a commit
to InvictusWingsSRL/qiskit-aer
that referenced
this issue
Jan 15, 2025
Perhaps you would like to open a PR to address this bug (and the rest you pointed out)? |
I planned to do that, I just need to find the time... I'll try to do it this weekend. |
aromanro
added a commit
to InvictusWingsSRL/qiskit-aer5
that referenced
this issue
Jan 25, 2025
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Informations
What is the current behavior?
The Matrix Product State simulator has bond dimension and singular values truncation threshold as static values.
See here:
qiskit-aer/src/simulators/matrix_product_state/matrix_product_state_tensor.hpp
Line 182 in e26970a
The problem with this is that it affects all MPS simulators one creates.
Steps to reproduce the problem
Create a MPS simulator with default settings, execute a complex enough circuit in it, save its results.
Create two MPS simulators, set a low bond dimension and a big truncation threshold on one (which would introduce quite big errors for many circuits). Execute the same complex circuit from above with both. Compare results among themselves and with the ones previously saved.
What is the expected behavior?
Each MPS simulator should have its own settings.
Suggested solutions
Make them non static?
The text was updated successfully, but these errors were encountered: