pygsti.objects.LinearlyParameterizedGate.set_matrix¶
-
LinearlyParameterizedGate.
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 (numpy array or Gate) – A numpy array of shape (dim, dim) or Gate representing the gate action. Returns: Return type: None