- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page