Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 11, 2024
2 parents ac333d4 + 468266c commit c1f66d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demonstrations/tutorial_mps.metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
],
"dateOfPublication": "2024-09-29T00:00:00+00:00",
"dateOfLastModification": "2024-10-07T00:00:00+00:00",
"dateOfLastModification": "2024-10-11T00:00:00+00:00",
"categories": [
"Quantum Computing",
"Algorithms",
Expand Down
2 changes: 1 addition & 1 deletion demonstrations/tutorial_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def dense_to_mps(psi, bond_dim):
Ms.append(U)
Ss.append(Ss)
bondL = Vd.shape[0]
psi = Vd
psi = np.tensordot(np.diag(S), Vd, 1)

for _ in range(n-2):
psi = np.reshape(psi, (2*bondL, -1)) # reshape psi[2 * bondL, (2x2x2...)]
Expand Down

0 comments on commit c1f66d4

Please sign in to comment.