ITensor / NDTensors.jl

A Julia package for n-dimensional sparse tensors.
Apache License 2.0
27 stars 7 forks source link

Contraction logic bug #29

Closed mtfishman closed 4 years ago

mtfishman commented 4 years ago

This fixes some bugs in the contraction logic which only show up for more complicated in-place contractions. Basically they were off-by-one errors from the translation of the 0-based indexing used in C++ and the 1-based indexing used in Julia.

Also, this extends the definition of Spectrum to allow the eigenvalues to be nothing, for cases like QR where the eigenspectrum is not efficient enough to compute.