pygsti.tools.internalgates.standard_gatename_unitaries

pygsti.tools.internalgates.standard_gatename_unitaries#

standard_gatename_unitaries()#

Constructs and returns a dictionary of unitary matrices describing the action of “standard” gates.

These gates (the keys of the returned dictionary) are:

  • Clifford Gates:

    • ‘Gi’ : the 1Q idle operation.

    • ‘Gxpi’,’Gypi’,’Gzpi’ : 1Q pi rotations around X, Y and Z.

    • ‘Gxpi2’,’Gypi2’,’Gzpi2’ : 1Q pi/2 rotations around X, Y and Z.

    • ‘Gxmpi2’,’Gympi2’,’Gzmpi2’ : 1Q -pi/2 rotations around X, Y and Z.

    • ‘Gh’ : Hadamard.

    • ‘Gp’, ‘Gpdag’ : phase and inverse phase (an alternative notation/name for Gzpi and Gzmpi2).

    • ‘Gci’ where i = 0, 1, …, 23 : the 24 1-qubit Clifford gates (all the gates above are included as one of these).

    • ‘Gcphase’,’Gcnot’,’Gswap’, ‘Giswap’ : standard 2Q gates.

    • ‘Gsqrtiswap’ : square-root of ISWAP gate, used in some superconducting qubit platforms.

    • ‘Gxx’, ‘Gzz’ : MS-style parity gates

    • ‘Gcres’, ‘Gecres’ : Cross-resonance and echoed cross-resonance gates. Native gate operations common on transmon systems (including IBM).

    • ‘Gecr’ : alternative name for the echoed cross-resonance gate, matching OpenQASM / IBM conventions.

  • Non-Clifford gates:

    • ‘Gt’, ‘Gtdag’ : the T and inverse T gates (T is a Z rotation by pi/4).

    • ‘Gzr’ : a parameterized gate that is a Z rotation by an angle, where when the angle = pi then it equals Z.

    • ‘Gn’ : N gate, pi/2 rotation about the (np.sqrt(3)/2, 0, -1/2) axis of the Bloch sphere, native gate in some spin qubit systems.

    • ‘Gu3’ : parameterized gate that can encode any single-qubit rotation with three parameters (theta, phi, lambda).

Mostly, pyGSTi does not assume that a gate with one of these names is indeed the unitary specified here. Instead, these names are intended as short-hand for defining ProcessorSpecs and n-qubit models. Moreover, when these names are used then conversion of circuits to QUIL or QISKIT is particular convenient, and does not require the user to specify the syntax conversion.

Return type:

dict of numpy.ndarray objects.