Skip to content

Commit 4d371ee

Browse files
committed
Get tests passing in Julia 1.10
1 parent ea89024 commit 4d371ee

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

src/ITensors.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ macro ts_str(tags) end
4949
# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
5050
struct OneITensor end
5151

52+
# TODO: Used in `ITensors.SiteTypes`, need to define.
53+
function product end
54+
5255
# TODO: Used in `ITensorMPS.jl`, define in `ITensorBase.jl`.
5356
function noprime end
5457
function removetags end

src/SiteTypes/sitetype.jl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
using ChainRulesCore: @ignore_derivatives
2-
using ..ITensors:
3-
ITensors, Index, ITensor, itensor, addtags, dag, onehot, prime, swapprime, tags
2+
using ..ITensors: ITensors, Index, ITensor, itensor, addtags, dag, onehot, prime, tags
43

5-
# TODO: Need to define.
6-
# using ..ITensors: product
4+
# TODO: Need to define or replace.
5+
# using ..ITensors: product, swapprime
76

87
@eval struct SiteType{T}
98
(f::Type{<:SiteType})() = $(Expr(:new, :f))

src/SiteTypes/sitetypes/generic_sites.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
using LinearAlgebra: I
2-
using ..ITensors: ITensor, itensor, settensor!
2+
using ..ITensors: ITensor, itensor
3+
4+
# TODO: Need to define or replace.
5+
# using ..ITensors: settensor!
36

47
function op!(
58
o::ITensor, ::OpName"Id", ::SiteType"Generic", s1::Index, sn::Index...; eltype=Float64

src/SiteTypes/sitetypes/spinone.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using ..ITensors: complex!, QN
1+
# TODO: Need to define or replace.
2+
# using ..ITensors: complex!, QN
23

34
alias(::SiteType"SpinOne") = SiteType"S=1"()
45

0 commit comments

Comments
 (0)