Skip to content

Polarism

Polarism simulates driven-dissipative exciton-polariton condensates in one and two dimensions. You describe the sample, pump and numerics in Python or YAML; Polarism integrates the generalized Gross-Pitaevskii equation coupled to reservoir rate equations on a CPU or an NVIDIA GPU.

Highlights

  • Physics: scalar ψ or spinor (ψ+, ψ−) fields with TE-TM splitting, Zeeman splitting and cross-spin interaction; single, double, quadratic-double or no reservoir; incoherent pumps from spatial profiles, lattices and temporal envelopes; a coherent drive; static and time-dependent potentials; truncated-Wigner noise.
  • Solvers: finite-difference RK4, split-step FFT, ETD-RK2 and interaction-picture RK solvers up to Verner 9, with adaptive time stepping for the embedded tableaus. The same configuration runs on NumPy, CuPy or fused CUDA kernels.
  • Observables: density, Stokes parameters, currents, vortices, and accumulated n(k), g1, g2 and energy spectra E(k) and E(x).
  • Workflows: batched parameter sweeps, checkpoint and restart (including SLURM time limits), asynchronous HDF5, NPY and JSON output, and a lazy result reader.
  • Extensible: registries for lasers, potentials, reservoirs, terms, dispersions, solvers, observables, accumulators and storage formats.

A first run

import polarism as ps

cfg = ps.Config()
cfg.grid.nx = 64
cfg.grid.ny = 64
cfg.grid.lx = 60.0
cfg.grid.ly = 60.0
cfg.laser.laser_type = "continuous-gaussian"
cfg.laser.P0 = 0.3
cfg.laser.sigma_space = 6.0
cfg.solver.method = "ifrk-fft-cuda"
cfg.solver.tableau = "dop853"
cfg.solver.adaptive = True
cfg.solver.dt = 0.1
cfg.solver.total_time = 300.0
controller = ps.SimulationController(cfg)
controller.run()

Lengths are in µm, times in ps and energies in meV. This run forms a condensate under the pump spot in a few seconds on a CPU; the quickstart saves and plots it.

Where to go next

Release notes for each version are on the GitHub releases page.