Skip to content

Commit

Permalink
fixing tools import by using full path to qiskit.tools (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfrisch authored and atilag committed Aug 31, 2017
1 parent 0459546 commit 20819fe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions qiskit/tools/apps/fermion.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
"""

from tools.qi.pauli import Pauli, label_to_pauli,sgn_prod
from qiskit.tools.qi.pauli import Pauli, label_to_pauli,sgn_prod
import numpy as np
from tools.apps.optimization import Hamiltonian_from_file
from qiskit.tools.apps.optimization import Hamiltonian_from_file


"""
Expand Down
2 changes: 1 addition & 1 deletion qiskit/tools/apps/optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from qiskit.extensions.standard import h, ry, barrier, cz
import numpy as np
from tools.qi.pauli import Pauli, label_to_pauli
from qiskit.tools.qi.pauli import Pauli, label_to_pauli


def SPSA_optimization(obj_fun, initial_theta, SPSA_parameters, max_trials, save_steps = 1,last_avg=1):
Expand Down
2 changes: 1 addition & 1 deletion qiskit/tools/qcvv/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from re import match
from itertools import product

from tools.qi.qi import vectorize, devectorize, outer
from qiskit.tools.qi.qi import vectorize, devectorize, outer


###############################################################
Expand Down
2 changes: 1 addition & 1 deletion qiskit/tools/qi/qi.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import math
import numpy as np
import scipy.linalg as la
from tools.qi.pauli import pauli_group
from qiskit.tools.qi.pauli import pauli_group

###############################################################
# circuit manipulation.
Expand Down
2 changes: 1 addition & 1 deletion qiskit/tools/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import proj3d
from matplotlib.patches import FancyArrowPatch
from tools.qi.pauli import pauli_group, pauli_singles
from qiskit.tools.qi.pauli import pauli_group, pauli_singles

###############################################################
# Plotting historgram
Expand Down
1 change: 0 additions & 1 deletion tools

This file was deleted.

1 change: 1 addition & 0 deletions tools
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
qiskit/tools

0 comments on commit 20819fe

Please sign in to comment.