NRG Ljubljana 2026.12

Native model initialization without Mathematica

For roughly 20 years, preparing a new impurity model in NRG Ljubljana required Mathematica. The December 2026 release introduces nrginit++, so most users can now specify a model and run the entire calculation using the C++ programs. The initializer constructs the symmetry-adapted basis, diagonalizes the starting Hamiltonian, evaluates the requested operator matrices, and prepares the Wilson chain. The solver reads the resulting data file.

Run nrginit++ && nrg in a calculation directory with param. The first calculation uses a built-in Anderson model and generates all inputs locally.

  • Built-in models and baths. Native workflows cover Anderson and Kondo models, multiple impurities and channels, spinless models, spin-polarized and superconducting bands, and local phonons. Selected configurations also accept tabulated baths, a density given by a Wolfram expression, or precomputed scalar Wilson coefficients.
  • Your own models and operators. Keep Wolfram .m syntax and reuse supported SNEG definitions in model.m and modeloperators.m. The native evaluator handles functions, patterns and replacement rules, lists and matrices, and common second-quantized operations. These include scalar and matrix hopping, pairing, number and spin operators, currents, projectors, anticommutation-based Simplify, and phonon operators.
  • More observables and basis options. Native implementations include sigma_a, pair_a, neven, nodd, and single-mode phonon observables such as the displacement, occupation projectors, and phonon-dressed fermions. Local basis options include occupancy projectors, neutral spin and orbital states, and selected basis hooks. The native initializer also supports single-frequency Floquet models with SPU1.
  • Reusable seed templates. Generate templates with nrginit++ for the QS Anderson model and supported local QS and SPSU2 models, then use instantiate to evaluate the recipes for new parameter sets.

The legacy nrginit launcher remains available for specialized inputs that need a Wolfram kernel, including arbitrary Mathematica code and custom basis transformations outside the native subset. Check the model initialization guide for supported combinations of symmetry, bath, and model, and for adapting an existing definition.

Wilson chains and spectral resolution

  • mixchain discretizes matrix-valued hybridizations. The solver accepts a matrix Wilson chain through chain_file, with normal and anomalous coefficients subject to the selected symmetry. Matrix Wilson chains
  • Derivative-based adaptive broadening uses the change in transition energy with the logarithmic twist z to set the spectral width. The workflow supports scalar chains and matrix chains with matching derivatives. Adaptive spectral broadening
  • The spinless examples compare scalar and matrix Wilson chains with exact resonant-level results.

Symmetries, performance, and library workflows

  • Symplectic SP2KSU2 and SP2KSZ symmetries support a spin-1 Kondo impurity coupled to up to five equivalent channels. Prepare the calculation with instantiate --spin1-kondo. Spin-1 Kondo example
  • The solver generates coefficients for Abelian, SU(2), orbital, and reflection symmetries at run time. Interleaved NRG supports additional symmetry types and spin-polarized chains. QSTZ and QSZTZ support orbital-indexed doublets and QSZTZ provides spin-resolved spectra. Choosing a symmetry
  • Partial diagonalization uses all eigenvalues for shell thermodynamics and computes the eigenvectors needed by truncation. Bulk checkpoint I/O, chunked MPI transfers, spectral contractions, and CUDA buffer reuse reduce overhead in the corresponding calculations.
  • The C++ workflow library reaches API level 4. It provides in-memory hybridization discretization, preparation from supplied Wilson coefficients, and output readers. Native solver workflow

Installation and existing calculations

Check the installed version with nrginit++ --version. Mathematica is optional when building from source. The legacy launcher and its integration tests use a separately installed Wolfram kernel. Installation and build instructions

Regenerate data with the initializer for the release used by your solver. Start a fresh checkpoint directory when upgrading a resumable calculation.