Skip to content

Commit c5c78cc

Browse files
authored
Fix incorrect load dimensions (#26)
1 parent a1b3c8c commit c5c78cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "QXTools"
22
uuid = "84f0eee1-10ae-40da-994b-b9d0e53829ae"
33
authors = ["QuantEx team"]
4-
version = "0.2.0"
4+
version = "0.2.1"
55

66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"

src/compute_graph/compute_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function build_compute_graph(tnc::TensorNetworkCircuit,
2424
# add a load node for each tensor
2525
for t in keys(tnc)
2626
data_symbol = push!(tc, tensor_data(tnc, t))
27-
op = LoadCommand(t, data_symbol, collect(size(tnc[t])))
27+
op = LoadCommand(t, data_symbol, collect(size(tensor_data(tnc, t))))
2828
nodes[t] = ComputeNode{LoadCommand}(op)
2929
end
3030

src/simulation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using YAML
33

44
export amplitudes_uniform, amplitudes_all
55
export generate_simulation_files, run_simulation
6-
export generate_parameter_file
6+
export generate_parameter_file, generate_dsl_files
77

88
"""
99
amplitudes_all(qubits::Int)

0 commit comments

Comments
 (0)