Skip to content

Commit e62dcb4

Browse files
committed
Tagging and priming, etc.
1 parent 6453a6b commit e62dcb4

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

examples/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
ITensorBase = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
23
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
34
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
45
NamedDimsArrays = "60cbd0c0-df58-4cb7-918c-6f5607b73fde"

src/ITensors.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
module ITensors
22

33
using TensorAlgebra: contract
4-
using ITensorBase: ITensor, Index
4+
using ITensorBase: ITensor, Index, addtags, tags
55
include("SiteTypes/SiteTypes.jl")
66
using .SiteTypes: SiteTypes
77
include("LazyApply/LazyApply.jl")
88
using .LazyApply: LazyApply
99
include("Ops/Ops.jl")
1010
using .Ops: Ops
1111

12+
# Quirks, decide where or if to define.
13+
using ITensorBase: dag, dim, hasqns
14+
1215
# TODO: Used in `ITensorMPS.jl`, define in `BackendSelection.jl`.
1316
struct Algorithm{algname} end
1417
macro Algorithm_str(algname)
@@ -30,11 +33,10 @@ macro ts_str(tags) end
3033
struct OneITensor end
3134

3235
# TODO: Used in `ITensorMPS.jl`, define in `ITensorBase.jl`.
33-
function addtags end
36+
# function addtags end
3437
function addtags! end
3538
function commonind end
3639
function commoninds end
37-
function dag end
3840
function noprime end
3941
function noprime! end
4042
function prime end

src/SiteTypes/sitetype.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using ChainRulesCore: @ignore_derivatives
22
using ..ITensors:
3-
ITensors, Index, ITensor, itensor, dag, onehot, prime, product, swapprime, tags
3+
ITensors, Index, ITensor, itensor, addtags, dag, onehot, prime, product, swapprime, tags
44

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

0 commit comments

Comments
 (0)