Skip to content

Commit 4effb91

Browse files
committed
implement ITensor interface
1 parent 076d1bf commit 4effb91

6 files changed

Lines changed: 29 additions & 6 deletions

File tree

Project.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,18 @@
11
name = "TensorKitAdapters"
22
uuid = "365c3f09-11dd-4b21-ae3b-5ed73578a59c"
3-
authors = ["Andreas Feuerpfeil <development@manybodylab.com> and Lukas Devos"]
43
version = "0.1.0"
4+
authors = ["Andreas Feuerpfeil <development@manybodylab.com> and Lukas Devos"]
5+
6+
[deps]
7+
8+
[weakdeps]
9+
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
10+
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
11+
12+
[extensions]
13+
ITensorsExt = "ITensors"
514

615
[compat]
16+
ITensors = "0.9.15"
17+
TensorKit = "0.16.0"
718
julia = "1.10"

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
[codestyle-img]: https://img.shields.io/badge/code_style-%E1%9A%B1%E1%9A%A2%E1%9A%BE%E1%9B%81%E1%9A%B2-black
4242
[codestyle-url]: https://github.com/fredrikekre/Runic.jl
4343

44+
`TensorKitAdapters.jl` provides adapters to convert between the `TensorMap` type of [`TensorKit.jl`](https://github.com/QuantumKitHub/TensorKit.jl) and other tensor libraries like [`ITensors.jl`](https://github.com/ITensor/ITensors.jl).
45+
4446

4547
## Installation
4648

@@ -62,4 +64,4 @@ julia> using TensorKitAdapters
6264

6365
## License
6466

65-
TensorKitAdapters.jl is licensed under the [MIT License](LICENSE). By using or interacting with this software in any way, you agree to the license of this software.
67+
`TensorKitAdapters.jl` is licensed under the [MIT License](LICENSE). By using or interacting with this software in any way, you agree to the license of this software.

docs/files/README.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
# <!-- <img src="./docs/src/assets/logo_readme.svg" width="150"> -->
2+
13
# # TensorKitAdapters.jl
24

5+
# `TensorKitAdapters.jl` provides adapters to convert between the `TensorMap` type of [`TensorKit.jl`](https://github.com/QuantumKitHub/TensorKit.jl) and other tensor libraries like [`ITensors.jl`](https://github.com/ITensor/ITensors.jl).
6+
7+
38
# ## Installation
49

510
# The package is not yet registered in the Julia general registry. It can be installed trough the package manager with the following command:
@@ -16,4 +21,4 @@
1621

1722
# ## License
1823

19-
# TensorKitAdapters.jl is licensed under the MIT License. By using or interacting with this software in any way, you agree to the license of this software.
24+
# `TensorKitAdapters.jl` is licensed under the [MIT License](LICENSE). By using or interacting with this software in any way, you agree to the license of this software.

test/Project.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
[deps]
22
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3-
TensorKitAdapters = "365c3f09-11dd-4b21-ae3b-5ed73578a59c"
3+
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
44
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
55
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
6+
TensorKitAdapters = "365c3f09-11dd-4b21-ae3b-5ed73578a59c"
7+
TensorKit = "07d1fe3e-3e46-537d-9eac-e9e13d0d4cec"
68
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
79
TestExtras = "5ed8adda-3752-4e41-b88a-e8b09835ee3a"
810

911
[compat]
1012
Aqua = "0.8"
11-
TensorKitAdapters = "0.1"
13+
ITensors = "0.9.15"
1214
SafeTestsets = "0.1"
1315
Suppressor = "0.2"
16+
TensorKitAdapters = "0.1"
17+
TensorKit = "0.16.0"
1418
Test = "1.10"

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ end
6767
end
6868
end
6969
end
70-
end
70+
end

test/test_basics.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using TensorKitAdapters
22
using Test
33
using TestExtras
4+
using TensorKit
45

56
@testset "TensorKitAdapters" begin
67
# Tests go here.

0 commit comments

Comments
 (0)