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

Statevector measurement #64

Open
rbyrne299 opened this issue Jun 23, 2024 · 0 comments
Open

Statevector measurement #64

rbyrne299 opened this issue Jun 23, 2024 · 0 comments
Assignees

Comments

@rbyrne299
Copy link
Contributor

  • Given statevector & number of trials, produce probabilistic counts for each measured state
    • Measured state is one of the basis states, ex. |00>, |01>, |10>, |11> for 2 qubits
    • To find the probability of each basis state, take the square of the norm of the corresponding coefficient
  • Apply the appropriate gates before measurement if the user wants to measure in a basis other than the Z basis
    • If X basis, apply Hadamard matrix to statevector before measurement
    • If Y basis, apply Hadamard then S matrix before measurement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants