返回技能列表

formulate-quantum-problem

pjt222
更新于 2 days ago
2 次查看
17
2
17
在 GitHub 上查看
其他general

关于

This skill translates physical quantum scenarios into formal mathematical frameworks, defining Hilbert spaces, operators, and boundary conditions. It helps developers choose appropriate solution methods like perturbation theory, variational methods, or exact diagonalization. Use it when setting up a quantum mechanics or quantum chemistry problem for analytical or numerical solution.

快速安装

Claude Code

推荐
主要方式
npx skills add pjt222/agent-almanac -a claude-code
插件命令备选方式
/plugin add https://github.com/pjt222/agent-almanac
Git 克隆备选方式
git clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/formulate-quantum-problem

在 Claude Code 中复制并粘贴此命令以安装该技能

技能文档

Quantenproblem formulieren

Translate a physical system into a well-posed quantum mechanical problem by identifying the relevant degrees of freedom, constructing the Hamiltonian and state space, specifying boundary conditions, selecting an appropriate approximation method, and validating the formulation gegen known limits.

Wann verwenden

  • Setting up a quantum mechanics problem for analytic or numerical solution
  • Formulating a quantum chemistry calculation (molecular orbitals, electronic structure)
  • Translating a physical scenario into the Dirac or Schrodinger formalism
  • Choosing zwischen perturbation theory, variational methods, DFT, or exact diagonalization
  • Preparing a theoretical model for comparison with experimental spectroscopic or scattering data

Eingaben

  • Erforderlich: Description of the physical system (atom, molecule, solid, field, etc.)
  • Erforderlich: Observable(s) of interest (energy spectrum, transition rates, ground state properties)
  • Optional: Experimental constraints or data to match (spectral lines, binding energies)
  • Optional: Desired accuracy level or computational budget
  • Optional: Preferred formalism (wave mechanics, matrix mechanics, second quantization, path integral)

Vorgehensweise

Schritt 1: Identifizieren Physical System and Relevant Degrees of Freedom

Characterize das System vollstaendig vor writing any equations:

  1. Particle content: Auflisten all particles (electrons, nuclei, photons, phonons) and their quantum numbers (spin, charge, mass).
  2. Symmetries: Identifizieren spatial symmetries (spherical, cylindrical, translational, crystal group), internal symmetries (spin rotation, gauge), and discrete symmetries (parity, time reversal).
  3. Energy scales: Bestimmen the relevant energy scales to decide which degrees of freedom are active and which kann frozen or treated adiabatically.
  4. Degrees of freedom reduction: Anwenden the Born-Oppenheimer approximation if nuclear and electronic timescales separate. Identifizieren collective coordinates if many-body simplifications apply.
## System Characterization
- **Particles**: [list with quantum numbers]
- **Active degrees of freedom**: [coordinates, spins, fields]
- **Frozen degrees of freedom**: [and justification for freezing]
- **Symmetry group**: [continuous and discrete]
- **Energy scale hierarchy**: [e.g., electronic >> vibrational >> rotational]

Erwartet: A complete inventory of particles, quantum numbers, symmetries, and a justified selection of active versus frozen degrees of freedom.

Bei Fehler: If the energy scale hierarchy is unclear, retain all degrees of freedom initially and flag the need for a scale analysis. Premature truncation leads to qualitatively wrong physics.

Schritt 2: Construct Hamiltonian and State Space

Erstellen the mathematical framework from the degrees of freedom identified in Step 1:

  1. Hilbert space: Definieren der Zustand space. For finite-dimensional systems, specify the basis (e.g., spin-1/2 basis |up>, |down>). For infinite-dimensional systems, specify die Funktion space (e.g., L2(R^3) for a single particle in 3D).
  2. Kinetic terms: Schreiben the kinetic energy operator fuer jede particle. In position representation, T = -hbar^2/(2m) nabla^2.
  3. Potential terms: Schreiben all interaction potentials (Coulomb, harmonic, spin-orbit, external fields). Be explicit about functional form and coupling constants.
  4. Composite Hamiltonian: Assemble H = T + V, grouping terms by interaction type. For multi-particle systems, include exchange and correlation terms or note where they will enter via approximation.
  5. Operator algebra: Sicherstellen, dass the Hamiltonian is Hermitian. Identifizieren constants of motion ([H, O] = 0) that kann used to block-diagonalize das Problem.
## Hamiltonian Structure
- **Hilbert space**: [definition and basis]
- **H = T + V decomposition**:
  - T = [kinetic terms]
  - V = [potential terms, grouped by type]
