pygsti.objects.GateSet.increase_dimension¶
-
GateSet.
increase_dimension
(newDimension)¶ Enlarge the spam vectors and gate matrices of gateset to a specified dimension, and return the resulting inflated gateset. Spam vectors are zero-padded and gate matrices are padded with 1’s on the diagonal and zeros on the off-diagonal (effectively padded by identity operation).
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 increased-dimension GateSet Return type: GateSet