pygsti.objects.Gate

class pygsti.objects.Gate(mx=None)

Excapulates a parameterization of a gate matrix. This class is the common base class for all specific parameterizations of a gate.

__init__(mx=None)

Initialize a new Gate

Methods

__init__([mx]) Initialize a new Gate
convert_to_matrix(M) Static method that converts a matrix-like object to a 2D numpy array.
get_dimension() Return the dimension of the gate matrix.