quantdata.sanos.tridiag#

Grid Sanos tridiagonal solver for SANOS-type transition operators, c.f. http://arxiv.org/abs/2211.13227

quantdata.sanos.tridiag.solve_sanos_tridiagonal(*, w_minus, w_plus, rhs, backbone=<quantdata.utils.backbone.BackboneNumpy object>)[source]#

Solve SANOS tridiagonal system with boundary structure from w_minus/w_plus.

The system size is N = (N-2) + 2 where: - w_minus and w_plus have shape (..., N-2) - rhs has shape (..., N)

This avoids materializing full tridiagonal bands and is more memory efficient for the SANOS parameterization.