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

vs.to_qobj is broken for constrained Hilbert spaces #1618

Open
PhilipVinc opened this issue Oct 19, 2023 · 0 comments
Open

vs.to_qobj is broken for constrained Hilbert spaces #1618

PhilipVinc opened this issue Oct 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@PhilipVinc
Copy link
Member

Qutip does not know about constrained Hilbert spaces, and only operates on 'full' spaces.
If you have a constrained Hilbert, we will build a QOBJ with the dimensions of the full space but we pass a vector with the size of the constrained one.

To fix this we should create the larger to_array in the unconstrained space. The conversion can be done easily with states to number...

@PhilipVinc PhilipVinc added the bug Something isn't working label Oct 19, 2023
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