Skip to content

Commit

Permalink
update docstr forgotten to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryChen97 committed Jan 28, 2025
1 parent 4972848 commit 1998778
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pennylane/ops/op_math/controlled_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def _deprecate_control_wires(control_wires):

# pylint: disable=too-few-public-methods
class ControlledQubitUnitary(ControlledOp):
r"""ControlledQubitUnitary(U, control_wires, wires, control_values)
Apply an arbitrary fixed unitary to ``wires`` with control from the ``control_wires``.
r"""ControlledQubitUnitary(U, wires)
Apply an arbitrary fixed unitary matrix ``U`` to ``wires``. If ``n = len(wires) `` and ``U`` has ``k`` wires, then the first ``n - k`` from ``wires`` serve as control, and ``U`` lives on the last ``k`` wires.
.. warning::
Expand Down Expand Up @@ -76,7 +76,7 @@ class ControlledQubitUnitary(ControlledOp):
wires (Union[Wires, Sequence[int], or int]): the wires the full
controlled unitary acts on, composed of the controlled wires followed
by the target wires
control_wires (Union[Wires, Sequence[int], or int]): the control wire(s)
control_wires (Union[Wires, Sequence[int], or int]): (deprecated) the control wire(s)
control_values (List[int, bool]): a list providing the state of the control qubits to
control on (default is the all 1s state)
unitary_check (bool): whether to check whether an array U is unitary when creating the
Expand Down

0 comments on commit 1998778

Please sign in to comment.