Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,24 @@
* The graph-based decomposition system now supports **adjoint operators** for `Operator2`.
[(#3120)](https://github.com/PennyLaneAI/catalyst/pull/3120)
[(#3115)](https://github.com/PennyLaneAI/catalyst/pull/3115)
[(#3204)](https://github.com/PennyLaneAI/catalyst/pull/3204)

For a target gate set, `Adjoint(Op)` is reached through any of three pathways:
1. Rules registered on the base `Op`,
2. Rules registered directly for `Adjoint(Op)`, and
3. Rules *synthesized by distribution* (`decompose(Adjoint(Op)) = adjoint(decompose(Op))`).

Pathway 2 now also covers the rules PennyLane registers with the *symbolic* operator's arguments,
i.e. `rule(base)` rather than the base op's `(*params, wires)`. This is how
`self_adjoint`, `adjoint_rotation` and other symbolic rules are written, so `Adjoint(H)`, `Adjoint(X)`,
`Adjoint(RZ)`, `Adjoint(Rot)`, ... now decompose straight back to their base operator instead of
falling through to the (much longer) distributed rules, or failing to solve at all when the base
op is the only member of the target `gate_set`.

A rule registered for `Adjoint(Op)` must now take `base`; this is the convention PennyLane's own
graph calls such a rule with, and the one every `Operator2` rule in PennyLane already follows. A
rule written against the base op's parameters instead is skipped with a `RuleLoweringWarning`.

* The graph-based decomposition system now supports **controlled operators** for `Operator2`,
including single control (`C(Op)`), multiple controls (`<n>C(Op)`), and their composition with
adjoint.
Expand Down
Loading
Loading