Automate the design of superconducting quantum circuits.

About KQCircuits

KQCircuits is a Python library developed by the Aalto University and IQM Quantum Computers for automating the design of superconducting quantum circuits. It uses the KLayout layout design program API.

KQCircuits generates multi-layer 2-dimensional-geometry representing common structures in quantum processing units (QPU). It includes definitions of parametrized geometrical objects or “elements”, framework to easily define your own elements, framework to get geometry from the elements by setting values to parameters and a framework to assemble a full QPU design by combining many of the elements in different geometrical relations. Among other templates, are also structures to combine QPU designs to create optical mask layout and EBL patterns for fabrication of quantum circuits and export a set of files for a mask as needed for QPU fabrication.

Why KQCircuits?

Multi Qubit QPUs are a central part of Quantum Computers. Elements in KQCircuits are fully parameterised, to quickly design chips. Full access of the library of Quantum processor from IQM.

Quantum processor design is integral to the advancement of quantum innovation, but it is a difficult, time consuming process that involves several repetitive tasks.

KQCircuits using automation and reusable processes provides a scalable solution. Our vision is to develop a community-driven universal platform capable of orchestrating quantum chip development from concept to fabrication in a simple and open framework.

Getting started

KQCircuits is a KLayout extension. KLayout can be used either using a graphical user interface or as a standalone python module. KQCircuits supports both modes of operation. For the first time users, the graphical user interface mode is recommended.

Install and run KLayout once. Run python3 then klayout will contain KQCircuits. For further details see the getting started documentation.

For stand alone mode run python -m pip install -e .[docs,tests]. Then scripts may be run and documentation can be built. For further details see the documentation.


Documentation for KQCircuits can be found here.

It may also be generated from the sources with make html in the docs directory.


This code is part of KQCircuits Copyright (C) 2021 IQM Finland Oy

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see

The software distribution should follow IQM trademark policy for open-source software ( IQM welcomes contributions to the code. Please see our contribution agreements for individuals ( and organizations (


KQCircuits is a registered trademark of IQM. Please see IQM open source software trademark policy.