Skip to content

Commit f1e3cc0

Browse files
committed
Dependencies: Use ItensorMPS
1 parent 48c5aa9 commit f1e3cc0

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Project.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ authors = ["Pedro Maciel Xavier <pedroxavier@psr-inc.com>", "Iago Leal de Freita
44
version = "0.1.0"
55

66
[deps]
7+
ITensorMPS = "0d1a4710-d33b-49a5-8f18-73bdf49b47e2"
8+
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
79
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
8-
ITensors = "9136182c-28ba-11e9-034c-db9fb085ebd5"
9-
# QUBOVerse
10-
QUBODrivers = "a3f166f7-2cd3-47b6-9e1e-6fbfe0449eb0"
11-
QUBOTools = "60eb5b62-0a39-4ddc-84c5-97d2adff9319"
10+
QUBODrivers = "a3f166f7-2cd3-47b6-9e1e-6fbfe0449eb0"
11+
QUBOTools = "60eb5b62-0a39-4ddc-84c5-97d2adff9319"

src/TenSolver.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module TenSolver
22

33
import ITensors
4+
import ITensorMPS
45
import QUBODrivers
56
import QUBOTools
67

src/solver.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using ITensors
1+
using ITensors, ITensorMPS
22

33
function issquare(A :: AbstractMatrix)
44
nrows, ncols = size(A)
@@ -23,7 +23,7 @@ function tensorize_qubo(Q :: AbstractMatrix{T}, sites; cutoff = 1e-8) where {T}
2323
os = ITensors.OpSum{T}()
2424
# Construct the Hamiltonian H = Σ Q_ij P_i P_j
2525
# The less operators in the sum, the fastest we can calculate an MPO.
26-
# We use the following simmetries to simplify the construction:
26+
# We use the following symmetries to simplify the construction:
2727
# - For x in Bool, x^2 = x.
2828
# Thus, the Hamiltonian can be linear in the diagonal.
2929
# - P_i commutes with P_j.

0 commit comments

Comments
 (0)