pygsti.modelmembers.states.staticstate

The StaticState class and supporting functionality.

Module Contents

Classes

StaticState

A state vector that is completely fixed, or "static" (i.e. that posesses no parameters).

class pygsti.modelmembers.states.staticstate.StaticState(vec, evotype='default', state_space=None)

Bases: pygsti.modelmembers.states.densestate.DenseState

A state vector that is completely fixed, or “static” (i.e. that posesses no parameters).

Parameters
  • vec (array_like or State) – a 1D numpy array representing the state. The shape of this array sets the dimension of the state.

  • 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