quantcore_circuits.analysis.extract =================================== .. py:module:: quantcore_circuits.analysis.extract .. autoapi-nested-parse:: 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 --------- .. autoapisummary:: quantcore_circuits.analysis.extract.compare quantcore_circuits.analysis.extract.extract quantcore_circuits.analysis.extract.resonator_frequency_GHz quantcore_circuits.analysis.extract.route_attached_to Module Contents --------------- .. py:function:: compare(targets: dict, extracted: dict) -> list[dict] Rows of (instance, quantity, target, value, error) for every target that was extracted. .. py:function:: extract(source, results: dict, f_r_GHz: dict[str, float] | None = None) -> dict[str, dict[str, float]] .. py:function:: 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). .. py:function:: route_attached_to(design: quantcore_circuits.design.Design, port_ref: str) -> str | None