pygsti.baseobjs.unitarygatefunction

Defines the UnitaryGateFunction class and supporting functionality.

Module Contents

Classes

UnitaryGateFunction

A convenient base class for building serializable "functions" for unitary gate matrices.

class pygsti.baseobjs.unitarygatefunction.UnitaryGateFunction

Bases: pygsti.baseobjs.nicelyserializable.NicelySerializable

A convenient base class for building serializable “functions” for unitary gate matrices.

Subclasses that don’t need to initialize any attributes other than shape only need to impliement the __call__ method and declare their shape as either a class or instance variable.