pygsti.objects.GateSet.get_dimension

GateSet.get_dimension()

Get the dimension of the gateset, which equals d when the gate matrices have shape d x d and spam vectors have shape d x 1. Equivalent to gateset.dim.

Returns:gateset dimension
Return type:int