- **Constants of motion**: [operators commuting with H]
- **Symmetry-adapted basis**: [if block diagonalization is possible]

Erwartet: A complete, Hermitian Hamiltonian with all terms explicitly written, the Hilbert space defined, and constants of motion identified.

Bei Fehler: If the Hamiltonian ist nicht manifestly Hermitian, check for missing conjugate terms or gauge-dependent phases. If the Hilbert space is ambiguous (e.g., for relativistic particles), specify the formalism explicitly and note das Problem.

Schritt 3: Angeben Boundary and Initial Conditions

Constrain das Problem to have a unique solution:

  1. Boundary conditions: For bound state problems, require normalizability (psi -> 0 at infinity). For scattering problems, specify incoming wave boundary conditions. For periodic systems, apply Bloch or Born-von Karman conditions.
  2. Domain restrictions: Angeben the spatial domain. For a particle in a box, define the walls. For a hydrogen atom, define the radial and angular domains. For lattice models, define the lattice and its topology.
  3. Initial state (time-dependent problems): Definieren der Zustand at t=0 as an expansion in the energy eigenbasis or as a wave packet with specified center and width.
  4. Constraint equations: For indistinguishable particles, enforce symmetrization (bosons) or antisymmetrization (fermions). For gauge theories, impose gauge-fixing conditions.
## Boundary and Initial Conditions
- **Spatial domain**: [definition]
- **Boundary type**: [Dirichlet / Neumann / periodic / scattering]
- **Normalization**: [condition]
- **Particle statistics**: [bosonic / fermionic / distinguishable]
- **Initial state** (if time-dependent): [specification]

Erwartet: Boundary conditions that are physically motivated, mathematically consistent with the Hamiltonian's domain, and sufficient to determine a unique solution (or a well-defined scattering matrix).

Bei Fehler: If boundary conditions are over- or under-determined, check the self-adjointness of the Hamiltonian on the chosen domain. Non-self-adjoint Hamiltonians require careful treatment of deficiency indices.

Schritt 4: Auswaehlen Approximation Method

Waehlen a solution strategy appropriate to das Problem's structure:

  1. Bewerten exact solvability: Pruefen, ob das Problem reduces to a known exactly solvable model (harmonic oscillator, hydrogen atom, Ising model, etc.). If yes, use the exact solution as the primary result and perturbation theory for corrections.

  2. Perturbation theory (weak coupling):

    • Aufteilen H = H0 + lambda V where H0 is exactly solvable
    • Sicherstellen, dass lambda V is small verglichen mit the level spacing of H0
    • Pruefen auf degeneracy; use degenerate perturbation theory if needed
    • Suitable when: interaction is weak, few-body system, analytic results needed
  3. Variational methods (ground state focus):

    • Waehlen a trial wave function with adjustable parameters
    • Sicherstellen the trial function satisfies boundary conditions and symmetry
    • Suitable when: ground state energy is the primary target, many-body system
  4. Density Functional Theory (many-electron systems):

    • Waehlen the exchange-correlation functional (LDA, GGA, hybrid)
    • Definieren the basis set (plane waves, Gaussian, numerical atomic orbitals)
    • Suitable when: many-electron system, ground state density and energy needed
  5. Numerical exact methods (small systems, benchmarking):

    • Exact diagonalization for small Hilbert spaces
    • Quantum Monte Carlo for ground state sampling
    • DMRG for one-dimensional or quasi-one-dimensional systems
    • Suitable when: high accuracy wird benoetigt and das System is small enough
## Approximation Method Selection
- **Method chosen**: [name]
- **Justification**: [why this method fits the problem structure]
- **Expected accuracy**: [order of perturbation, variational bound quality, DFT functional accuracy]
- **Computational cost**: [scaling with system size]
- **Alternatives considered**: [and why they were rejected]

Erwartet: A justified choice of approximation method with a clear statement of expected accuracy and computational cost, plus documentation of alternatives considered.

Bei Fehler: If no single method is clearly appropriate, formulate das Problem for two methods and compare results. Disagreement zwischen methods reveals das Problem's difficulty and guides further refinement.

Schritt 5: Validieren Formulation Against Known Limits

Before solving, verify the formulation reproduces known physics:

  1. Classical limit: Take hbar -> 0 (or large quantum numbers) and verify that the Hamiltonian reduces to the correct classical mechanics.
  2. Non-interacting limit: Set coupling constants to zero and verify die Loesung is a product of single-particle states.
  3. Symmetry limits: Sicherstellen, dass the formulation respects all identified symmetries. Pruefen, dass the Hamiltonian transforms korrekt under the symmetry group.
  4. Dimensional analysis: Sicherstellen, dass every term in the Hamiltonian has units of energy. Pruefen, dass the characteristic length, energy, and time scales are physically reasonable.
  5. Known exact results: If das System has known exact solutions in special cases (e.g., hydrogen atom for Z=1, harmonic oscillator for quadratic potential), verify the formulation reproduces them.
