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

usage of the method of exchange #40

Open
3625365git-tx opened this issue Jun 23, 2021 · 1 comment
Open

usage of the method of exchange #40

3625365git-tx opened this issue Jun 23, 2021 · 1 comment

Comments

@3625365git-tx
Copy link

page 56 of the book, example 3-4
how to explain the exchange process referring to "input1.exchange(input2,0x1,output.bits( ) )"?

from the docs, i learned that this method allows one or two arguments,so why three here?
besides, to my understanding, the output as the control_qubit, isn't supposed to change after the filled dot, so the readout should
always be 1, whether the two inputs are equal of not.
could you please explain my questions? thanks a lot!

@3625365git-tx
Copy link
Author

fine,solved myself

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