qrisp.cp#

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

Applies a controlled phase gate.

Parameters:
phifloat or sympy.Symbol

The phase to apply.

qubits_0Qubit or list[Qubit] or QuantumVariable

The first Qubit.

qubits_1Qubit or list[Qubit] or QuantumVariable

The second Qubit.