CQCL / tket

Source code for the TKET quantum compiler, Python bindings and utilities
https://tket.quantinuum.com/
Apache License 2.0
252 stars 48 forks source link

Allow constant ZZPhase fidelity in DecomposeTK2 #1558

Closed johnchildren closed 3 weeks ago

johnchildren commented 4 weeks ago

Description

Currently it is not possible to serialize the Decompose TK2 pass as it can include an arbitrary function. This PR proposes allowing a constant float value in addition, which would allow serialization of the default compilation pass for pytket-quantinuum.

Related issues

Please mention any github issues addressed by this PR.

Checklist

johnchildren commented 3 weeks ago

Add transform tests