1
$\begingroup$

The Qiskit textbook shows a circuit for mod 15 multiplication by "a", which for a==2 does the following operations:

U.swap(0,1)
U.swap(1,2)
U.swap(2,3)

But this is equivalent to a circular right-shift by 1 which is division (not multiplication) by 2.
What am I missing?

$\endgroup$

1 Answer 1

0
$\begingroup$

It turns out that this is indeed an issue and has been reported to the qiskit-textbook project on GitHub.

New contributor
antonantal is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.