Support cs and csdg standard gates - #441
Conversation
Signed-off-by: Daniel Gaskins <danielgaskins99@gmail.com>
Argus reviewAuto-review is off for this repo. Tick the box below to run a review on this PR.
Estimated cost
Tip: you can also comment |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository: qBraid/pyqasm/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary of changes
csandcsdgare validstdgates.incgates, but pyqasm currently rejects them during unrolling. This maps them to the existing controlled-phase decomposition at π/2 and −π/2.The new tests check both gates with a following measurement, compare their resulting unitaries, and reparse the unrolled QASM. The full suite passes with 909 tests passed and 3 skipped. Black, isort, Pylint, mypy, and whitespace checks pass.
Closes #439.