flamingpy.decoders.uf_decoder

flamingpy.decoders.uf_decoder(code, ec, **kwargs)[source]

Run the full Union-Find and peeling decoder on code.

Parameters
  • code (SurfaceCode) – the code class to decode and correct

  • ec (string) – the error complex (“primal” or “dual”)

Returns

the nodes (representing qubits) be fed into the recovery

(i.e. whose bit values must be flipped).

Return type

set[tuples]