Questions tagged [qiskit]

Quantum Software Development Kit for writing quantum computing experiments, programs, and applications. If appropriate, also use the [programming] tag.

Filter by
Sorted by
Tagged with
0
votes
1answer
154 views

Installing qiskit with `pip install qiskit` gives `ERROR: Command errored out with exit status 1`

I have created a virtual environment by virtualenv (not conda) and tried to install qiskit by: ...
2
votes
1answer
57 views

Shor algorithm - how to obtain a period from diagram?

I'm studying shor's algorithm. I implemented in Qiskit and apriori I know that a period is 3 in my example. However, unless I know about period, how to obtain this period only according to seeing ...
2
votes
1answer
412 views

What is a “shot” in quantum computation?

What is a "shot" in relation to quantum computing? I heard it is repeating time, but I don't understand it. Additionally, why is the default number of shots 1,024 in the IBM Q Experience? One more ...
1
vote
1answer
180 views

How to run the Qiskit Aer simulator without noise?

I know that the Qasm Simulator execute quantum circuits with presence of noise, even if I do not specify the model of noise in options for that backend. But how can I execute the circuits without ...
0
votes
2answers
43 views

Does anyone know how to get a list of all the Qiskit ML datasets, and if they can also be used for classical machine learning?

I am trying to create a Quantum Classifier and would like to try to test it out using a Qiskit ML dataset. However, I only know of the breast cancer dataset and I would like to try it on another ...
0
votes
0answers
34 views

How to properly make phase estimation with qiskit's modules

I have been making several experiments with qiskits' Quantum Phase Estimation modules, such as with QPE and EigsQPE. For example,...
1
vote
1answer
57 views

How do we discard or delete or resuse a qubit at the end, on Qiskit?

After I have finished computing and operating a specific circuit on a set of (say) 4 qubits, my final interest only is to deal with (say) two of the four qubits. Then, how do I recycle or delete the ...
1
vote
2answers
49 views

Is there a function that gives the ideal probability distribution of a measurement in Qiskit?

I want to compare the theoretical output of a circuit measurement with the actual output from a real quantum computer. I can approximate the ideal output by running the circuit on a simulator. ...
0
votes
2answers
77 views

Swap test to calculate inner product with qiskit for multi-qubit states

Is it possible to perform a controlled swap test with multiple targets with qiskit? I have tried using cswap(ancilla[0],qb1,qb2), where qb1 is an n-qubit register and qb2 is as well
0
votes
1answer
70 views

Prepending initial state to a quantum circuit in Qiskit

I am trying to generate a Quantum Phase Estimation (QPE) circuit in QISKIT the following way. 1 - First, I generate a QPE circuit with the following code: ...
2
votes
1answer
30 views

Are all the IBM QX mapping bidirectional?

The connection between physical qubits of IBM devices are all bidirectional or there are some architectures that there existing some unidirectional connection? I found that in IBM Quantum experience, ...
2
votes
0answers
35 views

Easiest hash function to implement on Qiskit

Trying to build an Oracle circuit for Grover's algorithm that will try to find a desired input in order to get a certain output of a hash function. Was wondering if there were any 4 or 8 bit hash ...
1
vote
1answer
46 views

from qiskit.aqua import… ImportError: DLL load failed: The specified module could not be found

Dear team and developers. I am using qiskit on Python 36, windows 64bits I have the same identical problem of Import from qiskit-aqua error But the suggested solution (installing Numpy+mkl, I did ...
1
vote
1answer
36 views

Installing Qiskit Error: Building wheel failed!

I have been trying to install Qiskit in a virtual Python environment via pip through Miniconda command prompt on Windows 10. The issue is with using Microsoft Visual Studio tools such cl, nmake, etc. ...
2
votes
3answers
90 views

How to run a qasm file on IBMQ device?

I can found many qasm examples. How can I run them on different IBMQ devices?
1
vote
1answer
50 views

How does qiskit finally implement a noise model?

I have been reading qiskit documentation for hours and I still don't get how does it implements noise in the circuit. I have understood that it works with a objects of the class QuantumError which ...
1
vote
1answer
34 views

PennyLane operations - Kerr, Displacement and Squeeze

I am familiar with the quantum gates of qiskit, but I become very confused when looking at the continous variable (CV) operations in the pennylane documentation. I am especially interested in the Karr,...
0
votes
1answer
79 views

How to obtain the noise of a circuit in Qiskit?

I referred to the following Qiskit's document: state_fidelity. The inputs of state_fidelity are quantum state vectors or density matrices. For example, $|00\rangle$...
0
votes
1answer
35 views

Return the value of a selected Qubit from Qiskit

I have a quantum circuit and the job has been run on the "statevector" backend, which runs only 1 shot. Therefore is there a way to return the qubit state (0 or 1) specifically when selected ...
0
votes
0answers
38 views

Calculating the md5 of a text

I cannot see any libraries for Qiskit to calculate md5 hashes, is there one? How could I go about calculating the md5 hash of text?
1
vote
1answer
104 views

Vey different results between qasm_simulator and quantum computer

I've started playing around with circuits only recently and decided to try out and implement a 4-qubit Grover's search using qiskit. When I run my python script using the qasm_simulator, I get the ...
0
votes
2answers
138 views

'IBMQFactory' object has no attribute 'load_accounts'

I am following this qiskit workshop from https://colab.research.google.com/github/mtreinish/qiskit-workshop/blob/master/Workshop.ipynb . After adding my API key I had encountered the error ...
2
votes
1answer
60 views

How is quantum error applied to the qubits?

I am trying to check the way qiskit has the noise implemented. I have read how is this theoretically done using quantum channels (see Nielsen and Chuang chapter 8) and I want to verify if qiskit ...
0
votes
2answers
63 views

Right way to use Quantum Phase Estimation using aqua

I have been experimenting with Qiskit lately, but I have found the implementation of algorithms in Aqua extremely confusing. Currently I am trying to implement a very simple circuit that will return ...
1
vote
0answers
71 views

Openfermion to qiskit

Is there a direct way to go from an object generated in openfermion to objects usable in Qiskit. I can't find anything about any plugin. It's not too hard to translate into pyQuil and then to Qiskit ...
0
votes
1answer
54 views

More broken older Qiskit code

I am persuing some older code as below ...
0
votes
2answers
32 views

UCCSD in qiskit deprecated?

Is this now deprecated or moved? I've been looking for it. It was in from qiskit.chemistry.aqua_extensions.components.variational_forms import UCCSD
1
vote
0answers
95 views

IBM qiskit vs Microsoft QDK [closed]

I am new to both IBM Qiskit and Microsoft QDK. I wish to understand which framework would be best suited for someone new to this field. I am lookig for the pros and cons of both frameworks.
2
votes
1answer
131 views

How to make a Shor's algorithm for an arbitrary number of qubits with Qiskit on a IBM machine?

So suppose you want to do a Shor algorithm on an arbitrary number of qubits using an arbitrary $a$ (the base number in the periodic function $a^x \mod c$) and $c$ ( the factored number). Making the ...
1
vote
0answers
50 views

Grover's algorithm for 3SAT problem gives erroneous results

I'm writing a code in python with qiskit that implements Grover's algorithm to solve the 3-SAT problem, but when I run it it doesn't give the correct annswer. I've checked the circuit with the ...
1
vote
3answers
161 views

How to realize this quantum error correction circuit on real hardware?

I want to realize this error correction circuit. To do that, I created a circuit: However, I cannot execute on real hardware. How can I create a circuit to realize this correction on real hardware?
4
votes
1answer
86 views

Use Qiskit in other programming languages (C#, JavaScript and Lua)

I am exploring using Qiskit in other programming languages for game development, such as C# (for Unity game engine), JavaScript (Phaser.io) and Lua (LÖVE2D). Is there a general way to call Qiskit ...
1
vote
1answer
56 views

Is it possible to get the $\alpha$ and $\beta$ (amplitudes) of a qubit in Qiskit?

Is it possible to get the $\alpha$ and $\beta$ (amplitudes) of a qubit in Qiskit, i.e. not only probabilities after measurement but complete quantum state?
2
votes
1answer
104 views

max_cut in qiskit aqua

Happened on some code, which I was hoping would run out of the box. However fails on the import from qiskit.aqua.translators.ising import max_cut I've not been ...
3
votes
1answer
52 views

Is qiskit_backend_monitor magic function depricated?

I've upgraded qiskit for the first time in a while and I've discovered that the magic function for displaying backend information doesn't seem to work properly. Here's what I've tried running: <...
2
votes
0answers
57 views

Simulation for the [5,1,3] stabilizer code in Qiskit

Sorry that I keep asking questions for the same subject. It is driving me crazy. I have followed the [5,1,3] stabilizer code circuit designed by Gottesman in page 35 in his paper (also illustrated in ...
4
votes
2answers
100 views

How to implement the CCH gate in quantum computers available in clouds?

How to implement CCH gate in quantum computers available in clouds? If there is not any gate directly available for it, what are the possible ways to represent CCH?
2
votes
3answers
80 views

Pauli I in eoh procedure doesn't become a global phase gate in qiskit evolution_instruction method. Possible consequences

If one has two qubits in arbitrary stats and wishes to apply a controlled version of some global phase gate $P(\varphi) = \begin{pmatrix} e^{i\varphi} & 0 \\ 0 & e^{i\varphi} \end{pmatrix}$ ...
2
votes
2answers
143 views

Qubit measurement is followed by instructions. Error code: 7006 [duplicate]

Trying quantum teleportation in https://github.com/Qiskit/qiskit-textbook/blob/master/content/ch-algorithms/teleportation.ipynb Succesful runs in 'qasm_simulator', but when switching to IBMQBackend('...
1
vote
1answer
229 views

How to implement if statement based on measurement results in qiskit?

I tried to implement three qubit bit flip code in qiskit and need to get the result of measurements and then apply recovery quantum operations conditioned on the measurement results. The following is ...
3
votes
1answer
124 views

Qiskit in Julia language?

Is it possible to use Qiskit in Julia language? Or is there any wrapper that can be used to call the package from Julia language?
-3
votes
1answer
66 views

Help me understand this warning while running qiskit command IBMQ.load_account() [closed]

Getting this warning, help me understand this "C:\Users\XYZ\Anaconda3\lib\site-packages\qiskit\providers\models\backendconfiguration.py:337: UserWarning: dt and <...
0
votes
0answers
54 views

deliver a quantum register to/from a function in qiskit

Can I create a function in qiskit which receive a quantum register as an argument, and/or returns a quantum register? In the example below, I created a quantum register, and a quantum circuit which ...
0
votes
0answers
38 views

How to preprocess data to fit Qiskit QSVM

I want to start experimenting with quantum machine learning using Qiskit library, but I have come across an issue. All tutorials I have seen so far like this one import datasets using custom packages. ...
1
vote
1answer
167 views

Print data() with statevector and qasm simulator - Qiskit

I am new to Qiskit and I am trying to implement some very simple 1-qubit gates. I want to initialize the state of the qubit (to 0 and then to 1) and then apply the gate and print the new state of the ...
2
votes
1answer
134 views

Quantum Phase Estimation implementation

I tried implementing quantum phase estimation in qiskit, however, I'm not getting the expected results. I choose a controlled $U1$ gate. First of, I implemented inverse QFT operation (basically a ...
2
votes
1answer
136 views

How to plot histogram or Bloch sphere for multiple circuits?

I have tried to plot a histogram for the multiple circuits for the code given below. I think I have done it correctly but don't know why it's not working. Please help me out. If possible please solve ...
0
votes
1answer
68 views

How to use Qiskit visualization in Python IDLE 3.X (Python 3.X 64-bit)? [closed]

Why doesn't Qiskit visualization work on Python IDLE 3.X like circuits.draw(), plot_histogram() and ...
0
votes
1answer
155 views

run() got an unexpected keyword argument 'seed'

I am new in quantum computing. I was going through the user guide of IBM Q so I was just trying to run the python code they have provided at the end of this page enter link description here while ...
2
votes
1answer
83 views

How to use parallel executions of circuits?

I am trying to run multiple circuits in parallel using the documentation here. My codes are: ...

1
2
3 4 5
7