formulate-quantum-problem
정보
이 스킬은 힐베르트 공간, 연산자, 경계 조건을 포함한 수학적 체계를 정의함으로써 개발자들이 양자 역학이나 화학 문제를 공식화하는 데 도움을 줍니다. 물리적 시나리오를 슈뢰딩거 방정식이나 디랙 방정식 같은 형식주의로 변환하는 과정을 안내하며, 적절한 해법 선택을 지원합니다. 해석적 또는 수치적 해법을 위한 문제 설정 시에 사용하되, 섭동 이론, 변분법, 밀도 범함수 이론(DFT), 완전 대각화 등의 기법 중 선택할 때 활용하세요.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/formulate-quantum-problemClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Formulate Quantum Problem
Translate a physical system into a well-posed quantum mechanical problem: identify the relevant degrees of freedom, construct the Hamiltonian and state space, specify boundary conditions, select an approximation method, and validate the formulation against known limits.
When to Use
- 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 between perturbation theory, variational methods, DFT, or exact diagonalization
- Preparing a theoretical model for comparison with experimental spectroscopic or scattering data
Inputs
- Required: Description of the physical system (atom, molecule, solid, field, etc.)
- Required: 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)
Procedure
Step 1: Identify Physical System and Relevant Degrees of Freedom
Characterize the system completely before writing equations:
- Particle content: List all particles (electrons, nuclei, photons, phonons) and their quantum numbers (spin, charge, mass).
- Symmetries: Identify spatial symmetries (spherical, cylindrical, translational, crystal group), internal symmetries (spin rotation, gauge), and discrete symmetries (parity, time reversal).
- Energy scales: Determine the relevant energy scales to decide which degrees of freedom are active and which can be frozen or treated adiabatically.
- Degrees of freedom reduction: Apply the Born-Oppenheimer approximation if nuclear and electronic timescales separate. Identify 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]
Got: A complete inventory of particles, quantum numbers, symmetries, and a justified selection of active versus frozen degrees of freedom.
If fail: 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.
Step 2: Construct Hamiltonian and State Space
Build the mathematical framework from the degrees of freedom identified in Step 1:
- Hilbert space: Define the state space. For finite-dimensional systems, specify the basis (e.g., spin-1/2 basis |up>, |down>). For infinite-dimensional systems, specify the function space (e.g., L2(R^3) for a single particle in 3D).
- Kinetic terms: Write the kinetic energy operator for each particle. In position representation, T = -hbar^2/(2m) nabla^2.
- Potential terms: Write all interaction potentials (Coulomb, harmonic, spin-orbit, external fields). Be explicit about functional form and coupling constants.
- 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.
- Operator algebra: Verify that the Hamiltonian is Hermitian. Identify constants of motion ([H, O] = 0) that can be used to block-diagonalize the 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]
Got: A complete, Hermitian Hamiltonian with all terms explicitly written, the Hilbert space defined, and constants of motion identified.
If fail: If the Hamiltonian is not 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 the issue.
Step 3: Specify Boundary and Initial Conditions
Constrain the problem to have a unique solution:
- 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.
- Domain restrictions: Specify 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.
- Initial state (time-dependent problems): Define the state at t=0 as an expansion in the energy eigenbasis or as a wave packet with specified center and width.
- 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]
Got: 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).
If fail: 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.
Step 4: Select Approximation Method
Choose a solution strategy appropriate to the problem's structure:
-
Assess exact solvability: Check if the 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.
-
Perturbation theory (weak coupling):
- Split H = H0 + lambda V where H0 is exactly solvable
- Verify that lambda V is small compared to the level spacing of H0
- Check for degeneracy; use degenerate perturbation theory if needed
- Suitable when: interaction is weak, few-body system, analytic results needed
-
Variational methods (ground state focus):
- Choose a trial wave function with adjustable parameters
- Ensure the trial function satisfies boundary conditions and symmetry
- Suitable when: ground state energy is the primary target, many-body system
-
Density Functional Theory (many-electron systems):
- Choose the exchange-correlation functional (LDA, GGA, hybrid)
- Define the basis set (plane waves, Gaussian, numerical atomic orbitals)
- Suitable when: many-electron system, ground state density and energy needed
-
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 is needed and the 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]
Got: A justified choice of approximation method with a clear statement of expected accuracy and computational cost, plus documentation of alternatives considered.
If fail: If no single method is clearly appropriate, formulate the problem for two methods and compare results. Disagreement between methods reveals the problem's difficulty and guides further refinement.
Step 5: Validate Formulation Against Known Limits
Before solving, verify the formulation reproduces known physics:
- Classical limit: Take hbar -> 0 (or large quantum numbers) and verify that the Hamiltonian reduces to the correct classical mechanics.
- Non-interacting limit: Set coupling constants to zero and verify the solution is a product of single-particle states.
- Symmetry limits: Verify that the formulation respects all identified symmetries. Check that the Hamiltonian transforms correctly under the symmetry group.
- Dimensional analysis: Verify that every term in the Hamiltonian has units of energy. Check that the characteristic length, energy, and time scales are physically reasonable.
- Known exact results: If the 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] |
Got: All validation checks pass. The formulation is self-consistent and ready for solution.
If fail: 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 before proceeding to solve.
Validation
- 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 correctly 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
Pitfalls
- Omitting degrees of freedom prematurely: Freezing a degree of freedom without checking the energy scale hierarchy can miss qualitatively important physics. Justify every reduction with an energy scale argument.
- Non-Hermitian Hamiltonian: Forgetting conjugate terms in spin-orbit coupling or complex potentials. 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. Check for degeneracy before 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.
Related Skills
derive-theoretical-result-- derive analytic results from the formulated problemsurvey-theoretical-literature-- find prior work on similar quantum systems
GitHub 저장소
연관 스킬
llamaguard
기타LlamaGuard는 폭력 및 혐오 발언 등 6가지 안전 범주에서 LLM 입력과 출력을 조정하기 위한 Meta의 70-80억 파라미터 모델입니다. 94-95% 정확도를 제공하며 vLLM, Hugging Face 또는 Amazon SageMaker를 사용해 배포할 수 있습니다. 이 기술을 사용하여 AI 애플리케이션에 콘텐츠 필터링 및 안전 가드레일을 손쉽게 통합하세요.
cost-optimization
기타이 Claude Skill은 리소스 적정화, 태깅 전략, 지출 분석을 통해 개발자들이 클라우드 비용을 최적화할 수 있도록 지원합니다. AWS, Azure, GCP에서 클라우드 비용을 절감하고 비용 거버넌스를 구현하기 위한 프레임워크를 제공합니다. 인프라 비용을 분석하거나, 리소스를 적정화하거나, 예산 제약을 충족해야 할 때 사용하세요.
quantizing-models-bitsandbytes
기타이 스킬은 bitsandbytes를 사용하여 LLM을 8비트 또는 4비트 정밀도로 양자화하며, 최소한의 정확도 손실로 50-75%의 메모리 감소를 달성합니다. 제한된 GPU 메모리에서 더 큰 모델을 실행하거나 추론을 가속화하는 데 이상적이며, INT8, NF4, FP4와 같은 형식을 지원합니다. 이 스킬은 HuggingFace Transformers와 통합되어 QLoRA 학습 및 8비트 옵티마이저를 가능하게 합니다.
dispatching-parallel-agents
기타이 Claude Skill은 3개 이상의 독립적인 문제를 동시에 조사하고 해결하기 위해 다중 에이전트를 배치합니다. 공유 상태나 의존성 없이 해결 가능한 무관련 장애 시나리오에 맞게 설계되었습니다. 핵심 기능은 병렬 문제 해결로, 각 독립 문제 영역마다 하나의 에이전트를 할당하여 효율성을 극대화합니다.
