pygsti.objects.WeightedGateString.__init__¶
-
WeightedGateString.
__init__
(tupleOfGateLabels, stringRepresentation=None, weight=1.0, bCheck=True)¶ Create a new WeightedGateString object
Parameters: - tupleOfGateLabels (tuple (or None)) – A tuple of gate labels specifying the gate sequence, or None if the sequence should be obtained by evaluating stringRepresentation as a standard-text-format gate string (e.g. “GxGy”, “Gx(Gy)^2, or “{}”).
- stringRepresentation (string, optional) – A string representation of this WeightedGateString.
- weight (float, optional) – the weight to assign this gate string.
- bCheck (bool, optional) – If true, raise ValueEror if stringRepresentation does not evaluate to tupleOfGateLabels.