Skip to content

Commit

Permalink
[ITensorMPS] Fix some lingering namespace issues (#1362)
Browse files Browse the repository at this point in the history
  • Loading branch information
emstoudenmire authored Mar 25, 2024
1 parent 973cd94 commit dbc645e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gmps.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Base: sortperm, size, length, eltype, conj, transpose, copy, *
using ITensors: alias
using ITensors.ITensorMPS: ITensorMPS
abstract type AbstractSymmetry end
struct ConservesNfParity{T} <: AbstractSymmetry
data::T
Expand Down Expand Up @@ -177,8 +178,8 @@ end

function quadratic_operator(os::OpSum)
os = deepcopy(os)
#os = ITensors.sorteachterm(os, sites)
os = ITensors.sortmergeterms(os)
#os = ITensorMPS.sorteachterm(os, sites)
os = ITensorMPS.sortmergeterms(os)

nterms = length(os)
coefs = Vector{Number}(undef, nterms)
Expand Down

0 comments on commit dbc645e

Please sign in to comment.