pygsti.modelmembers.povms.create_effect_from_pure_vector#
- create_effect_from_pure_vector(pure_vector, effect_type, basis='pp', evotype='default', state_space=None, on_construction_error='warn')#
Creates a POVM effect from a pure state vector.
- Parameters:
pure_vector (array-like) – The pure state vector 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 ‘computational’, ‘static pure’, ‘full pure’, ‘static’, ‘full’, ‘static clifford’, and any valid Lindblad parameterization type.
basis (str or Basis optional) – The basis in which the pure 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: