qiskit.circuit.QuantumCircuit.p¶
- QuantumCircuit.p(theta, qubit)[source]¶
Apply
PhaseGate
.For the full matrix form of this gate, see the underlying gate documentation.
- Parameters
theta (Union[ParameterExpression, float]) – THe angle of the rotation.
qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) – The qubit(s) to apply the gate to.
- Returns
A handle to the instructions created.
- Return type