pygsti.objects.GateSet.decrease_dimension¶
-
GateSet.
decrease_dimension
(newDimension)¶ Shrink the spam vectors and gate matrices of gateset to a specified dimension, and return the resulting gate set.
Parameters: newDimension (int) – the dimension of the returned gateset. That is, the returned gateset will have rho and E vectors that have shape (newDimension,1) and gate matrices with shape (newDimension,newDimension) Returns: the decreased-dimension GateSet Return type: GateSet