From 20819fefefd7322a13954d5eb9649d7834aa8214 Mon Sep 17 00:00:00 2001 From: alfrisch Date: Thu, 31 Aug 2017 10:35:45 +0200 Subject: [PATCH] fixing tools import by using full path to qiskit.tools (#52) --- qiskit/tools/apps/fermion.py | 4 ++-- qiskit/tools/apps/optimization.py | 2 +- qiskit/tools/qcvv/tomography.py | 2 +- qiskit/tools/qi/qi.py | 2 +- qiskit/tools/visualization.py | 2 +- tools | 0 6 files changed, 6 insertions(+), 6 deletions(-) mode change 120000 => 100644 tools diff --git a/qiskit/tools/apps/fermion.py b/qiskit/tools/apps/fermion.py index 913ec9b2b718..81b33a54edcf 100644 --- a/qiskit/tools/apps/fermion.py +++ b/qiskit/tools/apps/fermion.py @@ -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 """ diff --git a/qiskit/tools/apps/optimization.py b/qiskit/tools/apps/optimization.py index 3bc801160514..317f72bbf8f3 100644 --- a/qiskit/tools/apps/optimization.py +++ b/qiskit/tools/apps/optimization.py @@ -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): diff --git a/qiskit/tools/qcvv/tomography.py b/qiskit/tools/qcvv/tomography.py index fb02785a2270..29f82f4b7157 100644 --- a/qiskit/tools/qcvv/tomography.py +++ b/qiskit/tools/qcvv/tomography.py @@ -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 ############################################################### diff --git a/qiskit/tools/qi/qi.py b/qiskit/tools/qi/qi.py index 08b292bf9e40..075d606586b0 100644 --- a/qiskit/tools/qi/qi.py +++ b/qiskit/tools/qi/qi.py @@ -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. diff --git a/qiskit/tools/visualization.py b/qiskit/tools/visualization.py index b5afd5dd30cd..67e7ccaaeedf 100644 --- a/qiskit/tools/visualization.py +++ b/qiskit/tools/visualization.py @@ -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 diff --git a/tools b/tools deleted file mode 120000 index 98ae107c9736..000000000000 --- a/tools +++ /dev/null @@ -1 +0,0 @@ -qiskit/tools \ No newline at end of file diff --git a/tools b/tools new file mode 100644 index 000000000000..98ae107c9736 --- /dev/null +++ b/tools @@ -0,0 +1 @@ +qiskit/tools \ No newline at end of file