Skip to content

Commit a869ca8

Browse files
jlbosseJan Lukas @ Servercraft
andauthored
Updated compat for JSON and SymEngine (#574)
* Updated compat for JSON in YaoToEinsum * bumped SymEngine compat in YaoSym --------- Co-authored-by: Jan Lukas @ Servercraft <[email protected]>
1 parent 1f35b03 commit a869ca8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/YaoSym/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "YaoSym"
22
uuid = "3b27209a-d3d6-11e9-3c0f-41eb92b2cb9d"
3-
version = "0.6.10"
3+
version = "0.6.11"
44

55
[deps]
66
BitBasis = "50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
@@ -14,7 +14,7 @@ YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df"
1414
[compat]
1515
BitBasis = "0.8, 0.9"
1616
LuxurySparse = "0.8"
17-
SymEngine = "0.11, 0.12"
17+
SymEngine = "0.11 - 0.13"
1818
YaoArrayRegister = "0.9"
1919
YaoBlocks = "0.14"
2020
julia = "1"

lib/YaoToEinsum/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "YaoToEinsum"
22
uuid = "9b173c7b-dc24-4dc5-a0e1-adab2f7b6ba9"
3+
version = "0.2.9"
34
authors = ["GiggleLiu <[email protected]> and contributors"]
4-
version = "0.2.8"
55

66
[deps]
77
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
@@ -16,7 +16,7 @@ LuxorGraphPlot = "1f49bdf2-22a7-4bc4-978b-948dc219fbbc"
1616
LuxorExt = "LuxorGraphPlot"
1717

1818
[compat]
19-
JSON = "0.21"
19+
JSON = "0.21 - 1"
2020
LuxorGraphPlot = "0.5"
2121
OMEinsum = "0.9.1"
2222
YaoBlocks = "0.14"

lib/YaoToEinsum/src/fileio.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,11 @@ Convert a dictionary back to a tensor.
126126
- `"complex"`: Boolean indicating if the tensor contains complex numbers
127127
- `"data"`: The tensor data as a flat array of real numbers
128128
"""
129-
function tensor_from_dict(dict::Dict)
129+
function tensor_from_dict(dict::AbstractDict)
130130
size_vec = dict["size"]
131131
is_complex = dict["complex"]
132132
data = collect(Float64, dict["data"])
133-
133+
134134
if is_complex
135135
complex_data = reinterpret(ComplexF64, data)
136136
return reshape(complex_data, size_vec...)

0 commit comments

Comments
 (0)