.. index:: pair: namespace; gpr::quantum::bathresponse .. _doxid-namespacegpr_1_1quantum_1_1bathresponse: namespace gpr::quantum::bathresponse ==================================== .. toctree:: :hidden: struct_gpr_quantum_bathresponse_Bounds.rst struct_gpr_quantum_bathresponse_CentroidResponseFit.rst struct_gpr_quantum_bathresponse_Model.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace bathresponse { // typedefs typedef Eigen::MatrixXd :target:`Matrix`; typedef Eigen::VectorXd :target:`Vector`; // structs struct :ref:`Bounds`; struct :ref:`CentroidResponseFit`; struct :ref:`Model`; // global functions :ref:`CentroidResponseFit` :ref:`fitCentroidResponse`(const Eigen::MatrixXd& Caa, const Eigen::MatrixXd& Cyy, const Eigen::MatrixXd& Cya, double beta); :ref:`Bounds` :target:`boundResponse`(const :ref:`Matrix`& B, const :ref:`Matrix`& Q, const :ref:`Matrix`& AQ, double alpha, double shift); } // namespace bathresponse .. _details-namespacegpr_1_1quantum_1_1bathresponse: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Global Functions ---------------- .. index:: pair: function; fitCentroidResponse .. _doxid-namespacegpr_1_1quantum_1_1bathresponse_1a370a470c9f47386535a92f8860d4faec: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`CentroidResponseFit` fitCentroidResponse(const Eigen::MatrixXd& Caa, const Eigen::MatrixXd& Cyy, const Eigen::MatrixXd& Cya, double beta) Fit R = B^T A^-1 B from uncentered second moments of forcing a and projected bath centroid y. The conditional model is y|a ~ N(-R a,R/beta). The score gives R Caa R + R/beta = Cyy. Mean consistency is an independent diagnostic; solving the score cannot establish that the physical bath is harmonic. For nonlinear forcing, a is its imaginary-time average.