pygsti.modelmembers.instruments.convert#
- convert(instrument, to_type, basis, ideal_instrument=None, flatten_structure=False)#
Convert instrument to a new type of parameterization. This potentially creates a new object.
- Parameters:
instrument (InstrumentLike) – Instrument to convert.
to_type (str) – The type of parameterizaton to convert to. Supported types are “full”, “full TP”, “static”, and all Lindblad types.
basis (BasisLike) – The basis for Hilbert–Schmidt superoperators in instrument.values().
ideal_instrument (Instrument, optional) – Currently ignored. This argument is retained only to provide polymorphism across pyGSTi’s ModelMember convert functions.
flatten_structure (bool, optional) – Only relevant when to_type is in {“full”, “static”}. In these cases flatten_structure is forwarded to
_op.convert()when converting instrument’s constituent CPTR maps.
- Return type:
- Raises:
ValueError for invalid conversions. –