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
[x] I have performed a self-review of my code.
[x] I have commented hard-to-understand parts of my code.
[ ] I have made corresponding changes to the public API documentation.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have updated the changelog with any user-facing changes.
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