pygsti.processors.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.processors.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.

abstract __call__(self, arg)
_to_nice_serialization(self)
classmethod _from_nice_serialization(cls, state)