Evo dicke model simulation

From OpenLAIR/OpenSkill · View interactive version

Evo dicke model simulation is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Builds the open Dicke model Hamiltonian and Lindblad collapse operators in the full 2^N tensor product Hilbert space, solves for the steady-state density matrix, and extracts the reduced cavity state via partial trace.

How to use this skill

Skill file

evo-dicke-model-simulation

Simulates the open Dicke model with N two-level systems coupled to a cavity mode.

Supports local dephasing, local emission, local pumping, collective emission, and collective pumping.

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-dicke-model-simulation/scripts')
from utils import (
    build_local_spin_op, build_collective_spin_ops,
    build_dicke_hamiltonian, build_collapse_operators,
    solve_steady_state, get_cavity_state
)

# Build Hamiltonian
N_cav = 17  # n_max + 1
N_spin = 4
H, a_comp, Jz_comp, Jp_comp, Jm_comp = build_dicke_hamiltonian(
    N_cav, N_spin, wc=1.0, w0=1.0, g=1.0
)

# Build collapse operators
c_ops = build_collapse_operators(
    a_comp, Jp_comp, Jm_comp, N_cav, N_spin,
    kappa=1.0, gamma_phi=0.01, gamma_down=0.1
)

# Solve steady state and get cavity state
rho_ss = solve_steady_state(H, c_ops)
rho_cavity = get_cavity_state(rho_ss)

Key Functions

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.