Bridging 3D Cavity Maxwell Solves and Nonlinear Circuit Hamiltonians
Why normal-mode Fock bases blow up on multi-well superconducting circuits, how Craig–Bampton port-interior splitting enables fast flux sweeps, and how three independent cQED formulations cross-check each other to six decimal places.
Weakly anharmonic transmons get along surprisingly well with textbook normal-mode Fock quantisation: cosine mixing drops off rapidly after six or eight photon levels per mode, so a tensor-product Fock basis captures qubit frequencies and cross-Kerr shifts effortlessly.
Swap in a Fluxonium, a Cooper-pair box, or a flux-biased DC-SQUID coupler, however, and normal-mode quantisation falls behind almost immediately. Heavy inductive shunts and steep multi-well potentials require thirty or forty local port states before a junction wavefunction settles, and multiplying 40 states across four or five electromagnetic modes overflows workstation memory long before a single flux sweep finishes.
The way out in nyx-analysis::hamiltonian comes from structural dynamics: the Craig–Bampton method.
Splitting Nonlinear Junctions From Linear Cavities
From the 3D Maxwell solve, nyx-ems::cavity extracts a compact port-augmented reduced-order model (CircuitRom). build_linear_cb_decomposition rotates those reduced coordinates into two orthogonal blocks relative to the $J$ Josephson junctions:
- Port lifts ($T_p$): static unit-flux displacements associated directly with each nonlinear port ($\mathbf{B}_{r,\mathrm{nl}}^T T_p = I_J$).
- Shorted interior cavity modes ($T_c$): normal eigenmodes of the electromagnetic enclosure computed with every junction port shorted ($\mathbf{B}_{r,\mathrm{nl}}^T T_c = 0$).
Each 1D nonlinear port can then be diagonalised on its own before talking to the cavity modes: shunted loops ($E_{L,\mathrm{eff}} > 1,\text{kHz}$) use a 40-state harmonic basis with Padé-13 matrix exponentials, while charge-sensitive islands use a 31-state periodic charge basis. Keeping only the lowest 8 local eigenstates per junction before coupling shrinks the final many-body Hilbert space cleanly below 4,096 states—fast enough to sweep 100 bias flux points in roughly 1.1 seconds.1.To extract dressed frequencies, anharmonicities, and cross-Kerr couplings consistently as modes cross, eigenvalues are assigned to bare product labels via globally bijective greedy matching on overlap magnitudes $|\langle n | \psi_k \rangle|^2$.
Three Independent Cross-Checks on the Same 3D Mesh
Because numerical bugs in quantum circuit extraction are notoriously easy to hide inside one method, we cross-checked Craig–Bampton against two completely separate linear-response derivations on 12 SQuADDS transmon-resonator meshes (six $\lambda/4$ couplers and six $\lambda/2$ NCap designs, 149.8k–221.8k tetrahedra each):
- Companion QEP (
M2): Keeps feedline ports open and solves the balanced $2r \times 2r$ complex quadratic eigenvalue problem $(K + i k_0 C - k_0^2 M)\mathbf{z} = 0$ directly. - 3-Port Schur BBQ + Kubo Synthesis (
M3): Drives the full 3D mesh across frequency, eliminates $50,\Omega$-terminated feedline ports via Schur complement
$$ Y_{\mathrm{red}}(\omega) = Y_{AA}(\omega) - Y_{AT}(\omega)\left(Y_{TT}(\omega) + Y_{\mathrm{load}}\right)^{-1} Y_{TA}(\omega) $$
and extracts Foster parallel zeros alongside exact two-pole Kubo linear susceptibilities.
Across all 12 geometries on identical meshes, closed Craig–Bampton (M1) agreed with companion QEP (M2) to 1.38e-6% median frequency difference and with driven Schur BBQ (M3) to 5.0e-6% (11/12 within 0.0001%), while the Thomas–Reiche–Kuhn oscillator-strength sum rule held to $1.000000000000 \pm 2.7\times 10^{-10}$.
$ cargo test --release -p nyx-analysis --test squadds_smoke -- --test-threads=1
transmon_cross_3net_mode_g2_far_field_and_i_edge_thickness_smoke ... ok
dissipator_dc_squid_craig_bampton_vs_rom_port_flux_sweep_smoke ... ok
4-mode S4.3 Dissipator ROM (qubit, dissipator_jj, readout, filter):
25-point native squid_flux_sweep (10.32 -> 2.93 GHz in < 0.25 s)
matches point-by-point ej_hz_override craig_bampton eigenvalues to < 1e-12
muninn_3d_tls_participation_nine_param_oxide_and_purcell_smoke ... ok
What Cryogenic Hardware Tests Showed — and Where Accuracy Currently Stops
On full multi-qubit chips fabricated at cryogenic temperatures (Phase 1, 30 of 30 runs completing cleanly):
- WM1 (6-qubit MIT-LL chip): Including the mask-measured +0.9 µm lithographic over-etch bias,
ems::cavitypredicts all six multiplexed readout frequencies to 1.32% RMSRE against mK measurements (2.3× closer than the 3.0% published HFSS baseline). - MUNINN (3-qubit coherence chip): On a 1.085M-tet (1.402M-DOF) full-chip model solved in 82.55 s,
nyxreproduces the exact measured $T_1$ ranking across Ancilla, Qubit, and Environment resonators. - Dissipator (flux-tunable coupler): Sweeps 100 DC-SQUID bias points in 1.10 s, cleanly resolving the 166.8 MHz cavity avoided crossing.
Two practical trade-offs still govern day-to-day runs. First, refining mesh vertices directly inside thin lumped junction or port sheets drops zero-frequency gradient columns during 3D cavity projection and stalls Krylov–Schur; locking a narrow 30 µm unrefined box around rank-1 ports eliminates every stall (163/163 EM solves succeed), but forces P1 elements to overestimate local port capacitance across sub-micron gaps (hybrid electrostatic coupling cuts that error 10×). Second, without dedicated 3D edge-singularity grading inside ems::cavity, P1 Nédélec fields smooth over the sharp rim field divergence—preserving device-to-device $T_1$ rankings while underestimating absolute interface participation $p_{\mathrm{interface}}$.