-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix random statevector distribution #10866
Conversation
One or more of the the following people are requested to review this:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I think the output from your fixed version is Haar random, isn't it? - in the sense of the result is distributed the same as if we applied a Haar-random unitary to some fixed statevector. I'm not certain of that, but if so, it might be good to keep some text describing that in the documentation. If not, then I think we still might need to define what we mean "uniform distribution".
Could we add a bugfix note about fixing the distribution? I'm feeling about iffy about backporting this, even if we call it a bugfix, just because of the (intentional!) RNG incompatibility - I think personally I'd prefer to wait til a minor with it.
I don't think we need to mention the Haar measure on unitary matrices. This is the uniform distribution. I've added a citation for it. |
releasenotes/notes/fix-random-statevector-a8dbf991cbbdee8e.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah super thanks - this reads well to me. Julien, can you tag for merge if you're happy as well?
Summary
Fixes #9619
Details and comments