Intel® Quantum SDK
Forum related to Intel Quantum SDK, a full-stack software kit for programming and executing algorithms on simulated quantum hardware.
37 Discussions

The comment under rotxy gate has error

Zirui
Beginner
439 Views

The unitary for rotxy should be 

[[np.cos(theta/2), complex(-np.sin(theta/2)*np.sin(phi), -np.sin(theta/2)*np.cos(phi))],
[complex(np.sin(theta/2)*np.sin(phi), -np.sin(theta/2)*np.cos(phi)), np.cos(theta/2)]]
 

but in clang/Quantum/quintrinsics.h head file the unitary in the comment on rotxy function is wrong. It's a slight error in the comment, which doesn't affect the functions.

0 Kudos
1 Reply
KevinR_Intel
Moderator
375 Views

Thanks for taking the time to bring it to our attention! Although small, as you say, someone will (unknowingly) appreciate not wasting their own time by following a mistake in the comment (as a result of your efforts to let us know).

0 Kudos
Reply