Quantum numerical simulation

From XuShuwenn/RedAct · View interactive version

Quantum numerical simulation is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Simulate open Dicke model steady state and calculate cavity field Wigner function for different loss cases.

How to use this skill

Skill file

Open Dicke Model Quantum Simulation

When to Use

Scope Guardrails

Model Parameters

4 Loss Cases

  1. Local dephasing + local pumping: γφ=0.01, γ↑=0.1
  2. Local dephasing + local emission: γφ=0.01, γ↓=0.1
  3. Case 2 + collective pumping: γφ=0.01, γ↓=0.1, γ⇑=0.1
  4. Case 2 + collective emission: γφ=0.01, γ↓=0.1, γ⇓=0.1

Critical Modeling Constraint

Workflow

  1. Build the Hamiltonian and collapse operators strictly from the provided task parameters.
  2. Preserve the requested dissipation structure exactly: local channels must act on each spin separately in the full tensor-product spin space, while collective channels act on the full spin ensemble.
  3. Keep all operators in one consistent Hilbert-space representation; check composite operator/Liouvillian dims and shapes before calling steadystate, and do not fix incompatible superoperators by manually overwriting .dims.
  4. Before full-scale runs, validate one reduced but structurally faithful end-to-end pipeline: build the model, solve one steady state, confirm subsystem ordering for ptrace, compute a small Wigner grid, and write a test CSV.
  5. Solve the full-parameter steady state case-by-case.
  6. Trace out spins → cavity state, confirming subsystem ordering before ptrace.
  7. Calculate the Wigner function on grid x,p ∈ [-6,6], 1000×1000.
  8. Save each finished case immediately as CSV: 1.csv, 2.csv, 3.csv, 4.csv.
  9. If you used reduced settings for diagnosis, restore the exact required parameters before the final run.
  10. Verify that all four CSVs were actually written and are non-empty before declaring completion.

Workflow

Execution Guardrails

Debugging and Validation

Debugging and Validation

Output

CSV files with Wigner function values:

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.