pygsti.modelmembers.povms.tppovm

Defines the TPPOVM class

Module Contents

Classes

TPPOVM

A POVM whose sum-of-effects is constrained to what, by definition, we call the "identity".

class pygsti.modelmembers.povms.tppovm.TPPOVM(effects, evotype=None, state_space=None, called_from_reduce=False)

Bases: pygsti.modelmembers.povms.basepovm._BasePOVM

A POVM whose sum-of-effects is constrained to what, by definition, we call the “identity”.

Parameters

effectsdict of POVMEffects or array-like

A dict (or list of key,value pairs) of the effect vectors. The final effect vector will be stripped of any existing parameterization and turned into a ComplementPOVMEffect which has no additional parameters and is always equal to identity - sum(other_effects, where identity is the sum of effects when this __init__ call is made.

evotypeEvotype or str, optional

The evolution type. If None, the evotype is inferred from the first effect vector. If len(effects) == 0 in this case, an error is raised.

state_spaceStateSpace, optional

The state space for this POVM. If None, the space is inferred from the first effect vector. If len(effects) == 0 in this case, an error is raised.

Creates a new BasePOVM object.

Parameters

effectsdict of POVMEffects or array-like

A dict (or list of key,value pairs) of the effect vectors.

evotypeEvotype or str, optional

The evolution type. If None, the evotype is inferred from the first effect vector. If len(effects) == 0 in this case, an error is raised.

state_spaceStateSpace, optional

The state space for this POVM. If None, the space is inferred from the first effect vector. If len(effects) == 0 in this case, an error is raised.

preserve_sumbool, optional

If true, the sum of effects is taken to be a constraint and so the final effect vector is made into a ComplementPOVMEffect.