## Validation Checks
| Check | Expected Result | Status |
|-------|----------------|--------|
| Classical limit (hbar -> 0) | [classical Hamiltonian] | [Pass/Fail] |
| Non-interacting limit | [product states] | [Pass/Fail] |
| Symmetry transformation | [correct representation] | [Pass/Fail] |
| Dimensional analysis | [all terms in energy units] | [Pass/Fail] |
| Known exact case | [reproduced result] | [Pass/Fail] |

Erwartet: All validation checks pass. The formulation is self-consistent and ready for solution.

Bei Fehler: A failing validation check indicates an error in the Hamiltonian construction or boundary conditions. Trace the failure back to the specific term or condition and correct it vor proceeding to solve.

Validierung

  • All particles and quantum numbers are explicitly listed
  • The Hilbert space is defined with a clear basis
  • The Hamiltonian is Hermitian and all terms have correct units
  • Constants of motion are identified and used for simplification
  • Boundary conditions are physically motivated and mathematically sufficient
  • Particle statistics (bosonic/fermionic) are korrekt enforced
  • Approximation method choice is justified with expected accuracy stated
  • Classical, non-interacting, and symmetry limits are checked
  • Known exact results are reproduced in special cases
  • The formulation is complete enough for another researcher to implement

Haeufige Stolperfallen

  • Omitting degrees of freedom prematurely: Freezing a degree of freedom ohne checking the energy scale hierarchy can miss qualitatively important physics. Always justify every reduction with an energy scale argument.
  • Non-Hermitian Hamiltonian: Forgetting conjugate terms in spin-orbit coupling or complex potentials. Always verify H = H-dagger explicitly.
  • Wrong boundary conditions for scattering: Using bound-state boundary conditions (normalizability) for a scattering problem discards the continuous spectrum entirely. Match boundary conditions to the physical question.
  • Ignoring degeneracy in perturbation theory: Applying non-degenerate perturbation theory to a degenerate level produces divergent corrections. Always check for degeneracy vor expanding.
  • Over-reliance on a single approximation: Different methods have complementary failure modes. Variational methods give upper bounds but can miss excited states. Perturbation theory diverges at strong coupling. Cross-validate when possible.
  • Dimensional inconsistency: Mixing natural units (hbar = 1) with SI units in the same expression. Adopt a consistent unit system at the start and state it explicitly.

Verwandte Skills

  • derive-theoretical-result -- derive analytic results from the formulated problem
  • survey-theoretical-literature -- find prior work on similar quantum systems

GitHub 仓库

pjt222/agent-almanac
路径: i18n/de/skills/formulate-quantum-problem
0
agentsagentskillsai-assisted-developmentclaude-codeskillsteams

相关推荐技能

llamaguard

其他

LlamaGuard是Meta推出的7-8B参数内容审核模型,专门用于过滤LLM的输入和输出内容。它能检测六大安全风险类别(暴力/仇恨、性内容、武器、违禁品、自残、犯罪计划),准确率达94-95%。开发者可通过HuggingFace、vLLM或Sagemaker快速部署,并能与NeMo Guardrails集成实现自动化安全防护。

查看技能

cost-optimization

其他

这个Claude Skill帮助开发者优化云成本,通过资源调整、标记策略和预留实例来降低AWS、Azure和GCP的开支。它适用于减少云支出、分析基础设施成本或实施成本治理策略的场景。关键功能包括提供成本可视化、资源规模调整指导和定价模型优化建议。

查看技能

quantizing-models-bitsandbytes

其他

这个Skill使用bitsandbytes库量化大语言模型,能在GPU内存有限时通过8位或4位量化减少50-75%内存占用,同时保持精度损失最小。它支持INT8、NF4、FP4等多种量化格式,可与HuggingFace Transformers无缝集成,适用于需要部署更大模型或加速推理的场景。还提供QLoRA训练和8位优化器支持,让开发者能轻松实现高效模型压缩。

查看技能

dispatching-parallel-agents

其他

该Skill用于并行处理3个以上无依赖关系的独立故障,可为每个问题域分派专属Claude代理同时执行调查修复。它通过并发处理多个独立问题显著提升故障排查效率,特别适用于测试文件、子系统等无共享状态的场景。

查看技能