namespace gpr::quantum::bathresponse¶
Overview¶
namespace bathresponse {
// typedefs
typedef Eigen::MatrixXd Matrix;
typedef Eigen::VectorXd Vector;
// structs
struct Bounds;
struct CentroidResponseFit;
struct Model;
// global functions
CentroidResponseFit fitCentroidResponse(const Eigen::MatrixXd& Caa, const Eigen::MatrixXd& Cyy, const Eigen::MatrixXd& Cya, double beta);
Bounds boundResponse(const Matrix& B, const Matrix& Q, const Matrix& AQ, double alpha, double shift);
} // namespace bathresponse
Detailed Documentation¶
Global Functions¶
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.