pygsti.modelmembers.povms.create_from_dmvecs#
- create_from_dmvecs(superket_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, superket) pairs.
- Parameters:
superket_vectors (list or dict) – A list of (key, pure-vector) pairs or a dictionary where keys are labels and values are superket vectors. i.e. vectorized density matrices.
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 ‘full’, ‘static’, ‘full TP’, ‘computational’, ‘static pure’, ‘full pure’, and any valid Lindblad parameterization type.
basis (str or Basis, optional) – The basis in which the density matrix 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: