Skip to content

Controlled rotation gate documentation #2285

@jin-sungk

Description

@jin-sungk

It'd be helpful to explicitly state the argument ordering for a controlled rx/ry/rz gate in this section https://nvidia.github.io/cuda-quantum/latest/api/default_ops.html#adjoint-and-controlled-operations

It's not obvious where the angle argument should go.

@cudaq.kernel
def kernel(angle: float):
    qubits=cudaq.qvector(2)
    c=qubits[0]
    t=qubits[1]
    x(c)
    rx.ctrl(angle,c,t)
    mz(qubits[1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions