class kqcircuits.qubits.qubit.Qubit[source]

Bases: kqcircuits.elements.element.Element

Base class for qubit objects without actual produce function.

Collection of shared sub routines for shared parameters and producing shared aspects of qubit geometry including

  • possible fluxlines

  • e-beam layers for SQUIDs

  • SQUID name parameter

LIBRARY_NAME = 'Qubit Library'
LIBRARY_DESCRIPTION = 'Library for qubits.'
LIBRARY_PATH = 'qubits'
produce_squid(transf, only_arms=False, **parameters)[source]

Produces the squid.

Creates the squid cell and inserts it with the given transformation as a subcell. Also inserts the squid parts in “base_metal_gap_wo_grid”-layer to “base_metal_gap_for_EBL”-layer.

  • transf (DCplxTrans) – squid transformation

  • parameters – other parameters for the squid

  • only_arms – Boolean argument that allows to choose whether to create the arms and the squid device or only the arms


Relative refpoints for the squid

Return type



Produces the fluxline.

Creates the fluxline cell and inserts it as a subcell. The “flux” and “flux_corner” ports are made available for the qubit.


parameters – parameters for the fluxline to overwrite default and subclass parameters

PCell parameters:

  • mirror_squid (Boolean) - Mirror SQUID by its Y axis, default=False

  • squid_type (String) - SQUID Type, default=Manhattan, choices=['NoSquid', 'Manhattan', 'QCD1', 'Sim', 'SIM1']

  • junction_width (Double) - Junction width (only used for code generated squids), default=0.02, unit=μm

  • loop_area (Double) - Loop area, default=100, unit=μm^2

  • fluxline_type (String) - Fluxline Type, default=Fluxline Standard, choices=['none', 'Fluxline Standard', 'Fluxline Straight']

  • fluxline_gap_width (Double) - Fluxline gap width, default=2, unit=μm