Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.3k stars 2.38k forks source link

tools module import failure #57

Closed milesmajefski closed 7 years ago

milesmajefski commented 7 years ago

The second box in the tutorial notebook "quantum_state_tomography_bell_states" doesn't run successfully.

Expected Behavior

I expect that box of code to silently import some modules.

Current Behavior


ModuleNotFoundError Traceback (most recent call last)

in () 1 # import tomography libary ----> 2 import tools.qcvv.tomography as tomo 3 4 # useful additional packages 5 from tools.visualization import plot_state, plot_histogram ModuleNotFoundError: No module named 'tools' ## Possible Solution Change that line to this and it works: from qiskit.tools.qcvv import tomography as tomo ## Steps to Reproduce (for bugs) N/A ## Context N/A ## Your Environment * Version used: qiskit 0.3.5 * Environment name and version (e.g. Python 3.6.1): Python 3.6.2-0 Anaconda3 * Operating System and version: Win 10 64bit
alfrisch commented 7 years ago

thanks for pointing this out, this is similar to pull request #55, I will put together a new PR apparently I did not catch all tools import occurences

jaygambetta commented 7 years ago

fixed thanks to @alfrisch.