supergrad.utils.gates.globalphase

Contents

supergrad.utils.gates.globalphase#

supergrad.utils.gates.globalphase(theta, n=1)[source]#

Returns quantum object representing the global phase shift gate.

SuperGrad-supported implementation of qutip_qip.operations.gates.globalphase().

Original docstring below.

Parameters:

theta (float) – Phase rotation angle.

Returns:

phase_gate – Quantum object representation of global phase shift gate.

Return type:

qobj