supergrad.utils.gates.cphase#
- supergrad.utils.gates.cphase(theta, n=2, control=0, target=1)[source]#
Returns quantum object representing the controlled phase shift gate.
SuperGrad-supported implementation of
qutip_qip.operations.gates.cphase().Original docstring below.
- Parameters:
theta (float) – Phase rotation angle.
control (integer) – The index of the control qubit.
target (integer) – The index of the target qubit.
- Returns:
U – Quantum object representation of controlled phase gate.
- Return type:
qobj