{ "cells": [ { "cell_type": "markdown", "id": "7fb27b941602401d91542211134fc71a", "metadata": {}, "source": [ "# 1.3 Build a 4-qubit chip\n", "\n", "In [1.1 Quick start](./1.1-Quick-start.ipynb) you placed a transmon, wired two with a CPW, and got comfortable with the `option → rebuild → view` loop. Now we'll scale up.\n", "\n", "You'll build a four-qubit chip with:\n", "\n", "- 4 `TransmonPocket` qubits arranged in a ring at the cardinal directions.\n", "- 4 `RouteMeander` CPWs connecting neighbouring qubits via their pins.\n", "- Shared `design.variables` for CPW width and gap so a single change updates every component.\n", "- An overlap-check pass before exporting.\n", "\n", "By the end you'll have a full design ready to save with `to_python_script()` (covered next in [1.4 Saving & exporting](./1.4-Saving-Your-Chip-Design.ipynb)).\n" ] }, { "cell_type": "markdown", "id": "acae54e37e7d407bbb7b55eff062a284", "metadata": {}, "source": [ "[](https://colab.research.google.com/github/qiskit-community/qiskit-metal/blob/main/tutorials/1%20Overview/1.3%20Build%20a%204-qubit%20chip.ipynb)\n", "[](https://mybinder.org/v2/gh/qiskit-community/qiskit-metal/main?labpath=tutorials%2F1%20Overview%2F1.3%20Build%20a%204-qubit%20chip.ipynb)\n", "\n", "> 💡 **Running in Colab or Binder?** Skip the desktop GUI install — the cell below grabs the lite (no-Qt) wheel, and `qm.gui(design)` auto-picks an inline matplotlib viewer with the same API as the desktop `MetalGUI`." ] }, { "cell_type": "code", "execution_count": null, "id": "9a63283cbaf04dbcab1f6479b197f3a8", "metadata": {}, "outputs": [], "source": [ "# In Colab / Binder, uncomment to install Quantum Metal (lite, no Qt).\n", "# Locally you should already have it via `pip install quantum-metal` or\n", "# `pip install 'quantum-metal[gui]'` for the desktop GUI.\n", "# !pip install -q quantum-metal" ] }, { "cell_type": "code", "execution_count": null, "id": "8dd0d8092fe74a7c96281538738b07e2", "metadata": {}, "outputs": [], "source": [ "import qiskit_metal as metal\n", "import qiskit_metal as qm\n", "from qiskit_metal import Dict, designs, draw\n", "from qiskit_metal.qlibrary.qubits.transmon_pocket import TransmonPocket\n", "from qiskit_metal.qlibrary.tlines.meandered import RouteMeander\n", "\n", "design = designs.DesignPlanar()\n", "design.overwrite_enabled = True # we'll re-run cells freely\n", "gui = qm.gui(design)" ] }, { "cell_type": "code", "execution_count": 4, "id": "c6699e08", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "