Skip to content
jcarrotsPublic

About

Fast TCL2/TCL4/TCL6 solvers for non-Markovian open quantum systems.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

FastTCL

FastTCL provides fast TCL2, TCL4, and TCL6 solvers for non-Markovian open quantum systems using time-convolutionless master equations.

Paper: Fast Evaluation of the Sixth-Order Time-Convolutionless Master-Equation Generator and Beyond — arXiv:2609.18806 (2026).

This CPU package provides nonsecular TCL2, TCL4, and Hadamard-reduced TCL6 for a finite-dimensional system coupled to a Gaussian bath. TCL2 and TCL4 use NumPy and SciPy; TCL6 preparation also uses SymPy.

Installation

Use Python 3.10 or newer:

git clone https://github.com/jcarrots/fasttcl.git
cd fasttcl
python -m pip install .

Wheels and source archives are available on the releases page.

First calculation

import numpy as np
from fasttcl import OhmicBath, prepare_model, solve

sx = np.array([[0, 1], [1, 0]], dtype=complex)
sz = np.diag([1., -1.])
model = prepare_model(0.5*sx, 0.5*sz)
bath = OhmicBath(omega_c=10.0)
rho0 = np.diag([1., 0.])

result = solve(model, bath, rho0, coupling_strength=np.sqrt(0.2),
               dt=0.02, n_steps=50, order=6)
rho2 = result.trajectories[2]
rho4 = result.trajectories[4]
rho6 = result.rho

order=2, 4, or 6 selects the highest order and returns all lower-order trajectories too. TCL2 and TCL4 runs skip TCL6 preparation. Density matrices are returned in the input basis.

Use coupling_strength for lambda in H_int = lambda A tensor B. Supply the unscaled operator A and bath correlation C_B; the solver applies the lambda powers. See conventions for spectral normalization, generator arrays, and time grids.

For repeated TCL6 calculations with the same Hamiltonian and coupling operator, call plan = compile_plan(model) once and pass plan=plan to solve or generator_series. The bath, time grid, and lambda may change. generator_series returns separate corrections and cumulative generators without propagating a state.

Arbitrary-order symbolic compiler

The fasttcl.symbolic interface constructs ordered cumulants, verifies signed integration domains, performs Hadamard reduction, and separates system coefficients from reduced time integrals at any positive even order 2N.

python -m fasttcl.symbolic --order 4 --dimension 2 --output generated/tcl4-symbolic-v1
python -m fasttcl.symbolic --order 10 --estimate

The output consists of exact symbolic JSON records and a verification manifest. Full source generation grows combinatorially with order. Numerical solvers remain available through TCL6; arbitrary-order numerical contraction is a separate task. See the compiler guide for the Python API, output files, and validation scope.

Examples

python -m pip install ".[notebook]"
python -m jupyter lab examples/

The notebooks include saved plots and use short grids. Command-line examples are described in examples/README.md.

Physical setting

The system couples through one Hermitian operator to a centered, stationary Gaussian scalar bath, with an initially factorized state. The examples use two-level systems; larger system dimensions can increase the cost substantially.

You can add more model or bath to apply it to broader open quantum system problems.

Testing

python -m pip install -e ".[test,notebook]"
python -m pytest
python examples/check_notebooks.py --output-dir outputs/notebooks

Tests compare TCL2 and TCL4 with direct sums, TCL6 with stored reference values, and check coupling conventions and propagation. The GitHub Actions workflow runs the tests and both notebooks.

Citation

If you use TCL4, please cite paper 1. If you use TCL6, please cite both papers 1 and 2.

  1. Jiahao Chen, Elyana Crowder, Lian Xiang, and Dragomir Davidovic. Benchmarking TCL4: Assessing the usability and reliability of fourth-order approximations. APL Quantum 2, 026109 (2025).
  2. Jiahao Chen, Sirui Chen, and Dragomir Davidovic. Fast Evaluation of the Sixth-Order Time-Convolutionless Master-Equation Generator and Beyond. arXiv:2609.18806 [quant-ph] (2026).

Citation metadata is in CITATION.cff.

About

Fast TCL2/TCL4/TCL6 solvers for non-Markovian open quantum systems.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages