surface_sim.layouts.rot_surface_code_rectangles#

rot_surface_code_rectangles(num_layouts, distance)[source]#

Returns a list of 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 distance of logical Pauli X of the layouts. The distance of logical Pauli Z is distance + 1.

Returns:
layouts

List of layouts.