Questions tagged [qiskit]

Qiskit is an open source SDK for working with quantum computers at the level of pulses, circuits and application modules. If appropriate, also use the [programming] tag.

Filter by
Sorted by
Tagged with
2
votes
3answers
183 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
352 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('...
4
votes
1answer
2k 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
458 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
90 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 <...
1
vote
0answers
110 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 ...
1
vote
1answer
590 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
271 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 ...
3
votes
1answer
432 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
197 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
508 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
494 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
vote
1answer
493 views

AttributeError: 'Result' object has no attribute 'get_data'

Below is the code that I am trying to execute on Google Colab using Qiskit. I'll also paste the error that I am getting. Code ...
1
vote
0answers
240 views

A question about qiskit's WeightedPauliOperator.evolve method for IPEA (IQPE) implementation

I'm doing an implementation/tutorial of the iterative phase estimation algorithm (IPEA) and have a problem. My Hamiltonian is a diagonal matrix $H = \begin{pmatrix} E_1 & 0 \\ 0 & E_2\end{...
1
vote
0answers
66 views

Number of columns mismatch in Qiskit

So I have the following code qgan = QGAN(real_data, bounds, num_qubits, batch_size, num_epochs, snapshot_dir=None) with num qubits being defined as ...
3
votes
2answers
148 views

Why can different technology transpile the quantum gate to different representations?

I saw that qiskit was just incorporated in a trapped ion device. I transpiled my circuit to 2 backends: ibm superconducting device and aqt trapped ion device. I noticed that for ibm, the $X$ gate is ...
0
votes
1answer
116 views

QISKit Connection

I ve beeen trying to use the qiskit package from spyder IDE inisde anaconda (Python version 3.7) but when i try to acces my account I get the following error: ...
2
votes
1answer
173 views

Why is there only one line for the classical register?

So I am wondering why this "Quantum Teleportation Algorithm" from Qiskit - Programming on Quantum Computers Ep 5 is represented differently when I draw it (on the left in the image above) compared to ...
1
vote
1answer
203 views

IBM Q experience - error code 520

I have been running a variational circuit optimizing the parameters on the "melbourne" device. The system launches multiple jobs in parallel, and only gets the jobs accepted that my credit allows. The ...
5
votes
1answer
777 views

What does the error rate on the IBMQ website mean?

How is the error rate pointed by the arrow defined? How did you get it? thanks!
3
votes
1answer
678 views

Quantum random number generator

Can we generate quantum random numbers through Qiskit? I want to try the random number generator without using optics or noise.
2
votes
0answers
65 views

OpenPulse: Where to get current pulse definitions for standard gates?

Is backend.defaults().cmd_def and backend.defaults().pulse_library kept updated regularly? Is this the correct place to pull the best calibrated pulses for the standard gates? I am working on a ...
5
votes
1answer
543 views

Getting a layout for qubits in Qiskit

I'm trying to use Qiskit's built in transpiler passes to do the following. I would like to take a quantum circuit and allocate the logical qubits to physical qubits. The tutorial doesn't really ...
2
votes
1answer
432 views

How to specify the CNOT gate direction (control qubit to target qubit) in Qiskit?

If I act a CNOT gate on quantum circuit: from qiskit import QuantumCircuit qc = QuantumCircuit(2, 2) qc.cx(0, 1) it means that qubit_0 is the control qubit, and ...
4
votes
2answers
605 views

Is there a way to output a circuit from Qiskit to the IBM Q Experience circuit composer?

I can't seem to find anything, but this seems like something that should be possible.
3
votes
0answers
129 views

How does batching work in the optimizer loop of the VQC algorithm in Qiskit Aqua?

I've playing around with a binary classification problem with a dataset of size 1000 examples and 5 features. I'm using the VQC algorithm from the Qiskit package the that uses a feature map and a ...
1
vote
0answers
149 views

Ripple Adder using Full Adder [closed]

I have been trying to implement a ripple carry adder using qsikit in IBM Q Experience. I was able to implement full carry adder but I am having trouble with ripple carry adder. I am able to add 100 + ...
5
votes
1answer
553 views

Understanding quantum teleportation algorithm from qiskit tutorials

I am very new to quantum computing and I have recently started to experiment with qiskit module in python, by following tutorials and implementing simple algorithms....
1
vote
1answer
529 views

Can't access IBMQ (NameError: name 'IBMQ' is not defined)

When I type this: IBMQ.load_account(), I am getting this error. What does this mean, and how can I rectify it? ...
2
votes
1answer
223 views

Couldn't connect to IBMQ server

When I access IBM Q backend with qiskit code, an error occurs. from qiskit import IBMQ qt = 'xxxxxxxxx' IBMQ.save_account(qt) IBMQ.load_accounts() The error ...
3
votes
2answers
1k views

Qiskit installation failing: VC++ 2017 not found

I tried to follow the web instructions to load Qiskit, including VC++ 2017 Redistributable, but I get many errors upon installation. The gist seems to be that VC++ 2017 wasn't found. Some results ...
0
votes
1answer
82 views

How can I implement a kraus_error in qiskit?

I have successfully run bit_flip_error in Qiskit by function pauli_error, but I can not find how to implement a ...
0
votes
0answers
60 views

What is the URL of the result?

This answer states that: Once it is submitted, your job will be in queue. You will have to request by GET this job ID to get the answer from the backend. The GET URL is: https://quantumexperience....
4
votes
1answer
629 views

How good is basic_device_noise_model() simulating the noise in the quantum computer?

Is there any paper or article about the performance of the noise model using basic_device_noise_model()? For example, like the noise model in the code below. ...
1
vote
0answers
84 views

Exponentiating Hermitian Matrix for use in QPE/HHL

I am currently trying to understand HHL by implementing a very inefficient Qiskit simulation script that performs HHL on an arbitrary hermitian matrix $A$ and a vector $b$. Because I am currently ...
6
votes
2answers
633 views

How to draw Qiskit's HHL algorithm as a circuit?

Qiskit Aqua has a module that implements the HHL algorithm: https://qiskit.org/documentation/_modules/qiskit/aqua/algorithms/single_sample/hhl/hhl.html How does one draw the implemented circuit? * ...
4
votes
1answer
101 views

Vary parameter between shots

Is it possible to tell Qiskit to execute a parameterized gate where the parameter varies between shots? Let's say, for whatever reason, I'd like to speed up the dephasing of a qubit during a run. I ...
7
votes
3answers
458 views

Why is the order reversed on measurement?

Why is the order reversed on measurement? ...
1
vote
1answer
106 views

qiskit - Creating your own ExperimentResultData object

Could someone guide me on how to create my own qiskit.result.models.ExperimentResultData object? I would simply like to create an object with some self-created dict ...
1
vote
1answer
97 views

Strange circuit with multi-qubit 'unitary' gates after transpiler with optimization level 3

Recently, I used the transpile() function with the level 3 preset pass manager to compile a very long and complex circuit on a real device coupling map. I was curious to see how much the depth of the ...
4
votes
2answers
1k views

How to decompose this two-qubit unitary matrix to the standard gate set?

I have read some of the other decomposition questions here however still don't understand how to do it manually. The matrix I wish to decompose is the following for 2 qubits: $M=\frac{1}{\sqrt2}\...
3
votes
2answers
530 views

In Grover, how to implement oracle and amplification using Qiskit?

I found some examples of implementing the oracle when the marked state is $|000\rangle$. But how can we know what gate we should use inside of the oracle? Besides, for the part implementation, the ...
2
votes
1answer
175 views

ImportError: cannot import name 'matplotlib_circuit_drawer'

...
1
vote
1answer
156 views

How does one get the attributes of a circuit from its DAG in qiskit?

I have the following code, which runs properly. ...
-1
votes
1answer
1k views

Problem in installing Qiskit

When I try to install Qiskit using Pip install Qiskit I get the error as shown in the attached snapshot. Any help will be highly appreciated.
3
votes
1answer
596 views

Quantum pricing of financial derivatives (call option) in Qiskit Aqua

In finance, a European call gives the buyer the right to buy some underlying asset such as a stock at some pre-determined strike price at a specific expiration date. The Black-Scholes equation is a ...
-1
votes
2answers
176 views

How do you pass input to a circuit? [closed]

I've implemented Grover's search algorithm in qiskit, and I'd like to pass in an input to run through the circuit. How is that done?
1
vote
1answer
109 views

Trying to make irreversable operation in the quantum circuit

I want to make a 2 qubit circuit such that the non-unitary program will transform the regular basis in the way that: $|0 0\rangle \to |00\rangle$ $|0 1\rangle \to |01\rangle$ $|10\rangle \to |01\...
0
votes
1answer
55 views

What is the time zone for the time returned by backend.properties()?

For example, backend.properties() returns following: ...
1
vote
2answers
452 views

How do I find out which stable Python version Qiskit will be compatible to?

Recently I've got a new machine and had to start over again (Qiskit installation). As this was not my first time in creating a Qiskit environment on Anaconda, I was able to work out the errors. ...

1
17 18
19
20 21
23