Adds S, SDagger, T and TDagger gates to gate library
Explanation of changes
Adds the commonly used S and T gates to the gate library. As well as their Hermitian conjugates.
Motivation of changes
The use of these gates is common in quantum information theory. Adding these gates would provided a quality-of-life improvement for users who like to think about S and T gates instead of 90 and 45 degree rotations about the Z axis.
Merge checklist
See also merge request guidelines
-
Merge request has been reviewed (in-depth by a knowledgeable contributor), and is approved by a project maintainer. -
New code is covered by unit tests (or N/A). -
New code is documented and docstrings use numpydoc format (or N/A). -
Newly added/adjusted documentation and docstrings render properly (or N/A). -
Tested on hardware (or N/A). -
Check whether performance is significantly affected by looking at the Performance metrics results. -
Windows tests in CI pipeline pass (manually triggered by maintainers before merging). - Maintainers do not hit Auto-merge, we need to actively check as manual tests do not block pipeline
For reference, the issues workflow is described in the contribution guidelines.
Edited by Robert Sokolewicz