pygsti.evotypes.basereps

Base classes for representations.

Module Contents

Classes

OpRep

The base class for all operation representation classes

StockTermRep

A basic term representation that just holds other representation types (polys, states, effects, and gates).

Attributes

LARGE

SMALL

StockTermDirectRep

class pygsti.evotypes.basereps.OpRep

The base class for all operation representation classes

pygsti.evotypes.basereps.LARGE = 1000000000
pygsti.evotypes.basereps.SMALL = 1e-05
class pygsti.evotypes.basereps.StockTermRep(coeff, mag, logmag, pre_state, post_state, pre_effect, post_effect, pre_ops, post_ops)

Bases: pygsti.evotypes.basereps_cython.TermRep

A basic term representation that just holds other representation types (polys, states, effects, and gates).

This “stock” class is in many cases entirely sufficient of an evotype, and is used by default when an evotype doesn’t define its own term-representation types so that evotypes don’t need to define term-rep types unless they’re doing something that is non-standard.

TODO: rest of StockTermRep docstring

classmethod composed(cls, terms_to_compose, magnitude)
set_magnitude(self, mag)
set_magnitude_only(self, mag)
mapvec_indices_inplace(self, mapvec)
scalar_mult(self, x)
copy(self)
pygsti.evotypes.basereps.StockTermDirectRep