pygsti.objects.GateSet.randomize_with_unitary¶
-
GateSet.
randomize_with_unitary
(scale, seed=None)¶ Apply a random unitary to each element of a gateset, and return the result, without modifying the original (this) gateset. This method currently only works on single- and two-qubit gatesets, and assumes that the gate matrices of this gateset are being interpreted in the Pauli-product basis.
Parameters: - scale (float) – maximum element magnitude in the generator of each random unitary transform.
- seed (int, optional) – if not None, seed numpy’s random number generator with this value before generating random depolarizations.
Returns: the randomized GateSet
Return type: