quantcore_circuits.analysis.extract

Parsed simulation results + design → Hamiltonian parameters per instance, comparable to design.targets.

  • C-matrix (Q3D / Elmer / Palace electrostatics): Metal LOM per selected qubit. The resonator attached to the cut coupler port is modelled as a λ/4 TL with f_r from its routed length (Metal CPW model), unless a measured f_r is given (e.g. from an eigenmode run).

  • Eigenmodes (HFSS / Palace): linear mode frequencies and Q, assigned to qubits/resonators by nearest target.

Output keys follow targets: {"Q1": {"f_q_GHz", "alpha_MHz", ...}, "R1": {"f_GHz", "g_MHz", "chi_MHz"}}.

Functions

compare(targets, extracted) → list[dict]

Rows of (instance, quantity, target, value, error) for every target that was extracted.

extract(source, results[, f_r_GHz]) → dict[str, dict[str, float]]

resonator_frequency_GHz(design, route[, guess_GHz]) → float

λ/4 frequency of route from its built length and the PDK CPW model (two fixed-point iterations).

route_attached_to(design, port_ref) → str | None

Module Contents

quantcore_circuits.analysis.extract.compare(targets: dict, extracted: dict) → list[dict]

Rows of (instance, quantity, target, value, error) for every target that was extracted.

quantcore_circuits.analysis.extract.extract(source, results: dict, f_r_GHz: dict[str, float] | None = None) → dict[str, dict[str, float]]
quantcore_circuits.analysis.extract.resonator_frequency_GHz(design: quantcore_circuits.design.Design, route: str, guess_GHz: float = 7.0) → float

λ/4 frequency of route from its built length and the PDK CPW model (two fixed-point iterations).

quantcore_circuits.analysis.extract.route_attached_to(design: quantcore_circuits.design.Design, port_ref: str) → str | None