5
votes
Accepted
When using Qiskit's plot_bloch_vector function, how can I set colors for vectors?
A simple way to do that is by using Bloch class[1] directly which accepts a list of vector colors to cycle through:
...
3
votes
How do I use the quantum searching algorithm to loop search through a datafile in qiskit?
Currently the state of quantum computers is not advanced enough; while you can run Grover's algorithm on the existing quantum computers, you will not be able to benefit from this in the problem you're ...
3
votes
How does a quantum computer find the correct password faster than classical computers using brute-force?
In the setting you described we cannot use a Quantum Computer to benefit us. But if we are able to somehow perform the password check itself within a quantum computer, then Grover's algorithm gives us ...
2
votes
AWS Braket Backend for Qiskit?
qbraid does!
qbraid has a transpiler for Qiskit <> Braket <> Pennylane (QNodes) <> Cirq <> Pyquil which is also backend compatible.
You'll have to sign up to access the SDK ...
2
votes
Can one reset a qubit to the ground state on real IBM quantum processor?
As @KAJ226 said in his answer, some of IBM quantum systems support Reset operation.
You can check whether some backend supports Reset as follows:
...
2
votes
Can one reset a qubit to the ground state on real IBM quantum processor?
Yes, as pointed out by this tutorial here: Mid-Circuit Measurements Tutorial
In particular they showed an example of single qubit reset on ibmq_manhattan
2
votes
How do I use the quantum searching algorithm to loop search through a datafile in qiskit?
i heard a quantum algorithm can search through a list much more quickly than an algorithm limited by the plodding pace of classical physics
Grover's algorithm, also known as the quantum search ...
1
vote
Question about mock backends!
According to Qiskit documentation:
Note, that these automatic models are only an approximation of the real errors that occur on actual devices, due to the fact that they must be build from a limited ...
1
vote
Accepted
How is the ket of a quantum state calculated in this code?
In case the bra-ket notation is new to you, the calculations are fairly basic linear algebra. Your starting state is the tensor product
$$(q_0)_{init} \otimes (q_1)_{init} = \vert 0\rangle\otimes\...
1
vote
Accepted
Qiskit compute mean expectation value
Yes, StateFn(Bitstring) is a valid usage of qiskit in terms of StateFn("0101")=$\left|0101\right\rangle$. As an ...
1
vote
Accepted
split_dataset_to_data_and_labels in qiskit not working correctly
Qiskit Aqua (now deprecated) contains the function ad_hoc_data[1] which returns
...
1
vote
Unable to import split_dataset_to_data_and_labels and map_label_to_class_name in qiskit
To fix this issue, required code needs to be copied and applied in python from-: https://github.com/Qiskit/qiskit-aqua/blob/main/qiskit/aqua/utils/dataset_helper.py
This is based on Egretta.Thula's ...
1
vote
No module named 'qiskit.optimization' on Google Colab
Run !pip install qiskit-optimization to install it and import it as qiskit_optimization. Read more about the framework on the ...
1
vote
Generating a random 32-byte hex integer using Qiskit
A binary string can be converted into other formats such as decimal, octal and as you require, hexadecimal. As you have already mentioned, you need a 256-bit key. So you can replicate the same method ...
1
vote
Accepted
Generating a random 16-digits in a superposition state using Qiskit
You need $\lceil d\log_2(10)\rceil$ qubits to store a $d$ decimal digits number.
So you can generate a superposition state of binary representation of a 16 decimal digits number using the following ...
1
vote
Accepted
Why Qiskit doesn't invert hard coded unitary matrix?
So I have finally have the time to check up with what I wrote in the comment, and what I commented is indeed the case.
If I passed in the matrix $U = \begin{pmatrix} 1 & 0 & 0 & 0\\ 0 &...
1
vote
Why is the combination of NTRU Prime and X25519 ECDH in OpenSSH believed to be secure against quantum attacks?
Before I address your question, I'll mention that the security of a cryptosystem in theory is not really the same as the security of a cryptosystem in practice. The specific reasons why NTRU is ...
1
vote
Bernstein Vazirani Algorithm widget (bv_widget) in the Qiskit documentation
With qasm simulator with qiskit and the inner-product quantum oracle (parameterized by the secret bits and leveraging the phase-...
1
vote
Qiskit sample - Portfolio optimization
Well you can fix it also. Like if you want to take 3 assets.
THEN TAKE BUDGET=3.
[BUDGET IS THE NO OF ASSETS U WANT TO SELECT OUT OF TOTAL ASSETS(num_assets)]
Now your number of assets can be 5, 10, ...
1
vote
Question About How Qiskit Reset Gate Affects Other Entangled Qubits
'Internally, these reset instructions are composed of a mid-circuit measurement followed by an x-gate conditioned on the outcome of the measurement.'
As I understand it, the reset will collapse the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
programming × 1321qiskit × 820
ibm-q-experience × 247
quantum-gate × 152
q# × 108
algorithm × 107
quantum-state × 98
circuit-construction × 81
cirq × 68
simulation × 61
vqe × 58
measurement × 43
quantum-circuit × 38
qasm × 35
grovers-algorithm × 34
ibm × 32
hamiltonian-simulation × 30
qaoa × 30
optimization × 27
resource-request × 25
qutip × 25
error-correction × 24
noise × 24
hhl-algorithm × 23
machine-learning × 22