API summary¶
Every box links to its API page; the components inside the library are generated from the code.
QLibrary: QComponent subclasses
Qubits
Couplers
Tlines
Resonators
Terminations
Lumped
Sample shapes
Designs
Class |
Description |
|---|---|
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. |
|
Metal class for a planar (2D) design, consisting of a single plane chip. Typically assumed to have some CPW geometries. |
|
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. |
|
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
Class |
Description |
|---|---|
Qubit base class. Use to subscript, not to generate directly. Has connection lines that can be added. |
|
Provides a parsing view of the component options |
|
QComponent is the base class for all Metal components and is the central construct from which all components in Metal are derived. |
|
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. |
|
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. |
|
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. |
|
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
Class |
Description |
|---|---|
Class to create, store, and handle element tables. |
Renderers
Class |
Description |
|---|---|
Class that animates text. |
|
Create a cheese cell based on input of no-cheese locations. |
|
Base class for class providing interaction to a matplotlib Figure. |
|
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. |
|
Main Plot canvas widget. |
|
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. |
|
Exports a design to Gmsh through the Gmsh Python API, to mesh the chip for finite-element solvers. Needs the optional |
|
|
Imports the Gmsh mesh into ElmerFEM through its Python API and runs the simulation. Registered as |
Matplotlib renderer for designs. Runs standalone, with no Qt, on any matplotlib axis passed to |
|
Extends QRenderer to export designs to Ansys through pyEPR. Base class of the two legacy Ansys renderers below. |
|
Subclass of QAnsysRenderer for running HFSS simulations. Registered as |
|
Subclass of QAnsysRenderer for running Q3D simulations. Registered as |
|
Base class of the pyaedt-based Ansys renderers. |
|
Subclass of the pyaedt renderer for running HFSS simulations. Registered as |
|
Subclass of the pyaedt HFSS renderer for methods specific to driven-modal solutions. |
|
Subclass of the pyaedt HFSS renderer for methods specific to eigenmode solutions. |
|
Subclass of the pyaedt renderer for running Q3D simulations. Registered as |
|
Abstract base class for all Renderers of Metal designs and their components and qgeometry. |
|
Abstract base class for all renderers intended for analysis. |
|
Abstract base class for the GUI rendering. Extends QRenderer. An interface class. |
|
Array of |
|
Class providing zoom on wheel interaction to a matplotlib Figure. This class extends the MplInteraction class. Supports subplots, twin Axes and log scales. |
Analyses
Group |
Description |
|---|---|
Module containing all Quantum Metal Hamiltonian-only analyses. |
|
Module containing all Quantum Metal sweeping options for analyses. |
Class |
Description |
|---|---|
Used to model analytically the CPB Hamiltonian quickly and efficiently. Solves tridiagonal eigenvalue problem for arbitrary Ej, Ec, ng values. |
|
Sweeps a variable in a component’s options. Needs access to renderers registered in QDesign. |
|
Core class from which all Quantum Metal analysis classes derive. Users change its setup dictionary to tune an analysis. |
|
Subclass of QAnalysis that standardizes how analyses select and name renderers. |
|
Lumped oscillator model analysis of a simulated or user-provided capacitance matrix. |
|
Energy participation ratio analysis of an input eigenmode dataset. |
|
Computes the capacitance matrix using the selected renderer. |
|
Computes the eigenmodes, then derives results from them with the EPR method. |
|
Uses a driven-modal simulation to extract the impedance. |
|
|
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. |
|
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
Class |
Description |
|---|---|
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. |
|
|
Headless entry point. Renders a design to a matplotlib figure with no Qt. Also provides |
Validation
Function |
Description |
|---|---|
|
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
Class |
Description |
|---|---|
Custom Exception to indicate User action is needed to correct Design Inputs. |
|
Custom Exception super-class. Every Exception raised by Quantum Metal should inherit this. Adds the “Qiskit Metal - “ prefix to the message. |