Quantization methods¶
An electromagnetic solver returns fields, capacitances and impedances. To get a Hamiltonian (mode frequencies, anharmonicities, dispersive shifts, couplings) the result has to be quantized. Quantum Metal supports three routes, from a quick quasi-static estimate to a full-wave solve. They answer the same question at different cost, so it is common to start with the cheapest and check against the next.
Method |
You solve |
You get |
Use it when |
|---|---|---|---|
Lumped-oscillator model (LOM) |
capacitance (and inductance) of each cell, quasi-static |
frequencies, anharmonicities, couplings of a circuit assembled from cells |
exploring geometry; routing and first-order couplings; no eigenmode solve needed |
Energy participation (EPR) |
eigenmodes of the linearized circuit, full-wave |
Hamiltonian with field-aware couplings, and a loss budget per volume or interface |
layout details matter: packaging, higher modes, seams, substrate loss |
Impedance |
impedance or scattering matrix versus frequency at the ports |
mode frequencies and couplings read from poles and residues |
many ports (bus networks, Purcell filters, packages), or as an independent check of EPR |
Where to run each one:
Method |
In Quantum Metal |
Tutorials |
|---|---|---|
LOM |
|
|
EPR |
|
|
Impedance |
|
Which solver each method needs is compared on Simulation pathways.
Lumped-oscillator model¶
Treat each part of the chip as a compact circuit element. Cut the device into a few cells, extract each cell’s capacitance and inductance with a fast quasi-static solve, assemble the network, and quantize it. The reduction keeps the pairwise couplings, so renormalization and loading are tracked and the result is a small Hamiltonian you can iterate on in minutes.
Choose it for early design and sweeps, when speed and an intuitive circuit picture matter more than field detail. Because each solve is cheap, many geometry and stack variants can be compared before a heavier solver is needed.
Z. K. Minev, T. G. McConkey, M. Takita, A. D. Corcoles, J. M. Gambetta, Circuit quantum electrodynamics (cQED) with modular quasi-lumped models (2021).
Energy-participation ratio (EPR)¶
The energy-participation ratio of an element in a mode is the fraction of the mode’s energy stored in that element, a number between zero and one. The participations of the nonlinear (Josephson) elements fix the Hamiltonian, and those of the lossy elements fix the loss, whatever the circuit topology. They come from one eigenmode simulation of the linearized circuit, so the method quantizes multi-junction and 3D circuits without a hand-built circuit model.
Choose it when layout details matter: packaging, higher modes, junction placement, seams and substrate loss. Draw the design, set materials and boundaries, place the junction ports, and run one eigenmode solve; pyEPR reads the fields and returns frequencies, dispersive shifts, anharmonicities and loss budgets. It is best tested for weakly anharmonic circuits such as transmons coupled to resonators.
Z. K. Minev, Z. Leghtas, S. O. Mundhada, L. Christakis, I. M. Pop, M. H. Devoret, Energy-participation quantization of Josephson circuits, npj Quantum Information 7, 131 (2021).
Z. K. Minev et al., pyEPR (documentation).
Z. K. Minev, Ph.D. dissertation, Yale University (2018), chapter 4, arXiv:1902.10355.
Impedance¶
The impedance route starts from the frequency-dependent impedance (or scattering) matrix at the ports, the same quantity a network analyzer measures. The modes appear as poles, and their frequencies, couplings and nonlinear participation follow from the pole and residue structure. It shares the fields-first philosophy of EPR, and is the natural handle for layouts with many ports or modes: bus networks, Purcell filters and chip-package assemblies. It is also an independent check of EPR couplings.
Define ports at the junctions or pins, run a driven or eigenmode solve to get the matrix versus frequency, and sample around the modes of interest.
S. E. Nigg, H. Paik, B. Vlastakis, G. Kirchmair, S. Shankar, L. Frunzio, M. H. Devoret, R. J. Schoelkopf, S. M. Girvin, Black-box superconducting circuit quantization, Phys. Rev. Lett. 108, 240502 (2012).
Next¶
Run the methods side by side in the 4.4x tutorials (Part 4: Simulate and analyze), or see Simulation pathways for the solvers behind them. The class reference follows.
Reference: Cell / Subsystem / CompositeSystem¶
The lumped-oscillator model is assembled from three classes in
qiskit_metal.analyses.quantization.lom_core_analysis. A Cell holds
an extracted capacitance matrix plus any inductors and junctions; a
Subsystem maps a set of circuit nodes to a quantum model (transmon,
fluxonium, transmission-line or lumped resonator, …); and a
CompositeSystem reduces and quantizes the combined network. These are the
classes used in tutorials 4.04 and 4.05.
The accepted q_opts for every built-in subsystem sys_type
(TRANSMON, FLUXONIUM, TL_RESONATOR, LUMPED_RESONATOR) — which
values you supply and which are computed from the extracted L and C matrices —
are listed on Subsystem below. Call
QuantumSystemRegistry.registry() to enumerate every registered type,
including any custom builder you add.
- class Cell(options: dict)[source]¶
A physical subdivision of the device (i.e., the composite system), a sub-graph of capaciators, inductoros and other linear or non-linear circuit elements. The cell can be independently simulated to extract its electromagnetic parameters, which the the user provides as inputs to this object
Initialize the cell object
- Parameters:
options (Dict) –
options can contain the following keys:
node_rename(dict): a dict mapping from original node names to new node names, {old_name: new_name}cap_mat(pd.DataFrame): Maxwell capacitance of the cell in pandas dataframeind_dict(dict): the keys are tuples of specifying the two nodes between which the inductors lie. For example, {(‘n1’, ‘n2’): 10} specifies that there is an inductor of 10 nH between node ‘n1’ and ‘n2’ for one cell and an inductor of 13 nH between node ‘n5’ and ‘n7’ for another celljj_dict(dict): dict mapping original circuit nodes to custom-named junction nodes. This is the parameter informing the LOM analysis between which nodes the Josephson junctions are located. For example, {(‘n1’, ‘n2’): ‘j1’} specifies that there is a junction between nodes ‘n1’ and ‘n2’ and named as ‘j1’cj_dict(dict): if provided, specifies the junction capacitances in each cell. Structure is the same as ind_dict. For the dict, the keys are tuples of specifying the two nodes between which the junctions lie. For example, {(‘n1’, ‘n2’): 2} specifies that there is an junction capacitance of 2 fF between node ‘n1’ and ‘n2’ for the first provided cell and None for the second provided cell.
- class Subsystem(name: str, sys_type: str, nodes: list[str], q_opts: dict = None)[source]¶
Class representing a subsystem that can typically be mapped to a quantum system with known solution, such as a transmon, a fluxonium or a quantum harmonic oscillator.
A subsystem is defined by three things: a
name, asys_type(which built-in or custom quantum model it maps to), and the list of circuitnodesit occupies. Type-specific numbers — offset charge, external flux, resonator frequency, scQubits truncation, etc. — are passed through theq_optsdict.Units: energies (
EJ,EL,EC) are in MHz and frequencies (f_res) are in GHz. TheTRANSMONandFLUXONIUMbuilders computeEC(and, for the transmon,EJ) in MHz, so the resulting eigenvalues are in MHz even though scqubits’ default unit label is GHz; callscqubits.set_units("MHz")for correctly labelled plots.Built-in
sys_typevalues and theirq_opts¶The list below is the accepted-parameter reference for the four models shipped with quantum-metal. Call
QuantumSystemRegistry.registry()at runtime to list every registered type, including any you have added yourself. Parameters marked (computed) are extracted from the reduced L and C matrices during the LOM solve and must not be supplied; the rest are optional and fall back to the defaults shown."TRANSMON"— maps toscqubits.Transmon.EJ,EC— (computed) from the extracted L and C matrices.ng— offset charge (default0.001).ncut— charge-basis cutoff (default22).truncated_dim— retained levels (default10).nodes— a single junction node.
"FLUXONIUM"— maps toscqubits.Fluxonium.EC— (computed) from the extracted C matrix.EJ— Josephson energy in MHz (required).EL— inductive energy in MHz (required).flux— external flux in units of the flux quantum \(\Phi_0\) (required).cutoff— basis cutoff (default110).truncated_dim— retained levels (default10).nodes— a single junction node.
"TL_RESONATOR"— distributed transmission-line resonator, maps toscqubits.Oscillator.f_res— resonator frequency in GHz (required).Z0— characteristic impedance in ohms (default50).vp— phase velocity in m/s, or the string"use_design"(default) to derive it from thedesignstack below.design— dict of the physical stack used whenvp="use_design":line_width,line_gap,substrate_thickness,film_thickness, all in meters (defaults10e-6,6e-6,750e-6,200e-9).truncated_dim— retained levels (default: chosen byCompositeSystem.create_hilbertspace(), see below).other_end_shorted—Trueif the far end is shorted to ground (defaultFalse). A shorted resonator must be given a single node.nodes— one node (open- or shorted-end) or two nodes.
"LUMPED_RESONATOR"— lumped LC resonator, maps toscqubits.Oscillator.f_res— (computed) from the extracted L and C matrices.truncated_dim— retained levels (default: chosen byCompositeSystem.create_hilbertspace(), see below).nodes— a single node.
Resonator levels. A resonator’s self-Kerr (its diagonal entry in the chi matrix) comes from its two-photon level. With only three levels that level is the top of the retained space and has no partner above it, so the self-Kerr comes out wrong (e.g. +0.57 MHz where the converged value is -0.0003 MHz); qubit frequencies, anharmonicities and qubit-resonator shifts are unaffected. When
truncated_dimis not given, resonators therefore keep 5 levels if the whole Hilbert space stays at or belowCompositeSystem.max_auto_dimensionstates, and 3 levels otherwise, with a warning that their self-Kerr is not converged.See tutorials
4.04and4.05for worked transmon / fluxonium / coupled-transmon examples.Initialize the Subsystem object
- param name:
name of the subsystem
- type name:
str
- param sys_type:
type of the subsystem. Type can be one of the types implemented by one of the concrete QuantumBuilders (call QuantumSystemRegistry.registry() to see all the choices), which can also be custom-made by user
- type sys_type:
str
- param nodes:
list of nodes the subsystem corresponds to. For example, for a transmon subsystem, this would just be a list of a single node which is the user-defined junction node in the Cell object
- type nodes:
List[str]
- param q_opts:
options relevant to the type of quantum subsystem. The Subsystem object builds the quantum subsystem using quantumfy() which calls make_quantum() of the corresponding QuantumBuilder. q_opts provides parameters needed by make_quantum(). In the case of qubit subsystems, make_quantum() takes advantage of the scQbuits package (https://scqubits.readthedocs.io). Consequently, the default options correspond to the default options of the qubit classes in scQubits. Defaults to None.
- type q_opts:
dict, optional
- property h_params¶
Hamiltonian parameters of the subsystem
- property quantum_system¶
The quantum subsystem that the subsystem corresponds to. It is built by calling an associated builder passed in quantumfy() using the Visitor pattern
- class CompositeSystem(subsystems: list[Subsystem], cells: list[Cell], grd_node: str, nodes_force_keep: Sequence = None, s_remove_provided: ndarray | bool = False, s_keep_provided: ndarray | bool = False)[source]¶
Class representing the composite system which may consist of multiple subsystems and cells.
A composite system stitches one or more
Cellobjects (each carrying an extracted capacitance matrix, and optionally inductors and junctions) together with theSubsystemobjects that describe which quantum model each set of nodes maps to. CallingcircuitGraph()reduces the combined L and C matrices;create_hilbertspace()andhamiltonian_results()then build and diagonalize the coupled Hamiltonian.Example
from qiskit_metal.analyses.quantization.lom_core_analysis import ( Cell, Subsystem, CompositeSystem) # A cell holds the extracted capacitance matrix plus the junction cell = Cell(dict(node_rename={}, cap_mat=cap_df, # pandas DataFrame ind_dict={('pad_top', 'pad_bot'): 12.0}, # nH jj_dict={('pad_top', 'pad_bot'): 'j1'})) transmon = Subsystem(name='Q1', sys_type='TRANSMON', nodes=['j1']) composite = CompositeSystem( subsystems=[transmon], cells=[cell], grd_node='ground', nodes_force_keep=None, ) hilbertspace = composite.create_hilbertspace() results = composite.hamiltonian_results(hilbertspace, evals_count=10)
Initialize the CompositeSystem object
- Parameters:
subsystems (List[Subsystem]) – list of Subsystem objects
cells (List[Cell]) – list of Cell objects
grd_node (str) – name of the ground node
nodes_force_keep (Sequence, optional) – a list of nodes that will not be eliminated during L and C matrices reduction. Use this parameter to specify non-dynamic nodes (nodes that are connected capacitors only or inductors only) that should be preserved. If not specified (i.e., None), all non-dynamic nodes are eliminated
s_remove_provided (np.ndarray) – precalculated s_remove; see documentation on CircuitGraph.S_Remove
s_keep_provided (np.ndarray) – precalculated s_keep; see documentation on CircuitGraph.S_Keep
- add_interaction(gs: ndarray = None, gscale: float = 1.0) HilbertSpace[source]¶
add interaction terms to the composite hilbertspace
- Parameters:
gs (np.ndarray) – coupling strength matrix. If not provided, it will be calculated by compute_gs()
gscale (float) – coupling strength scale
- Returns:
- Hilbertspace object for the Hamiltonian
of the composite system with interations added
- Return type:
scq.HilbertSpace
- circuitGraph() CircuitGraph[source]¶
create a CircuitGraph object with circuit parameters of the composite system
- Returns:
CircuitGraph object for LOM analysis
- Return type:
CircuitGraph
- compute_gs(coupling_type: str = 'CAPACITIVE')[source]¶
compute g matrices from reduced C inverse matrix C^{-1}_{k} and reduced L inverse matrix L^{-1}_{k} and zero point flucuations (Q_zpf, Phi_zpf)
Note that the computed g’s are in MHz
Note: the resulting matrix is in the basis of nodes_keep, which may not be in the same order of subsystems
- create_hilbertspace() HilbertSpace[source]¶
- create the composite hilbertspace including all the subsystems. Interaction
NOT included
Resonators without an explicit
truncated_dimget 5 levels when the whole space stays withinmax_auto_dimensionstates, else 3 (seeSubsystem, “Resonator levels”).- Returns:
- Hilbertspace object for the Hamiltonian
of the composite system without interations added
- Return type:
scq.HilbertSpace
- hamiltonian_results(hilbertspace: HilbertSpace, evals_count=None, print_info=True) dict[source]¶
Print and return results
- Parameters:
- Returns:
{"fQ_in_Ghz": {subsystem name: f01 in GHz}, "chi_in_MHz": LabeledNdarray of the chi matrix in MHz}- Return type:
- max_auto_dimension = 4000¶
Largest Hilbert space (number of states) for which resonators without an explicit
truncated_dimget 5 levels instead of 3; full dense diagonalization stays within seconds up to about this size.