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

Create mechanism of applying of gates on register #5

Open
sah4ez opened this issue Sep 24, 2019 · 0 comments
Open

Create mechanism of applying of gates on register #5

sah4ez opened this issue Sep 24, 2019 · 0 comments

Comments

@sah4ez
Copy link
Collaborator

sah4ez commented Sep 24, 2019

Seems that register should take an type of Gate and position of qubits. After it apply gates on qubits and provide measurement.
So design of applying gate on register ma be this:

r := Register(2)
m := r.Apply(H(),1).Apply(CNOT(),2,1).Measure()
// m[0] = |0> -> m[1] = |0>
// or
// m[0] = |1> -> m[1] = |1>
@sah4ez sah4ez added this to the single process qvm milestone Sep 24, 2019
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

1 participant