-
Notifications
You must be signed in to change notification settings - Fork 198
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
from_state prepares incorrect state #819
Labels
bug
Something isn't working
Milestone
Comments
This might be my lack of understanding, but I am also confused about what convention we are following here - the little endian or the big endian. When initializing from statevector (0,1,0,0,0,0,0,0), you get |001>. Shouldn't it be |100> as per the cudaq convention? Thank you! |
poojarao8
added
bug
Something isn't working
and removed
bug
Something isn't working
labels
Oct 27, 2023
bettinaheim
added
the
needs triage
Marks items that require a follow up for proper processing
label
Nov 6, 2023
This was referenced Nov 9, 2023
To be tackled as part of #1086. |
bettinaheim
removed
the
needs triage
Marks items that require a follow up for proper processing
label
Jul 1, 2024
Closing as obsolete, since we completely revised this functionality. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required prerequisites
Describe the bug
The
from_state
seems to work as expected for up to 2 qubits, but for the 3 and 4 qubit examples I tested, several discrepancies show up. For e.g., the statevector (0,0,0,0,0,0,0,1) should correspond to state |111>, but the sampling result is |110> instead.Steps to reproduce the bug
Expected behavior
from_state
on (0,0,0,0,0,0,0,1) should lead to |111> upon samplingIs this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
Suggestions
No response
The text was updated successfully, but these errors were encountered: