deltakit.explorer.codes.UnrotatedToricCode.draw_patch#

UnrotatedToricCode.draw_patch(filename: str | None = None, unrotated_code: bool = False) None#

Draw a picture of the planar code, optionally saving it to a .png file.

Parameters:

filename (str, optional) – Path to the file where to save the pictorial representation of the planar code stored in this class.