flamingpy.decoders.decoder.recovery

flamingpy.decoders.decoder.recovery(qubits_to_flip, code, ec, sanity_check=False)[source]

Run recovery operations based on code based on qubits_to_flip.

Fip the bit values of all the vertices in qubits_to_flip. If sanity_check is True, verify that there are no odd-parity cubes remaining, or display their indices of there are.

Parameters
  • qubits_to_flip (iterable) – the set of nodes of the code EGraph whose bit values oughtto be flipped

  • code (SurfaceCode) – the qubit QEC code

  • ec (string) – the error complex (‘primal’ or ‘dual’)

  • sanity_check (bool) – if True, check if the recovery has succeeded and print a message.

Returns

None

Contents

Home

Background

Using FlamingPy

Development

Getting Help

Python API