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

Measuring quantum variable of a foreach on a quantum array only measure one register #81

Open
GabrieleMessina opened this issue Aug 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@GabrieleMessina
Copy link
Owner

GabrieleMessina commented Aug 18, 2024

This is probably because literal array declaration creates a bunch of anonymous registers that are then bounded to the foreach variable, and the measure happens asynchronously, so only the last register is measured.

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
Status: Todo
Development

No branches or pull requests

1 participant