flamingpy.decoders.decoder

Decoding and recovery functions.

Functions

assign_weights(code, decoder, **kwargs)

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

check_correction(code[, sanity_check])

Check whether the error correction has succeded or failed.

correct(code[, decoder, weight_options, ...])

Run through the qubit-level error-correction steps.

recovery(qubits_to_flip, code, ec[, ...])

Run recovery operations based on code based on qubits_to_flip.