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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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