Skip to content

[WIP] Trying to fix adjoint with Subroutine#2495

Closed
albi3ro wants to merge 2 commits intomainfrom
subroutine-order-switch
Closed

[WIP] Trying to fix adjoint with Subroutine#2495
albi3ro wants to merge 2 commits intomainfrom
subroutine-order-switch

Conversation

@albi3ro
Copy link
Copy Markdown
Contributor

@albi3ro albi3ro commented Feb 19, 2026

Context:

Trying to get the adjoint of a subroutine to work:

@qml.templates.Subroutine
def f(x, wires):
    qml.RX(x, wires)

@qml.qjit(capture=True)
@qml.qnode(qml.device('lightning.qubit', wires=1))
def c():
    qml.adjoint(f)(0.5, 0)
    return qml.probs(0)

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:
[sc-111989]

@albi3ro albi3ro changed the title [WIP] Trying to fix adjoint with Subroutine [WIP] Integrating Subroutine with tape-pl graph decomps Feb 23, 2026
@albi3ro albi3ro changed the title [WIP] Integrating Subroutine with tape-pl graph decomps [WIP] Trying to fix adjoint with Subroutine Feb 23, 2026
@paul0403
Copy link
Copy Markdown
Member

Closing as the adjoint issues are fixed in #2590

@paul0403 paul0403 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants