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
The following program fails with an AssertionError when using AutoGraph:
AssertionError
dev = qml.device("lightning.qubit", wires=2) @qml.qjit(autograph=True) @qml.qnode(dev) def circuit(): qml.ctrl(qml.PauliX(0), control=1) return qml.probs(wires=0)
However, it works fine when qml.ctrl is passed a callable instead:
qml.ctrl
@qml.qjit(autograph=True) @qml.qnode(dev) def circuit(): qml.ctrl(qml.PauliX, control=1)(0) return qml.probs(wires=0) >>> circuit() Array([1., 0.], dtype=float64)
This is likely because the hotfix defined here,
catalyst/frontend/catalyst/autograph/ag_primitives.py
Lines 537 to 552 in 8458516
does not take this form of ctrl/adjoint into account.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program fails with an
AssertionError
when using AutoGraph:However, it works fine when
qml.ctrl
is passed a callable instead:This is likely because the hotfix defined here,
catalyst/frontend/catalyst/autograph/ag_primitives.py
Lines 537 to 552 in 8458516
does not take this form of ctrl/adjoint into account.
The text was updated successfully, but these errors were encountered: