Skip to content
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

Rebase all tket1 operations to H-series #583

Open
5 tasks
ss2165 opened this issue Sep 4, 2024 · 0 comments
Open
5 tasks

Rebase all tket1 operations to H-series #583

ss2165 opened this issue Sep 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ss2165
Copy link
Member

ss2165 commented Sep 4, 2024

Following on from #490

Eldarion and downwards expect quantum operations to be in H-series gateset (phasedX, ZZMax, ZZPhase, Rz, TK2). Currently you can program in guppy in this set and everything works. Users will want to use more familiar gates, so ideally we should allow them to program using all the standard gates from TKET1.

  • For all tket1 ops, ask tket1 to rebase to CX, TK1 (maybe TK2, TK1). If unparametrised, convert to HUGR and store.
  • If parametrised, attempt to convert resulting symbolic expressions (automatically or by hand if simple enough).
  • Any where conversion wasn't possible, mark as unsupported.
  • Add lowering HUGRs from standard gates (CX, TK1) to H-series gate set.
  • Use hard coded circuits + standard set lowering to do multi-stage rebasing by replacing ops.
@ss2165 ss2165 added the enhancement New feature or request label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant