quantum-computing

Are random numbers generated using a quantum integer as its seed considered pseudo-random or truly random?

送分小仙女□ 提交于 2021-02-15 07:44:26
问题 I always hear that random numbers produced by quantum computers are considered "truly random" while random numbers generated from a classical computer are considered "pseudo-random" . If one were to generate random numbers using a quantum integer as the seed , would the numbers generated from that seed be considered "pseudo-random" or truly random ? Cannot find this clarification anywhere, any explanation welcome. import random random.seed(get_my_quantum_number()) #Some quantum integer

Are random numbers generated using a quantum integer as its seed considered pseudo-random or truly random?

荒凉一梦 提交于 2021-02-15 07:43:42
问题 I always hear that random numbers produced by quantum computers are considered "truly random" while random numbers generated from a classical computer are considered "pseudo-random" . If one were to generate random numbers using a quantum integer as the seed , would the numbers generated from that seed be considered "pseudo-random" or truly random ? Cannot find this clarification anywhere, any explanation welcome. import random random.seed(get_my_quantum_number()) #Some quantum integer

VisibleDeprecationWarning - where is this coming from?

▼魔方 西西 提交于 2021-02-07 19:55:33
问题 I'm writing some code to simulate a quantum computer in python. I just added a section which starts integrating greater-than-one-qubit functionality, and then this weird error came up. It doesn't say anything about which line caused it, so I don't really even know where to start fixing it, and I've never seen it before. Further, the program keeps running and outputs the correct answer in the few testcases I've run, even with this error. Error Warning (from warnings module): File "/usr/lib

VisibleDeprecationWarning - where is this coming from?

旧街凉风 提交于 2021-02-07 19:53:13
问题 I'm writing some code to simulate a quantum computer in python. I just added a section which starts integrating greater-than-one-qubit functionality, and then this weird error came up. It doesn't say anything about which line caused it, so I don't really even know where to start fixing it, and I've never seen it before. Further, the program keeps running and outputs the correct answer in the few testcases I've run, even with this error. Error Warning (from warnings module): File "/usr/lib

Colab running Pennylane with DeviceError

大兔子大兔子 提交于 2021-01-29 14:56:13
问题 I tried to run Pennylane on Colab, so I install it first. But the "Installed devices" are null, what's going on? I have restart and rebuilt for several times. Here is my code. !pip install pennylane pennylane-qiskit import pennylane as qml qml.about() Here is the result (with nothing in "Installed devices"): Successfully built qiskit python-constraint contextvars yfinance docplex dlx Installing collected packages: semantic-version, appdirs, pennylane, sympy, fastjsonschema, retworkx, python

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

Questions regarding the dimension initialization of multiple numpy arrays within a single numpy array

夙愿已清 提交于 2019-12-24 20:46:47
问题 Given that we have 3 Pauli matrices, each with dimension (2x2). As shown below: X = np.array([[0, 1], [1, 0]], dtype=complex) Y = np.array([[0, -1j], [1j, 0]], dtype=complex) Z = np.array([[1, 0], [0, -1]], dtype=complex) Now if I put these each individual (2x2) matrices as entries to another (2x2) matrices. Say: A = np.array([[X, 0], [0, Y]]) B = np.array([[X, X], [Y, Y]]) Weirdly, A has a dim of (2x2) - which is ideally what I want - and B has a dim of (2, 2, 2, 2)whatever this is, as show

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,

Is it possible to use Q# to control my own quantum computer?

北战南征 提交于 2019-12-21 07:49:07
问题 In short: If I have access to a real quantum computer, is there a possibility to control it using Q#? Before you downvote this into nirvana because "there's no quantum computer available yet": I'm a physicist and our group is able to do real gates on real world qubits. I also have some background in programming (mostly C++). So for the sake of this question, let's pretend someone has access to a real world device which is able to perform certain quantum operations on a number of qubits.