pygsti.modelmembers.povms.create_from_pure_vectors

pygsti.modelmembers.povms.create_from_pure_vectors#

create_from_pure_vectors(pure_vectors, povm_type, basis='pp', evotype='default', state_space=None, on_construction_error='warn')#

Creates a Positive Operator-Valued Measure (POVM) from a list or dictionary of (key, pure-vector) pairs.

Parameters:
  • pure_vectors (list or dict) – A list of (key, pure-vector) pairs or a dictionary where keys are labels and values are pure state vectors.

  • povm_type (str or tuple) – The type of POVM 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’, ‘full TP’, and any valid Lindblad parameterization type.

  • basis (str, optional) – The basis in which the pure vectors are expressed. Default is ‘pp’.

  • evotype (str, optional) – The evolution type. Default is ‘default’.

  • state_space (StateSpace, optional) – The state space in which the POVM operates. Default is None.

  • on_construction_error (str, optional) – Specifies the behavior when an error occurs during POVM 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 object.

Return type:

POVM