Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iqm-finland/KQCircuits
KLayout Python library for integrated quantum circuit design.
https://github.com/iqm-finland/KQCircuits
eda gds gds2 gdsii klayout quantum quantum-computing qubits superconducting superconducting-qubits unitaryhack
Last synced: 2 months ago
JSON representation
KLayout Python library for integrated quantum circuit design.
- Host: GitHub
- URL: https://github.com/iqm-finland/KQCircuits
- Owner: iqm-finland
- License: gpl-3.0
- Created: 2020-08-10T08:49:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T09:55:18.000Z (3 months ago)
- Last Synced: 2024-10-29T11:45:09.446Z (3 months ago)
- Topics: eda, gds, gds2, gdsii, klayout, quantum, quantum-computing, qubits, superconducting, superconducting-qubits, unitaryhack
- Language: Python
- Homepage:
- Size: 73.2 MB
- Stars: 138
- Watchers: 15
- Forks: 73
- Open Issues: 13
-
Metadata Files:
- Readme: README.rst
- Contributing: docs/contributing.rst
- License: LICENSE
- Support: docs/support.rst
Awesome Lists containing this project
- awesome_photonics - KQcircuits - Quantum circuits pdk. (layout)
README
.. image:: /docs/images/logo-small.png
:target: https://github.com/iqm-finland/KQCircuits
:alt: KQCircuits
:width: 300
:align: center**KQCircuits** is a Python library developed by IQM for automating the design of
superconducting quantum circuits. It uses the `KLayout `__ layout design API... image:: https://github.com/iqm-finland/KQCircuits/actions/workflows/ci.yaml/badge.svg
:target: https://github.com/iqm-finland/KQCircuits/actions/workflows/ci.yaml
:alt: Continuous Integration.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4944796.svg
:target: https://doi.org/10.5281/zenodo.4944796
:alt: DOI.. image:: https://img.shields.io/badge/License-GPLv3-blue.svg
:target: https://github.com/iqm-finland/kqcircuits/blob/master/LICENSE
:alt: License.. image:: https://img.shields.io/pypi/v/kqcircuits
:target: https://pypi.org/project/kqcircuits/
:alt: PyPI Package.. image:: https://img.shields.io/badge/click-for%20documentation%20%F0%9F%93%92-lightgrey
:target: https://iqm-finland.github.io/KQCircuits/index.html
:alt: Click for documentation.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Black badge----
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... image:: /docs/images/readme/design_flow.svg
:alt: QPU design workflow
:width: 700.. image:: /docs/images/readme/single_xmons_chip_3.png
:alt: Example layoutGetting started
---------------KQCircuits is a KLayout extension. KLayout can be used either using a graphical user interface or as
a standalone python module. For first time users, the graphical user interface (GUI) mode is recommended.To get a first introduction to KQCircuits, follow the
`Getting started tutorial `__. It will show you
how to install and use KQCircuits in the KLayout GUI, how to create your own custom elements and chips in python code,
and explains the basics of the KQCircuits workflow.The following video shows some of the KQC features:
.. image:: https://img.youtube.com/vi/9ra_5s2i3eU/mqdefault.jpg
:target: https://youtu.be/9ra_5s2i3eU
:alt: KQCircuits Getting StartedInstallation (Klayout GUI)
^^^^^^^^^^^^^^^^^^^^^^^^^^`First install KLayout `__.
Then, KQCircuits can be installed in two ways:* `As a Salt package directly from KLayout `__.
This allows you to use the KQCircuits chips and elements, and create a user package for your own custom designs.
* Download the GIT repository, and follow the `Developer GUI setup `__.
Choose this if you want to modify the KQCircuits code and possibly contribute to the project.You can always switch from Salt package to developer setup later on.
Installation as standalone python module
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`Installing KQCircuits as a stand alone python module `__
allows you to use KQCircuits features in your own python code with:.. code-block:: console
import kqcircuits
You will also get access to kqc related terminal commands such as:
.. code-block:: console
kqc mask quick_demo.py # To build a wafer mask, in this case quick_demo.py
kqc sim waveguides_sim_compare.py # To export and run waveguide simulationFor standalone installation run command
.. code-block:: console
python -m pip install -e "klayout_package/python[docs,tests,sim]"
Further details available in the `documentation `__.
Documentation
-------------Documentation for KQCircuits can be found `here `__.
It may also be generated from the sources with ``make html`` in the docs directory.
Tutorials
^^^^^^^^^Follow the `Getting started `__ section for tutorials.
.. image:: /docs/images/gui_workflows/converting_gui_elements_to_code.gif
:target: https://iqm-finland.github.io/KQCircuits/getting_started/gui_features/gui_elements_to_code.html
:alt: Example of GUI elements
:width: 600Simulations
-----------.. image:: /docs/images/readme/xmon_animation.gif
:alt: Animation of simulations
:width: 350KQC currently supports exporting to **Ansys HFSS/Q3D (also with pyEPR)**, **Sonnet**, and **Elmer**.
Parameter sweeps are easy to implement, for example
.. code-block:: python
simulations = sweep_simulation(layout, sim_class, sim_parameters, {
'cpl_length': [160, 180, 200],
'arm_width': [24, 28, 32, 36],
})exports simulations with the given individual parameters varied roughly as in the animation.
A sweep of all possible combinations between the given parameters is done by changing the function to
``cross_sweep_simulation``.
Check `klayout_package/python/scripts/simulations `__
for example simulation exports.Support
-------If you have any questions, problems or ideas related to KQCircuits, please start
a
`discussion in GitHub `__
or create a `GitHub issue `__.Contributing
------------Contributions to KQC are welcome from the community. Contributors are expected to accept IQM
Individual Contributor License Agreement by filling `a form at IQM website
`__.
See also section `Contributing
`__ in the
documentation.Citation
--------
Please see the
`documentation `__
for instructions on how to cite KQCircuits in your projects and publications.Copyright
---------This code is part of KQCircuits
Copyright (C) 2021-2024 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
https://www.gnu.org/licenses/gpl-3.0.html.The software distribution should follow IQM trademark policy for open-source software
(`meetiqm.com/iqm-open-source-trademark-policy `__).
IQM welcomes contributions to the code. Please see our contribution agreements for individuals
(`meetiqm.com/iqm-individual-contributor-license-agreement `__)
and organizations (`meetiqm.com/iqm-organization-contributor-license-agreement `__).Trademarks
----------KQCircuits is a registered trademark of IQM. Please see
`IQM open source software trademark policy `__.