surface_sim.layouts.rot_surface_codes#

rot_surface_codes(num_layouts, distance)[source]#

Returns a list of (square) rotated surface codes of the specified distance that are set up to be used in any logical circuit (i.e. they have all the implemented logical gate attributes).

Parameters:
num_layouts

Number of layouts to generate.

distance

The code distance.

Returns:
layouts

List of layouts.