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.
- Return type
- Returns
A handle to the instructions created.