Skip to content

Add method to apply any serialized pass to a circuit#2064

Merged
cqc-alec merged 2 commits intomainfrom
ae/capi
Nov 17, 2025
Merged

Add method to apply any serialized pass to a circuit#2064
cqc-alec merged 2 commits intomainfrom
ae/capi

Conversation

@cqc-alec
Copy link
Copy Markdown
Collaborator

Closes #2062 .

@cqc-alec cqc-alec closed this Nov 17, 2025
@cqc-alec cqc-alec reopened this Nov 17, 2025
@cqc-alec cqc-alec marked this pull request as ready for review November 17, 2025 12:02
@cqc-alec cqc-alec requested a review from aborgna-q November 17, 2025 12:03
Copy link
Copy Markdown
Contributor

@aborgna-q aborgna-q left a comment

Choose a reason for hiding this comment

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

Thanks!

@cqc-alec cqc-alec merged commit bccd21a into main Nov 17, 2025
49 of 60 checks passed
@cqc-alec cqc-alec deleted the ae/capi branch November 17, 2025 13:03
github-merge-queue bot pushed a commit to Quantinuum/tket2 that referenced this pull request Nov 25, 2025
)

Bumps the `tket-c-api` dependency to include
Quantinuum/tket#2064 and replaces the pass bindings in
`tket1-passes` with a generic method that takes a serialized pass and
applies it.

I kept the three "clifford_simp"/"two_qubit_squash"/"squash_phasedx_rz"
pass functions available in `tket-py.passes`, but they now initialize a
pytket pass and call the new generic binding.
The docs are copied directly from pytket's.

Those python functions will be replaced soon with @CalMacCQ's
`PytketPass` definition, so no need to look to much into them.
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.

Run arbitrary serializable passes with tket-c-api

2 participants