Skip to content

bloqade.qasm2.cp

← Module overview

functioncpsource

bloqade.qasm2.cp

def cp(ctrl: Qubit, qarg: Qubit, lam: float) -> None

Controlled phase rotation gate. Same as cu1

Parameters

NameTypeDescription
ctrlQubitThe control qubit.
qargQubitThe target qubit.
lamfloatThe angle of rotation.
source