Skip to content

Commit

Permalink
Merge 811c0b0 into 048e69a
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Sep 13, 2023
2 parents 048e69a + 811c0b0 commit 4b6f5b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/tensor_operations/matrix_decomposition.jl
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ function factorize(A::ITensor, Linds...; kwargs...)
might_truncate = !isnothing(cutoff) || maxdim < min(dL, dR)

if isnothing(which_decomp)
if !might_truncate && !hasqns(A) && ortho != "none"
if !might_truncate && ortho != "none"
which_decomp = "qr"
elseif isnothing(cutoff) || cutoff automatic_cutoff
which_decomp = "svd"
Expand All @@ -685,7 +685,6 @@ function factorize(A::ITensor, Linds...; kwargs...)
elseif which_decomp == "eigen"
L, R, spec = factorize_eigen(A, Linds...; kwargs...)
elseif which_decomp == "qr"
hasqns(A) && error("QR factorization of an ITensor with QNs is not yet supported.")
L, R = factorize_qr(A, Linds...; kwargs...)
spec = Spectrum(nothing, 0.0)
else
Expand Down

0 comments on commit 4b6f5b4

Please sign in to comment.