pygsti.tools.optools.povm_diamonddist

pygsti.tools.optools.povm_diamonddist#

povm_diamonddist(model, target_model, povmlbl, _premultiplier=None)#

Computes the diamond distance between POVM maps using diamonddist().

Parameters:
  • model (Model) – The model the POVM belongs to.

  • target_model (Model) – The target model (which also has povmlbl).

  • povmlbl (Label) – Label of the POVM to get the diamond distance of.

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.