pygsti.modelmembers.operations.staticarbitraryop

The StaticArbitraryOp class and supporting functionality.

Module Contents

Classes

StaticArbitraryOp

An operation matrix that is completely fixed, or "static" (i.e. that posesses no parameters).

class pygsti.modelmembers.operations.staticarbitraryop.StaticArbitraryOp(m, evotype='default', state_space=None)

Bases: pygsti.modelmembers.operations.denseop.DenseOperator, pygsti.modelmembers.errorgencontainer.NoErrorGeneratorInterface

An operation matrix that is completely fixed, or “static” (i.e. that posesses no parameters).

Parameters
  • m (array_like or LinearOperator) – a square 2D array-like or LinearOperator object representing the operation action. The shape of m sets the dimension of the operation.

  • evotype (Evotype or str, optional) – The evolution type. The special value “default” is equivalent to specifying the value of pygsti.evotypes.Evotype.default_evotype.

  • state_space (StateSpace, optional) – The state space for this operation. If None a default state space with the appropriate number of qubits is used.

_is_similar(self, other, rtol, atol)

Returns True if other model member (which it guaranteed to be the same type as self) has the same local structure, i.e., not considering parameter values or submembers