flamingpy.codes.surface_code

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

Classes

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

A class for representing the surface code.

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.

dual_neighbours(p[, displace])

All the dual neighbours of primal vertex p in the RHG lattice.

str_to_bound(bound_name)

Return a list of x-y-z boundaries corresponding to bound_name.

Contents

Home

Background

Using FlamingPy

Development

Getting Help

Python API