pygsti.objects.GateSet.product¶
-
GateSet.
product
(gatestring, bScale=False)¶ Compute the product of a specified sequence of gate labels.
Note: Gate matrices are multiplied in the reversed order of the tuple. That is, the first element of gatestring can be thought of as the first gate operation performed, which is on the far right of the product of matrices.
Parameters: - gatestring (GateString or tuple of gate labels) – The sequence of gate labels.
- bScale (bool, optional) – When True, return a scaling factor (see below).
Returns: - product (numpy array) – The product or scaled product of the gate matrices.
- scale (float) – Only returned when bScale == True, in which case the actual product == product * scale. The purpose of this is to allow a trace or other linear operation to be done prior to the scaling.