Skip to content
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

MPS simulator has global bond dimension and singular values truncation threshold #2286

Open
aromanro opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@aromanro
Copy link
Contributor

Informations

  • Qiskit Aer version: Latest development version
  • Python version: Doesn't matter, applies to all
  • Operating system: Doesn't matter, applies to all

What is the current behavior?

The Matrix Product State simulator has bond dimension and singular values truncation threshold as static values.
See here:

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?

@aromanro aromanro added the bug Something isn't working label Jan 15, 2025
aromanro added a commit to InvictusWingsSRL/qiskit-aer that referenced this issue Jan 15, 2025
@aromanro
Copy link
Contributor Author

aromanro commented Jan 15, 2025

Making those values non-static is not that easy, since there are a lot of static calls in the MPS_Tensor class. A solution would be to store the values elsewhere and pass them as parameters where they are relevant (basically the call to MPS_Tensor::Decompose).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant