Questions tagged [qubit]
26 questions
0
votes
1 answer
How to draw sphere with arrow pointing from sphere in matplotlib
I try to draw a sphere to represent a qubit using matplotlib
import numpy as np
import matplotlib.pyplot as plt
theta = [0, np.pi]
phi = [0, 2* np.pi]
N=100
theta_array = np.linspace(theta[0], theta[1], N)
phi_array = np.linspace(phi[0], phi[1],…

Nguyen Viet
- 13
- 3
0
votes
1 answer
Determining the phase of a qubit
Let's say I've got a qubit, being in one of two states:
either [ 0.995+0j, 0.098+0j ]
or [ 0.995+0j, -0.098+0j ],
that is the state I get when applying a RY-gate with θ = ±π/x to |0>.
In the both states above, x would be 16, but let's just say it…

JRE F
- 1
- 1
0
votes
0 answers
Are the qubits in Qiskit Explorer Interface always initialized to the |0> state?
I'm trying to replicate a Bell state through a circuit in Qiskit.
I created the circuit described below:
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from numpy import pi
qreg_q = QuantumRegister(2, 'q')
creg_c =…

Gustavo Mirapalheta
- 931
- 2
- 11
- 25
0
votes
1 answer
How can I map a complex number to a qubit in Q#?
In theory, the state of a qubit is defined by 2 complex numbers, following this formula:
The rule is that the amount of complex numbers needed to define the state of a set of qubits is equal to 2ⁿ, where n is the number of used qubits.
if i have an…

Mircea Suceveanu
- 25
- 5
0
votes
1 answer
Why does the quantum estimator say i don't use any qubits in Q#?
In short terms, I'm trying to implement in Q# the NonUniform Discrete Fourier Transform.
I've managed to do it bug-free in a classical manner(no quantum gates nor qubits used) yet the resource estimator says that no quantum resources used.
This…

Mircea Suceveanu
- 25
- 5
0
votes
0 answers
configure: error: No working boost sleep implementation found
we are using that commands in my vps Server
my server configuration is:
2 GB Memory / 50 GB Disk / NYC1 - Ubuntu 14.04.5 x64
This is for VPS.
./autogen.sh
./configure --with-miniupnpc --enable-wallet --enable-upnp-default --disable-tests…

Ankit Saxena
- 1
- 1
0
votes
2 answers
3 Way Quantum Entanglement with a Hadamard Transformed (superposition) Qubit
When running the following operations on 3 qubits:
H(qubits[0]);
CNOT(qubits[0], qubits[1]);
CNOT(qubits[0], qubits[2]);
CNOT(qubits[1], qubits[2]);
I get these results:
qubit 0 is in a superposition
qubit 1 is the same as qubit 0
qubit 2 is the…

Ethan Cannoy
- 5
- 4
0
votes
1 answer
Apply n qubits to a Hadamard Gate
First of all sorry for the long text, I tried to explain my problem / misunderstanding as good as possible.
For my student project I have to implement a simulation of a simple Quantum Computer. What I am trying to understand right now is how…

apfello
- 5
- 2
0
votes
1 answer
Facebook Pixel 'View Product' Event not tracking
Having real trouble getting this event configured. I use Qubit.com tag manager and this is the code I have used for the 'view product' event.
This event is not tracking and I don't know why. This is the code -
function () {
var _this =…

Hazel Popham
- 187
- 1
- 12
0
votes
1 answer
Convert from qubit density matrix to Bloch vector
Given the 2x2 density matrix of a qubit, how do I compute the point on the Bloch sphere that represents the qubit?
For example, the state |0⟩-|1⟩ has a density matrix of [[0.5,-0.5],[-0.5,0.5]] and should end up along the X axis. But the density…

Craig Gidney
- 17,763
- 5
- 68
- 136
-4
votes
1 answer
How can i manipulate a javaScript object
From the below command: __qubit.deliver.cookie.v1.get('_qb_se')
I retrieve something like:
{
610333: {
e:106949
t:1533657574344
},
686672: {
e:118370
t:1533657574344
},
…
user7775019