pygsti.objects.SpamSpec

class pygsti.objects.SpamSpec(label, gatestring)

Encapsulates a rho- or E-vector label paired with a gate string, which serves as either a “prep-specifier” or an “effect-specifier” respectively. A prep-specifier means a state preparation followed by the gate string, while an effect-specifier means a gate string followed by a measurement (Note: gate strings are performed in left-to-right order!)

__init__(label, gatestring)

Create a new SpamSpec object

Parameters:
  • label (str) – rho- or E-vector label
  • gatestring (tuple or GateString) – gate string, evaluated in left-to-right order, which precedes or follows the E- or rho-vector indexed by index, respectively.

Methods

__init__(label, gatestring) Create a new SpamSpec object