flamingpy.decoders.decoder.assign_weights

flamingpy.decoders.decoder.assign_weights(code, decoder, **kwargs)[source]

Assign weights, reflecting error probabilities, to qubits in code.

Parameters
  • code (SurfaceCode) – the qubit QEC code

  • decoder (str) – the decoder used

  • method (str, optional) – the method for weight assignment. By default, ‘uniform’, denoting equal weights everywhere. For heuristic and analog weight assignment from Xanadu’s blueprint, use ‘blueprint’ (compatible with the MWPM decoder).

  • integer (bool, optional) – whether to convert weights to integers using Python’s round function; False by default

  • multiplier (int, optional) – multiply the weight by multiplier before rounding; 1 by default

  • delta (float, optional) – the CV noise parameter.

Returns

None

Contents

Home

Background

Using FlamingPy

Development

Getting Help

Python API