qiskit.circuit.QuantumCircuit.mcp¶
- QuantumCircuit.mcp(lam, control_qubits, target_qubit)[código fonte]¶
Apply
MCPhaseGate
.For the full matrix form of this gate, see the underlying gate documentation.
- Parâmetros
lam (Union[ParameterExpression, float]) – The angle of the rotation.
control_qubits (Sequence[Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]]) – The qubits used as the controls.
target_qubit (Union[Qubit, QuantumRegister, int, slice, Sequence[Union[Qubit, int]]]) – The qubit(s) targeted by the gate.
- Retorno
A handle to the instructions created.
- Tipo de retorno