bloqade.qasm2.cp
← Module overview
function
source
functioncp¶source
bloqade.qasm2.cp
def cp(ctrl: Qubit, qarg: Qubit, lam: float) -> NoneControlled phase rotation gate. Same as cu1
Parameters
| Name | Type | Description |
|---|---|---|
ctrl | Qubit | The control qubit. |
qarg | Qubit | The target qubit. |
lam | float | The angle of rotation. |