pygsti.modelmembers.povms.staticeffect
The StaticPOVMEffect class and supporting functionality.
Module Contents
Classes
A POVM effect vector that is completely fixed, or "static" (i.e. that posesses no parameters). |
- class pygsti.modelmembers.povms.staticeffect.StaticPOVMEffect(vec, basis=None, evotype='default', state_space=None)
Bases:
pygsti.modelmembers.povms.conjugatedeffect.ConjugatedStatePOVMEffect
A POVM effect vector that is completely fixed, or “static” (i.e. that posesses no parameters).
Parameters
- vecarray_like or POVMEffect
a 1D numpy array representing the POVM effect. The shape of this array sets the dimension of the POVM effect.
- evotypeEvotype or str, optional
The evolution type. The special value “default” is equivalent to specifying the value of pygsti.evotypes.Evotype.default_evotype.
- state_spaceStateSpace, optional
The state space for this operation. If None a default state space with the appropriate number of qubits is used.
Initialize a new POVM effect Vector
- set_dense(vec)
Set the dense-vector value of this POVM effect vector.
Attempts to modify this POVM effect vector’s parameters so that the raw POVM effect vector becomes vec. Will raise ValueError if this operation is not possible.
Parameters
- vecarray_like or POVMEffect
A numpy array representing a POVM effect vector, or a POVMEffect object.
Returns
None