qiskit

Why python doesn't see the members of quantumCircuit class qiskit

…衆ロ難τιáo~ 提交于 2019-12-25 19:07:51
问题 I`m trying to learn the programming on quantum computers. I have installed qiskit in VS Code (all qiskit extentions available in VS Code market) , python compilator (from Vs Code market "Python" and "Python for VSCode"). I have set up my qikit API for correct working When I run the exemple I get erros: "Instance of 'QuantumCircuit' has no 'h' member" What shoud I do? The code: from qiskit import ClassicalRegister, QuantumRegister from qiskit import QuantumCircuit, execute q = QuantumRegister

Python Multiprocessing Error with IBM API (Q Experience)

狂风中的少年 提交于 2019-12-24 07:28:52
问题 I'm trying to use the IBM Q Experience API and I installed the library and wrote a quick test code. At first, it couldn't find the module. Then, I added the whole sys thing. Admittedly, I just copied that from a stackoverflow post so that may be the problem. Anyways, I got "RunTime Error" which leads to the python multiprocessing lib. The IBM Q doesn't have a big community, so I couldn't find anything after researching a little while. I'm completely unfamiliar with multiprocessing, threading,