dqmc-dev
FreeNo executable scriptsNot checkedWorkflow for modifying DQMC C code, adding new measurements, and running tests. Use when editing source code, implementing new observables, debugging, or…
About this skill
Code Development
Build & Test
# Build
make # -> build/dqmc
make clean # remove build/
# Test
cd test && make && ./test_greens
Smoke Test
After any code change:
dqmc-util gen Nx=4 Ny=4 U=4 dt=0.1 L=20 n_sweep_warm=50 n_sweep_meas=100
build/dqmc sim_0.h5
dqmc-util summary sim_0.h5
Adding New Measurements
Add to X-macro list in
src/rc/sim_types.h:// Add to MEAS_EQLT_LIST (or MEAS_UNEQLT_LIST for unequal-time) #define MEAS_EQLT_LIST \ /* ... */ \ X(my_meas, num_ij) // pick an appropriate size expressionImplement measurement kernel in
src/rc/meas.cAdd analysis function in
dqmc_util/analyze_hub.py(and update reshaping/symmetrization if needed):@observable( description="my new observable", requires=("meas_eqlt/n_sample", "meas_eqlt/sign", "meas_eqlt/my_meas"), ) def _my_meas(ctx): return core.jackknife_noniid( ctx.data["meas_eqlt/n_sample"], ctx.data["meas_eqlt/sign"], ctx.data["meas_eqlt/my_meas"], )
Key Code Patterns
Dual compilation: Files in src/rc/ compile twice. Use RC(name) macro for real/complex dispatch.
Memory: Use my_calloc() for 64-byte aligned allocations.
Profiling: Wrap with profile_begin(name) / profile_end(name).
Definition of Done
-
makesucceeds without warnings -
cd test && make && ./test_greenspasses - Smoke run completes
- If touching measurements: verify via
dqmc-util summary
Install dqmc-dev in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the dqmc-dev skill do?
Workflow for modifying DQMC C code, adding new measurements, and running tests. Use when editing source code, implementing new observables, debugging, or validating code changes.
How do I install the dqmc-dev skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the dqmc-dev skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic