File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11name = " YaoSym"
22uuid = " 3b27209a-d3d6-11e9-3c0f-41eb92b2cb9d"
3- version = " 0.6.10 "
3+ version = " 0.6.11 "
44
55[deps ]
66BitBasis = " 50ba71b6-fa0f-514d-ae9a-0916efc90dcf"
@@ -14,7 +14,7 @@ YaoBlocks = "418bc28f-b43b-5e0b-a6e7-61bbc1a2c1df"
1414[compat ]
1515BitBasis = " 0.8, 0.9"
1616LuxurySparse = " 0.8"
17- SymEngine = " 0.11, 0.12 "
17+ SymEngine = " 0.11 - 0.13 "
1818YaoArrayRegister = " 0.9"
1919YaoBlocks = " 0.14"
2020julia = " 1"
Original file line number Diff line number Diff line change 11name = " YaoToEinsum"
22uuid = " 9b173c7b-dc24-4dc5-a0e1-adab2f7b6ba9"
3+ version = " 0.2.9"
34authors = [
" GiggleLiu <[email protected] > and contributors" ]
4- version = " 0.2.8"
55
66[deps ]
77JSON = " 682c06a0-de6a-54ab-a142-c8b1cf79cde6"
@@ -16,7 +16,7 @@ LuxorGraphPlot = "1f49bdf2-22a7-4bc4-978b-948dc219fbbc"
1616LuxorExt = " LuxorGraphPlot"
1717
1818[compat ]
19- JSON = " 0.21"
19+ JSON = " 0.21 - 1 "
2020LuxorGraphPlot = " 0.5"
2121OMEinsum = " 0.9.1"
2222YaoBlocks = " 0.14"
Original file line number Diff line number Diff 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... )
You can’t perform that action at this time.
0 commit comments