Skip to content

Commit

Permalink
Start adding back missing functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mtfishman committed Jan 10, 2025
1 parent 5d67434 commit 6453a6b
Show file tree
Hide file tree
Showing 20 changed files with 3,362 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ authors = ["ITensor developers <[email protected]> and contributors"]
version = "0.8.0"

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

[compat]
ChainRulesCore = "1.25.1"
ITensorBase = "0.1.2"
LinearAlgebra = "1.10.0"
TensorAlgebra = "0.1.1"
julia = "1.10"
53 changes: 53 additions & 0 deletions src/ITensors.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
module ITensors

using TensorAlgebra: contract
using ITensorBase: ITensor, Index
include("SiteTypes/SiteTypes.jl")
using .SiteTypes: SiteTypes
include("LazyApply/LazyApply.jl")
using .LazyApply: LazyApply
include("Ops/Ops.jl")
using .Ops: Ops

# TODO: Used in `ITensorMPS.jl`, define in `BackendSelection.jl`.
struct Algorithm{algname} end
macro Algorithm_str(algname)
return :(Algorithm{$(Expr(:quote, Symbol(algname)))})
end

# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
function outer end

# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
struct Apply{Args}
args::Args
end

# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
macro ts_str(tags) end

# TODO: Used in `ITensorMPS.jl`, decide where or if to define it.
struct OneITensor end

# TODO: Used in `ITensorMPS.jl`, define in `ITensorBase.jl`.
function addtags end
function addtags! end
function commonind end
function commoninds end
function dag end
function noprime end
function noprime! end
function prime end
function prime! end
function removetags end
function removetags! end
function replaceprime end
function replaceprime! end
function replacetags end
function replacetags! end
function setprime end
function setprime! end
function settags end
function settags! end
function sim end
function swapprime end
function swapprime! end
function uniqueind end
function uniqueinds end

end
Loading

0 comments on commit 6453a6b

Please sign in to comment.