monte-carlo-physics

Estimate physics integrals and thermodynamic observables via Monte Carlo sampling.

33|6|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill monte-carlo-physics
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: monte-carlo-physics
Source: https://github.com/xjtulyc/awesome-rosetta-skills/tree/main/skills/01-physics/monte-carlo-physics
Command: npx skills add https://github.com/xjtulyc/awesome-rosetta-skills --skill monte-carlo-physics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, scipy, numba, matplotlib, pandas.

What problem does it solve?

It helps you compute physics observables and high-dimensional integrals when analytic solutions are difficult or impossible, using statistical sampling with uncertainty estimates.

Core Features & Use Cases

  • Monte Carlo integration: Estimates integrals and partition-function-like quantities from random samples with error scaling ~1/sqrt(N).
  • MCMC sampling: Implements Metropolis-Hastings workflows for sampling from complex target distributions and diagnosing mixing via burn-in and autocorrelation/ESS.
  • Statistical mechanics simulation (Ising model): Runs Metropolis sweeps for lattice systems to study magnetization, energy, and phase-transition behavior across temperatures.
  • Use Case: You need to estimate a 3D Gaussian integral and quantify the uncertainty, then simulate the 2D Ising model near the critical temperature to measure susceptibility-like response.

Quick Start

Use the monte-carlo-physics skill to run Monte Carlo integration for your target physics integral and return the estimate with a statistical error estimate.

Frequently Asked Questions about monte-carlo-physics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate high-dimensional physics integrals using Monte Carlo sampling?▼

Monte Carlo integration estimates high-dimensional physics integrals and partition-function-like quantities from random samples, scaling error as ~1/sqrt(N). It returns the integral estimate alongside a statistical uncertainty quantification.

How do I run an Ising model simulation to analyze phase transitions?▼

Ising model simulation runs Metropolis sweeps across lattice systems to study magnetization and energy histories. It analyzes phase-transition behavior across temperature sweeps and provides critical behavior plots for the simulated lattice.

Can I use Metropolis-Hastings MCMC for posterior sampling with this Monte Carlo physics approach?▼

Metropolis-Hastings MCMC samples from complex target distributions for posterior analysis. It diagnoses mixing via burn-in, autocorrelation, and effective sample size (ESS), returning acceptance diagnostics for the sampling workflow.

Does this Monte Carlo physics simulation support numpy and numba for accelerated sampling?▼

The Monte Carlo physics simulation requires numpy, scipy, and numba for high-dimensional sampling. It leverages these dependencies to accelerate statistical mechanics simulations and estimate thermodynamic observables efficiently.

What is the best way to quantify uncertainty in Monte Carlo statistical mechanics simulations?▼

Uncertainty estimation in Monte Carlo simulations uses standard errors and bootstrap-like approaches. This quantifies uncertainty for thermodynamic observables and rare-event estimators computed via importance sampling.

When should I use importance sampling for rare-event estimators in physics simulations?▼

Importance sampling computes rare-event estimators in physics simulations when target events have low probability. It estimates these quantities within high-dimensional spaces and provides uncertainty estimates via standard errors.