supergrad.utils.gates.qasmu_gate

Contents

supergrad.utils.gates.qasmu_gate#

supergrad.utils.gates.qasmu_gate(args, n=None, target=0)[source]#

QASM U-gate as defined in the OpenQASM standard.

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

Original docstring below.

Parameters:
  • theta (float) – The argument supplied to the last RZ rotation.

  • phi (float) – The argument supplied to the middle RY rotation.

  • gamma (float) – The argument supplied to the first RZ rotation.

  • target (int) – The index of the target qubit.

Returns:

qasmu_gate – Quantum object representation of the QASM U-gate as defined in the OpenQASM standard.

Return type:

qutip.Qobj