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. Please include the version of Qiskit you use when using this tag.

2297 questions
7
votes
2 answers

Which qiskit backend is faster in execution of the quantum circuit prepared?

I have a quantum circuit of 40 qubits with mutliple gate operations being applied to many of the qubits. Currently I am using qasm simulator which for shots=1 took 10 hour of time. Is there any other backend which can execute my circuit faster or is…
5
votes
1 answer

How do we discard or delete or reuse 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 other two qubit? Or rather how do I plot state…
5
votes
1 answer

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 explain how to do this. I would like to use one of the…
user1936752
  • 2,859
  • 1
  • 8
  • 20
5
votes
4 answers

AttributeError: 'AerJob' object has no attribute 'get_counts'

result = execute(circuit, backend=simulator) plot_histogram(result.get_counts(circuit)) I used the above code to plot a histogram for a simple entanglement circuit. I got the error mentioned below. I am running the code in Google…
Rishwi binnu
  • 163
  • 1
  • 10
4
votes
1 answer

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 class and methods from other programming languages?…
Junye Huang
  • 662
  • 6
  • 16
4
votes
0 answers

The error with Estimator primitive due to the qiskit version

The code that I follow is from this tutorial. But there are some errors due to the version of qiskit on the Estimator primitive from qiskit.primitives import Estimator estimator = Estimator([qc], [H]) e_result = estimator([qc], [H],…
4
votes
1 answer

Qiskit Runtime: What are the units of job.result().time_taken? Seconds, milli-seconds, micro-seconds?

job = execute(qwalk_circuit, backend='ibmq_16_melbourne', shots=1000) results = job.result() time = job.result().time_taken What are the units of time? And where is this stated in the documentation? Thanks!
4
votes
2 answers

AttributeError: 'QuantumCircuit' object has no attribute 'save_statevector'

Hi i know the question was already asked but my case is slightly different. I am trying to do the qiskit tutorial: from qiskit import QuantumCircuit, assemble, Aer from qiskit.visualization import plot_histogram, plot_bloch_vector from math import…
user21064
  • 43
  • 4
4
votes
0 answers

Predator–prey theory

We have a project where we are supposed to simulate the predator–prey theory in qiskit. Can anyone help or suggest of any ways to start from somewhere because we are kinda lost.
thanos ks
  • 41
  • 1
4
votes
1 answer

How does a qubit reset affect the probabilities of the other qubits in Qiskit?

I'm looking at a 2 qubit system, with a reset on the second qubit (qubit=1). I would have expect that circ.reset(qubit=1) is equal to state.probabilities(qargs=[0]). But that's not the case. For example a maximally pure state: qc =…
Andreas Burger
  • 301
  • 1
  • 11
4
votes
1 answer

Qiskit pulse-level simulation

I am looking to investigate qubits' response to pulses - the kind the hardware will actually create when gates are implemented. Although there are many simulation capabilities in Qiskit, most of them simulate abstract gate implementations Are there…
psitae
  • 1,340
  • 7
  • 24
4
votes
1 answer

unsymmetric observable estimation by Qiskit

Assume $|i\rangle,i\in[1,m]$ is a set of states, like the Fock states for Fermions. The question is how to compute the quantity,$\langle i |H|j\rangle,i,j\in[1,m]$, in qiskit. The $H$ here is the qubit form Hamiltonian of some molecule obtained by…
ironmanaudi
  • 759
  • 3
  • 9
3
votes
1 answer

Is qiskit_backend_monitor magic function deprecated?

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: from qiskit.tools.jupyter import * backend =…
Mav
  • 83
  • 4
3
votes
1 answer

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?
Xihao Li
  • 31
  • 2
3
votes
1 answer

Draw "Initialize" circuit as sequence of single gates

I have just tried to apply initialize function to a simple circuit. There is any way to display how is done internally the initialization circuit instead of a single block with label "initialize"? Here is the output of the minimal working example…
riccameng
  • 33
  • 3
1
2 3
12 13