qiskit.circuit.QuantumCircuit.u1¶
- QuantumCircuit.u1(theta, qubit)[source]¶
Apply
U1Gate
.For the full matrix form of this gate, see the underlying gate documentation.
- Paramètres
theta (
Union
[ParameterExpression
,float
]) – The \(\theta\) rotation angle of the gate.qubit (
Union
[Qubit
,QuantumRegister
,int
,slice
,Sequence
[Union
[Qubit
,int
]]]) – The qubit(s) to apply the gate to.
- Type renvoyé
- Renvoie
A handle to the instructions created.