fp.codes

Available modules

graphs

Abstract graphs for qubit codes.

stabilizer

The abstract stabilizer class.

surface_code

Class for the measurement-based surface code and related functions.

Module members

The qubit codes module.

Functions

RHG_graph(dims[, boundaries, polarity])

Return an EGraph of a dims-dimensional RHG lattice.

alternating_polarity(edge)

Return +1 or -1 depending on the vertices that form edge edge.

Classes

EGraph(*args[, indexer, macronodes])

An enhanced graph for representing quantum graph states.

NxStabilizerGraph([ec, code])

An implementation of StabilizerGraph backed by a NetworkX graph.

RxStabilizerGraph([ec, code])

An implementation of StabilizerGraph backed by a retworkx graph.

Stabilizer(G)

A class for representing a stabilizer element of a code.

StabilizerGraph([ec, code])

An abstraction for a stabilizer graph.

SurfaceCode(distance[, ec, boundaries, ...])

A class for representing the surface code.

Class Inheritance Diagram

Inheritance diagram of flamingpy.codes.graphs.egraph.EGraph, flamingpy.codes.graphs.stabilizer_graph.NxStabilizerGraph, flamingpy.codes.graphs.stabilizer_graph.RxStabilizerGraph, flamingpy.codes.stabilizer.Stabilizer, flamingpy.codes.graphs.stabilizer_graph.StabilizerGraph, flamingpy.codes.surface_code.SurfaceCode

Contents