Skip to content

Commit 86300fa

Browse files
Revert out of scope change
1 parent 9f27ac2 commit 86300fa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pennylane/decomposition/decomposition_rule.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,10 +598,10 @@ def list_decomps(op: type[Operator] | Operator | str) -> list[DecompositionRule]
598598
>>> print(qml.list_decomps(qml.CRX)[0])
599599
@register_resources(_crx_to_rx_cz_resources)
600600
def _crx_to_rx_cz(phi: TensorLike, wires: WiresLike, **__):
601-
qp.RX(phi / 2, wires=wires[1])
602-
qp.CZ(wires=wires)
603-
qp.RX(-phi / 2, wires=wires[1])
604-
qp.CZ(wires=wires)
601+
qml.RX(phi / 2, wires=wires[1])
602+
qml.CZ(wires=wires)
603+
qml.RX(-phi / 2, wires=wires[1])
604+
qml.CZ(wires=wires)
605605
>>> print(qml.draw(qml.list_decomps(qml.CRX)[0])(0.5, wires=[0, 1]))
606606
0: ───────────╭●────────────╭●─┤
607607
1: ──RX(0.25)─╰Z──RX(-0.25)─╰Z─┤

0 commit comments

Comments
 (0)