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
DecomposeClassicalExp()
from pytket import Circuit from pytket.circuit.logic_exp import BitZero, BitOne from pytket.passes import DecomposeClassicalExp circuit = Circuit(1) circuit.X(0, condition=BitZero()) DecomposeClassicalExp().apply(circuit)
Output:
Traceback (most recent call last): File "/home/alec/r/tket/pytket/pytket/circuit/decompose_classical.py", line 334, in _decompose_expressions comp_bit = bit_recursive_walk(pred_exp, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/alec/r/tket/pytket/pytket/circuit/decompose_classical.py", line 230, in recursive_walk arg1, arg2 = exp.args ^^^^^^^^^^ ValueError: not enough values to unpack (expected 2, got 0)
The text was updated successfully, but these errors were encountered:
cqc-alec
No branches or pull requests
Output:
The text was updated successfully, but these errors were encountered: