Skip to content

Commit

Permalink
create __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
davibinco committed Aug 30, 2024
1 parent 46b4f01 commit da9455b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion beh2_full.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tequila as tq
import numpy
from qvalence import Rot, Corr, GNM, gem_fast
from qvalence.utils import Rot, Corr, GNM, gem_fast
import time
start = time.time()

Expand Down
2 changes: 1 addition & 1 deletion h4.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tequila as tq
import numpy
from qvalence import Rot, Corr, GNM, gem_fast
from qvalence.utils import Rot, Corr, GNM, gem_fast

"""
Compute the data from Fig.1 in the paper
Expand Down
2 changes: 1 addition & 1 deletion h6.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import warnings
warnings.filterwarnings("ignore", category=tq.TequilaWarning)

from qvalence import Rot, gem_fast, BigExpVal, GNM, Corr
from qvalence.utils import Rot, gem_fast, BigExpVal, GNM, Corr

# plot data:
error_g1=0.0
Expand Down
1 change: 1 addition & 0 deletions src/qvalence/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from qvalence.utils import GNM
8 changes: 1 addition & 7 deletions src/qvalence.py → src/qvalence/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,4 @@ def callback(x):

for k in vkeys:
variables[k] = x0[k]
return v,vv,variables






return v,vv,variables
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import tequila as tq
import numpy as np
from qvalence import Rot, GNM, gem_fast, BigExpVal, BraKetQulacs
from qvalence.utils import Rot, GNM, gem_fast, BigExpVal, BraKetQulacs
from tequila.objective.braket import make_overlap, make_transition
from tequila.tools.random_generators import make_random_hamiltonian

Expand Down

0 comments on commit da9455b

Please sign in to comment.