pygsti.modelmembers.povms.create_effect_from_dmvec#
- create_effect_from_dmvec(superket_vector, effect_type, basis='pp', evotype='default', state_space=None, on_construction_error='warn')#
Creates a POVM effect from a density matrix vector (superket).
- Parameters:
superket_vector (array-like) – The density matrix vector (superket) from which to create the POVM effect.
effect_type (str or tuple) – The type of effect to create. This can be a single string or a tuple of strings indicating the preferred types. Supported types include ‘static’, ‘full’, and any valid Lindblad parameterization type. For other types we first try to convert to a pure state vector and then utilize create_effect_from_pure_vector
basis (str or Basis optional) – The basis in which the superket vector is expressed. Default is ‘pp’.
evotype (str, optional) – The evolution type. Default is ‘default’.
state_space (StateSpace, optional) – The state space in which the effect operates. Default is None.
on_construction_error (str, optional) – Specifies the behavior when an error occurs during effect construction. Options are ‘raise’ to raise the error, ‘warn’ to print a warning message, or any other value to silently ignore the error. Default is ‘warn’.
- Returns:
The constructed POVM effect object.
- Return type: