We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
The nullary (i.e. constant) bitwise ops ZERO and ONE were added in pytket 1.28.0. Currently they are not handled by pytket_to_phir().
ZERO
ONE
pytket_to_phir()
Describe the solution you'd like
Add support for these operations (conditioning on ONE means do the operation, conditioning on ZERO means don't).
Additional context
Example code:
from pytket.circuit import Circuit from pytket.circuit.logic_exp import BitWiseOp, create_bit_logic_exp from pytket.phir.api import pytket_to_phir circ = Circuit(1, 1) exp = create_bit_logic_exp(BitWiseOp.ONE, []) circ.H(0, condition=exp) circ.measure_all() pytket_to_phir(circ)
This currently gives an Assertion Error.
Assertion Error
The text was updated successfully, but these errors were encountered:
feat(phirgen): add support for ZERO/ONE nullary ops
dda0e10
Closes: #178
feat(phirgen): add support for ZERO/ONE nullary ops (#180)
fc136a1
qartik
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
The nullary (i.e. constant) bitwise ops
ZERO
andONE
were added in pytket 1.28.0. Currently they are not handled bypytket_to_phir()
.Describe the solution you'd like
Add support for these operations (conditioning on ONE means do the operation, conditioning on ZERO means don't).
Additional context
Example code:
This currently gives an
Assertion Error
.The text was updated successfully, but these errors were encountered: