pygsti.objects.StaticGate.set_matrix¶
-
StaticGate.
set_matrix
(M)¶ Attempts to modify gate parameters so that the specified raw gate matrix becomes mx. Will raise ValueError if this operation is not possible.
Parameters: M (array_like or Gate) – An array of shape (dim, dim) or Gate representing the gate action. Returns: Return type: None