LaTeX Parser for Quantum Systems

LaTeX Parser for Quantum Systems#

Welcome to latex_parser — a library for writing quantum models in physics-style LaTeX and compiling them to numerical backends.

👋 New here? Start with Welcome to latex_parser for an overview and quick start.

🔧 Ready to install? Go to Installation Guide for setup instructions.

📚 Want to learn? Check out Usage Guide for basics, or Examples for 17 worked examples.

🎯 Looking for the API? See API Reference for complete documentation.

The Pipeline: LaTeX → IR → Backend

Write in LaTeX:           Parse to IR:              Compile to Backend:
───────────────────────  ────────────────────────  ────────────────────
H = ω σ_z +              HamiltonianIR             QuTiP Qobj
    A cos(ωt) σ_x    →   - terms: [...]       →   NumPy array
    + c_ops         - free_symbols: {ω, A}       JAX function
                      - time_dependent: True      Custom backend

Key Features:

  • ✅ Physics-style LaTeX input

  • ✅ Multiple backends (QuTiP, JAX, NumPy, custom)

  • ✅ Time-dependent Hamiltonians & collapse operators

  • ✅ Transparent intermediate representation (IR)

  • ✅ Open-system support

  • ✅ Boson deformations & custom subsystems

Start with: Welcome to latex_parser or jump straight to Installation Guide.