Decoders

class py_qcode.Decoder(algorithm, primal_lattice, dual_lattice, name='Un-named')

The role of a decoder is to infer an error given a syndrome. This requires the presence of the dual lattice (where the syndromes are stored), the primal lattice (where the real error is stored)

infer()

Uses self.algorithm to update the error on the primal_lattice, given the syndromes on the dual lattice.

Pre-defined Decoders

py_qcode.mwpm_decoder(primal_lattice, dual_lattice)

Decoder based on minimum-weight perfect matching using the blossom algorithm, implemented in networkx.

Table Of Contents

Previous topic

Error Models

Next topic

Utility Functions

This Page