# quantum-computing

问题 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?

## VisibleDeprecationWarning - where is this coming from?

问题 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?

## Colab running Pennylane with DeviceError

问题 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

## Jupyter notebook always gives BrokenProcessPool error while executing qiskit code

来源： https://stackoverflow.com/questions/50611414/jupyter-notebook-always-gives-brokenprocesspool-error-while-executing-qiskit-cod

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

问题 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

问题 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)

问题 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?

问题 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.