using-xdiag

Perform exact diagonalization on quantum many-body lattice systems with XDiag.jl.

60|92|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/QuantumBFS/quantum.harness --skill using-xdiag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: using-xdiag
Source: https://github.com/QuantumBFS/quantum.harness/tree/main/skills/using-xdiag
Command: npx skills add https://github.com/QuantumBFS/quantum.harness --skill using-xdiag

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides a standardized, expert-curated interface for performing exact diagonalization (ED) on quantum many-body systems, ensuring that complex computational decisions like Hilbert-space block construction and solver selection are handled with scientific rigor.

Core Features & Use Cases

  • Symmetry-Adapted ED: Efficiently computes ground states and spectra using U(1) charge sectors and spatial permutation symmetries.
  • Advanced Solvers: Supports Lanczos, LOBPCG, and Krylov methods for ground states, excited states, and real/imaginary time evolution.
  • Use Case: Researchers can use this skill to study the ground state of a Heisenberg chain or perform dynamical spectral function calculations while ensuring memory-efficient basis encoding and correct symmetry handling.

Quick Start

Use the using-xdiag skill to define a Spinhalf block for a 16-site system and compute the ground state energy using the Lanczos solver.

Frequently Asked Questions about using-xdiag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform exact diagonalization on a quantum many-body system in Julia?

Exact diagonalization in Julia is performed using the XDiag.jl stack to construct Hilbert-space blocks and compute ground states via matrix-free eigensolvers. It handles symmetry-adapted basis constraints and operator summation for quantum lattice systems.

Can I use Lanczos and LOBPCG solvers for quantum many-body ground state calculations?

Lanczos and LOBPCG solvers are supported for quantum many-body ground state calculations. The environment also provides Krylov methods for computing excited states and performing real or imaginary time evolution dynamical calculations.

How does symmetry-adapted exact diagonalization handle U(1) charge sectors?

Symmetry-adapted exact diagonalization handles U(1) charge sectors by constructing memory-efficient basis encodings and applying spatial permutation symmetries. This ensures scientifically rigorous Hilbert-space block construction for quantum many-body lattice systems.

Do I need a specific Julia environment configuration to run exact diagonalization computations?

A valid Julia environment configuration is required to run exact diagonalization computations. You must adhere to the symmetry-adapted basis constraints defined by the method card to ensure correct operator summation and matrix-free eigensolver execution.

What is the best way to compute dynamical spectral functions for a Heisenberg chain?

Computing dynamical spectral functions for a Heisenberg chain is best done using exact diagonalization with advanced solvers like Lanczos. This approach ensures memory-efficient basis encoding and correct symmetry handling for accurate spectral calculations.

Why use matrix-free eigensolvers for quantum many-body lattice systems?

Matrix-free eigensolvers are used for quantum many-body lattice systems to compute ground states and dynamics efficiently without explicitly storing large Hamiltonian matrices. This approach enables exact diagonalization of larger system sizes within memory constraints.