Skip to content

Commit 6453a6b

Browse files
committed
Start adding back missing functionality
1 parent 5d67434 commit 6453a6b

File tree

20 files changed

+3362
-0
lines changed

20 files changed

+3362
-0
lines changed

Project.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ authors = ["ITensor developers <[email protected]> and contributors"]
44
version = "0.8.0"
55

66
[deps]
7+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
78
ITensorBase = "4795dd04-0d67-49bb-8f44-b89c448a1dc7"
9+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
10+
TensorAlgebra = "68bd88dc-f39d-4e12-b2ca-f046b68fcc6a"
811

912
[compat]
13+
ChainRulesCore = "1.25.1"
1014
ITensorBase = "0.1.2"
15+
LinearAlgebra = "1.10.0"
16+
TensorAlgebra = "0.1.1"
1117
julia = "1.10"

src/ITensors.jl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,58 @@
11
module ITensors
22

3+
using TensorAlgebra: contract
34
using ITensorBase: ITensor, Index
5+
include("SiteTypes/SiteTypes.jl")
6+
using .SiteTypes: SiteTypes
7+
include("LazyApply/LazyApply.jl")
8+
using .LazyApply: LazyApply
9+
include("Ops/Ops.jl")
10+
using .Ops: Ops
11+
12+
# TODO: Used in `ITensorMPS.jl`, define in `BackendSelection.jl`.
13+
struct Algorithm{algname} end
14+
macro Algorithm_str(algname)
15+
return :(Algorithm{$(Expr(:quote, Symbol(algname)))})
16+
end
17+
18+
# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
19+
function outer end
20+
21+
# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
22+
struct Apply{Args}
23+
args::Args
24+
end
25+
26+
# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
27+
macro ts_str(tags) end
28+
29+
# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
30+
struct OneITensor end
31+
32+
# TODO: Used in `ITensorMPS.jl`, define in `ITensorBase.jl`.
33+
function addtags end
34+
function addtags! end
35+
function commonind end
36+
function commoninds end
37+
function dag end
38+
function noprime end
39+
function noprime! end
40+
function prime end
41+
function prime! end
42+
function removetags end
43+
function removetags! end
44+
function replaceprime end
45+
function replaceprime! end
46+
function replacetags end
47+
function replacetags! end
48+
function setprime end
49+
function setprime! end
50+
function settags end
51+
function settags! end
52+
function sim end
53+
function swapprime end
54+
function swapprime! end
55+
function uniqueind end
56+
function uniqueinds end
457

558
end

0 commit comments

Comments
 (0)