Skip to content

test: Add pytket->selene execution test #1228

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Aug 22, 2025

Adds a couple tests:

  • Running the emulator on a program with qsystem primitives, and complex angle expressions.
  • Running the emulator on a program translated from pytket, with the same qsystem primitives and expressions.

The second case fails unless we patch tket with CQCL/tket2#1061 :)

Kept as draft until we update tket with the fix.

@aborgna-q aborgna-q requested a review from ss2165 August 22, 2025 14:46
@aborgna-q aborgna-q requested a review from a team as a code owner August 22, 2025 14:46
circ.H(0)
circ.H(1)
circ.ZZMax(qubit0=1, qubit1=0)
circ.ZZPhase(angle=sympify("(pi/2) * 3"), qubit0=0, qubit1=1)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments about what the circuit is doing would be good (why it is identity)

@aborgna-q aborgna-q marked this pull request as draft August 22, 2025 15:06
@codecov-commenter
Copy link

codecov-commenter commented Aug 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.82%. Comparing base (84ba11d) to head (23ccb5f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1228      +/-   ##
==========================================
- Coverage   93.32%   92.82%   -0.51%     
==========================================
  Files         119      119              
  Lines       10937    10937              
==========================================
- Hits        10207    10152      -55     
- Misses        730      785      +55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants