qrisp.QuantumCircuit.cp#

QuantumCircuit.cp(phi, qubits_0, qubits_1)[source]#

Instruct a controlled phase-gate.

Parameters
phifloat or sympy.Symbol

The angle parameter.

qubits_0Qubit

The Qubit to apply the gate on.

qubits_1Qubit

The other Qubit to apply the gate on.