pygsti.modelmembers.povms.convert_effect

Contents

pygsti.modelmembers.povms.convert_effect#

convert_effect(effect, to_type, basis, ideal_effect=None, flatten_structure=False)#

TODO: update docstring Convert POVM effect vector to a new type of parameterization.

This potentially creates a new POVMEffect object. Raises ValueError for invalid conversions.

Parameters:
  • effect (POVMEffect) – POVM effect vector to convert

  • to_type ({"full","TP","static","static pure","clifford",LINDBLAD}) – The type of parameterizaton to convert to. “LINDBLAD” is a placeholder for the various Lindblad parameterization types. See Model.set_all_parameterizations() for more details.

  • basis ({'std', 'gm', 'pp', 'qt'} or Basis object) – The basis for spamvec. Allowed values are Matrix-unit (std), Gell-Mann (gm), Pauli-product (pp), and Qutrit (qt) (or a custom basis object).

  • extra (object, optional) – Additional information for conversion.

Returns:

The converted POVM effect vector, usually a distinct object from the object passed as input.

Return type:

POVMEffect