pygsti.tools.optools.instrument_diamonddist#
- instrument_diamonddist(a, b, mx_basis, _premultiplier=None)#
The diamond distance between instruments a and b.
- Parameters:
a (Instrument) – The first instrument.
b (Instrument) – The second instrument.
mx_basis (Basis or {'pp', 'gm', 'std'}) – the basis that a and b are in.
- Return type:
float
Notes
_premultiplier is not in the public API. It’s here for the time being to facilitate leakage modeling. When present, it’s a value returned from pygsti.leakage.computational_projector.