Skip to content

bloqade.qasm2.p

← Module overview

functionpsource

bloqade.qasm2.p

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

Phase gate.

This is equivalent to u(0,0,lam), and u1(lam)

Parameters

NameTypeDescription
qargQubitThe qubit to apply the gate to.
lamfloatThe angle of phase.
source