Skip to content
Discussion options

You must be logged in to vote

I am converting this to a discussion as it is an interesting question, but it is not a bug, rather an expected behavior.

If you initialize n slots to an entangled multi-qubit state, behind the scenes we need to store 2^n complex numbers. If the state is not entangled but completely separable, it is n*2 complex numbers. But if you are given an arbitrary state vector, it is a very expensive operation to check whether the state is entangled or not, so we can not automatically go to the non-entangled storage format.

To be fair, in your particular case we are not given a state vector, rather we are given a symbolic tensor product. So in principle it is possible to special-case the tensor produ…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@Luisenden
Comment options

Luisenden Apr 30, 2025
Collaborator Author

@Krastanov
Comment options

Answer selected by Krastanov
Comment options

You must be logged in to vote
1 reply
@Luisenden
Comment options

Luisenden Apr 30, 2025
Collaborator Author

Comment options

You must be logged in to vote
6 replies
@Krastanov
Comment options

@Luisenden
Comment options

Luisenden May 2, 2025
Collaborator Author

@Krastanov
Comment options

@Krastanov
Comment options

@Luisenden
Comment options

Luisenden May 2, 2025
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #219 on April 29, 2025 10:25.