API summary

Every box links to its API page; the components inside the library are generated from the code.

Designs

Table 1 Designs details

Class

Description

Components

This is a user interface for the design._components dict. The keys are unique integers, however, this interface allows user to treat the keys as strings. Set up variables and logger which are used to emulate a dict which is referencing design._components.

DesignPlanar

Metal class for a planar (2D) design, consisting of a single plane chip. Typically assumed to have some CPW geometries.

QDesign

QDesign is the base class for Quantum Metal designs. A design is the most top-level object in Quantum Metal. Create a new Metal QDesign.

QNet

Use DataFrame to hold Net Information about the connected pins of a design. There is one unique net_id for each connected pin. Hold the net information of all the USED pins within a design.

QLibrary

Table 2 Components details

Class

Description

BaseQubit

Qubit base class. Use to subscript, not to generate directly. Has connection lines that can be added.

ParsedDynamicAttributes_Component

Provides a parsing view of the component options

QComponent

QComponent is the base class for all Metal components and is the central construct from which all components in Metal are derived.

QRouteLead

A simple class to define a an array of points with some properties, defines 2D positions and some of the 2D directions (XY plane). All values stored as np.ndarray of parsed floats. QRouteLead is a simple sequence of points. Used to accurately control one of the QRoute termination points.

QRoutePoint

A convenience wrapper class to define an point with orientation, with a 2D position and a 2D direction (XY plane). All values stored as np.ndarray of parsed floats.

QRoute

Super-class implementing routing methods that are valid irrespective of the number of pins (>=1). The route is stored in a n array of planar points (x,y coordinates) and one direction, which is that of the last point in the array Values are stored as np.ndarray of parsed floats or np.array float pair.

Component gallery

Every other component class shipped with Quantum Metal (qubits, couplers, routes, resonators, terminations, lumped elements), with a thumbnail and links to its API page and example notebook.

QGeometryTables

Table 3 QGeometryTables details

Class

Description

QGeometryTables

Class to create, store, and handle element tables.

Renderers

Table 4 Renderers details

Class

Description

AnimatedText

Class that animates text.

Cheesing

Create a cheese cell based on input of no-cheese locations.

MplInteraction

Base class for class providing interaction to a matplotlib Figure.

PanAndZoom

Class providing pan & zoom interaction to a matplotlib Figure. Left button for pan, right button for zoom area and zoom on wheel. Support subplots, twin Axes and log scales.

PlotCanvas

Main Plot canvas widget.

QGDSRenderer

Extends QRenderer to export GDS formatted files. The methods which a user will need for GDS export should be found within this class. All chips within design should be exported to one gds file. For the “subtraction box”: 1. If user wants to export the entire design, AND if the base class of QDesign._chips[chip_name][‘size’] has dict following below example: {‘center_x’: 0.0, ‘center_y’: 0.0, ‘size_x’: 9, ‘size_y’: 6} then this box will be used for every layer within a chip. 2. If user wants to export entire design, BUT there is not information in QDesign._chips[chip_name][‘size’], then the renderer will calcuate the size of all of the components and use that size for the “subtraction box” for every layer within a chip. 3. If user wants to export a list of explicit components, the bounding box will be calculated by size of QComponents in the QGeometry table. Then be scaled by bounding_box_scale_x and bounding_box_scale_y. 4. Note: When using the Junction table, the cell for Junction should be “x-axis” aligned and then GDS rotates based on LineString given in Juction table.

QGmshRenderer

Exports a design to Gmsh through the Gmsh Python API, to mesh the chip for finite-element solvers. Needs the optional gmsh package.

QElmerRenderer (qiskit_metal.renderers.renderer_elmer)

Imports the Gmsh mesh into ElmerFEM through its Python API and runs the simulation. Registered as elmer. Needs ElmerFEM installed.

QMplRenderer

Matplotlib renderer for designs. Runs standalone, with no Qt, on any matplotlib axis passed to render, and inside the Qt GUI. Used by qm.view.

QAnsysRenderer

Extends QRenderer to export designs to Ansys through pyEPR. Base class of the two legacy Ansys renderers below.

QHFSSRenderer

Subclass of QAnsysRenderer for running HFSS simulations. Registered as hfss.

QQ3DRenderer

Subclass of QAnsysRenderer for running Q3D simulations. Registered as q3d.

QPyaedt

Base class of the pyaedt-based Ansys renderers.

QHFSSPyaedt

Subclass of the pyaedt renderer for running HFSS simulations. Registered as aedt_hfss.

QHFSSDrivenmodalPyaedt

Subclass of the pyaedt HFSS renderer for methods specific to driven-modal solutions.

QHFSSEigenmodePyaedt

Subclass of the pyaedt HFSS renderer for methods specific to eigenmode solutions.

QQ3DPyaedt

Subclass of the pyaedt renderer for running Q3D simulations. Registered as aedt_q3d.

QRenderer

Abstract base class for all Renderers of Metal designs and their components and qgeometry.

QRendererAnalysis

Abstract base class for all renderers intended for analysis.

QRendererGui

Abstract base class for the GUI rendering. Extends QRenderer. An interface class.

Vec3DArray

Array of np.ndarray points, used by the Gmsh renderer to hold 3D coordinates.

ZoomOnWheel

Class providing zoom on wheel interaction to a matplotlib Figure. This class extends the MplInteraction class. Supports subplots, twin Axes and log scales.

Analyses

Table 5 Analyses grouping

Group

Description

Hamiltonian

Module containing all Quantum Metal Hamiltonian-only analyses.

Sweep_Options

Module containing all Quantum Metal sweeping options for analyses.

Table 6 Analyses details

Class

Description

Hcpb

Used to model analytically the CPB Hamiltonian quickly and efficiently. Solves tridiagonal eigenvalue problem for arbitrary Ej, Ec, ng values.

Sweeping

Sweeps a variable in a component’s options. Needs access to renderers registered in QDesign.

QAnalysis

Core class from which all Quantum Metal analysis classes derive. Users change its setup dictionary to tune an analysis.

QSimulation

Subclass of QAnalysis that standardizes how analyses select and name renderers.

LOManalysis

Lumped oscillator model analysis of a simulated or user-provided capacitance matrix.

EPRanalysis

Energy participation ratio analysis of an input eigenmode dataset.

LumpedElementsSim

Computes the capacitance matrix using the selected renderer.

EigenmodeSim

Computes the eigenmodes, then derives results from them with the EPR method.

ScatteringImpedanceSim

Uses a driven-modal simulation to extract the impedance.

qiskit_metal.analyses.fem

Python finite-element solver. Meshes a chip in its package with gmsh and solves it with scikit-fem: eigenmodes with lumped junctions, a port reduced-order model, and electrostatics. See Simulation pathways.

qiskit_metal.analyses.em.package_modes

Closed-form package modes and qubit couplings, to check a full-wave simulation against: LSM modes of a box partly filled with a slab, and an impedance fit.

GUI

Table 7 GUI details

Class

Description

MetalGUI

Quantum Metal main GUI. This class extends the QMainWindowBaseHandler class. The GUI can be controlled by the user using the mouse and keyboard or API for full control.

qm.view (qiskit_metal.viewer)

Headless entry point. Renders a design to a matplotlib figure with no Qt. Also provides gui and show_inline. See Desktop GUI or headless.

Validation

Table 8 Validation details

Function

Description

qiskit_metal.validation.validate

Design-rule checking. Runs rules over a built design and returns the findings, for example shorted nets, features off the chip, and corners too tight to fillet. Rule thresholds are constructor arguments.

Toolbox_Metal

Table 9 Toolbox_Metal details

Class

Description

QiskitMetalDesignError

Custom Exception to indicate User action is needed to correct Design Inputs.

QiskitMetalExceptions

Custom Exception super-class. Every Exception raised by Quantum Metal should inherit this. Adds the “Qiskit Metal - “ prefix to the message.