pygsti.baseobjs.errorgenlabel

Defines the ElementaryErrorgenLabel class and supporting functionality.

Module Contents

Classes

ElementaryErrorgenLabel

TODO: docstring - for entire module

LocalElementaryErrorgenLabel

Labels an elementary error generator by simply a type and one or two

GlobalElementaryErrorgenLabel

Labels an elementary error generator on n qubits that includes the state

Functions

_to_int_or_strip(x)

pygsti.baseobjs.errorgenlabel._to_int_or_strip(x)
class pygsti.baseobjs.errorgenlabel.ElementaryErrorgenLabel

Bases: object

TODO: docstring - for entire module

class pygsti.baseobjs.errorgenlabel.LocalElementaryErrorgenLabel(errorgen_type, basis_element_labels)

Bases: ElementaryErrorgenLabel

Labels an elementary error generator by simply a type and one or two basis element labels.

classmethod cast(cls, obj, sslbls=None, identity_label='I')
__hash__(self)

Return hash(self).

__eq__(self, other)

Return self==value.

__str__(self)

Return str(self).

__repr__(self)

Return repr(self).

class pygsti.baseobjs.errorgenlabel.GlobalElementaryErrorgenLabel(errorgen_type, basis_element_labels, sslbls)

Bases: ElementaryErrorgenLabel

Labels an elementary error generator on n qubits that includes the state space labels on which the generator acts (unlike a “local” label, i.e. a LocalElementaryErrorgenLabel which doesn’t)

classmethod cast(cls, obj, sslbls=None, identity_label='I')

TODO: docstring - lots in this module

__hash__(self)

Return hash(self).

__eq__(self, other)

Return self==value.

__str__(self)

Return str(self).

__repr__(self)

Return repr(self).