Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
58 views

How to learn about quantum computing and qiskit

I am an undergraduate in Electrical engineering, I have taken one course on quantum mechanics but nothing related to quantum information or algorithms or quantum computing. I looked up some courses ...
Eve Kline's user avatar
1 vote
1 answer
30 views

E91-Protocole the type of Bell state use in this protocol

my question is, what is the type of the Bell state used in Ekert-91 link for Bell states in question correlated or anti-correlated. And if they can use both of them , how do Alice & Bob know ...
Badr Eddin's user avatar
1 vote
1 answer
38 views

IBM Quantum payload error

I've received the following error on one of the circuits I'm running on IBM Quantum devices (on IBM Brisbane) using EstimatorV2 primitive. ...
squareroottwo's user avatar
0 votes
1 answer
29 views

Plot_state_city question

qc = QuantumCircuit(2) qc.h(0) qc.x(1) qc.cx(0,1) state = Statevector(qc) plot_state_city(state, alpha=0.6) When this is graphed out, the following image is shown: ...
Ark Rana's user avatar
0 votes
2 answers
37 views

Customed quantum channel definition with Qiskit

According to this manual, the noise models can be implemente to a specific set of gates given by the user. However, is there a way to implement a noise source acting at a specified time, rather than ...
user2820579's user avatar
0 votes
1 answer
53 views

How to embed Qiskit into proprietary setting

We have our own custom processor and control electronics. We want to be able to use qiskit on our processor. Our hardware returns measurement IQ samples. We can generate samples from qiskit and run ...
office cabin's user avatar
-1 votes
1 answer
23 views

How to add command `noise_model = get_noise ( 0.05,0.05 )` to my simulator in qiskit

I'm using qiskit online, and want to run my simulator with the following command: noise_model = get_noise ( 0.05,0.05 ) However, where previously I could insert lines of code to affect my circuit, I ...
רואי בורלא's user avatar
2 votes
2 answers
47 views

Can save_statevector() be used on a real quantum computer?

In a real quantum computer, can the save_statevector function be used to obtain the state vector of a circuit? I attempted to run the following code on a real ...
MrEightL's user avatar
1 vote
1 answer
47 views

Is there an up-to-date programming reference for qiskit?

Every example of code for qiskit that I've seen has one or more commands that don't work out of the box. Even the way to verify that qiskit is installed from qiskit.org failed. I've managed to either ...
Robert Megee's user avatar
1 vote
0 answers
53 views

Matrix product state simulator gives incorrect result for more than 64 qubits

I am running the example to create the EPR circuit on a matrix product state simualtor from the qiskit documentation. The program does not work correctly if the number of qubits is more than 65. Here ...
bisarch's user avatar
  • 199
3 votes
0 answers
27 views

Gradient-free optimization in Qiskit without using pre-defined classes

Basically I want to build a gradient-free optimizer that classifies a very simple dataset (e.g. the sklearn make_moons) using scipy.optimize (Nelder-Mead or Powell ...
Kian's user avatar
  • 31
1 vote
1 answer
35 views

How to suppress long parameters list that appears in the initialize gate?

Below is a simplified code which I am using for a quantum circuit. ...
Shravan Patel's user avatar
0 votes
2 answers
41 views

Quantum Computing - via Qiskit - error 403

A year ago, I registered in the IBM Quantum Computing app, which provides access to quantum computers and to simulators. I got an API key, and was able to run some programs. However, lately, I try to ...
JDias's user avatar
  • 11
5 votes
2 answers
725 views

Are Quantum Computers Bad at Addition?

I recently built a dynamic full adder gate with Qiskit. The gate essentially copies the classical computing method for a full adder by emulating the classical gates e.g. AND == Toffoli (Quantum AND ...
Aidan's user avatar
  • 61
0 votes
0 answers
44 views

Calibrating qubits using Qiskit Pulse with Qiskit 1.0

I am trying to implement this notebook using the updated Qiskit 1.0. I have managed to update the code so that the job runs successfully on the IBM computer and I get the correct result. However, ...
rexyforbes00's user avatar
1 vote
0 answers
53 views

State tomography in Qiskit on a subset of qubits of real QPU

Could anyone please explain how should I carry out a state tomography on a real device in Qiskit (version 0.43.2)? I have access to devices with 127 qubits, but I want to perform a simulation using ...
Andrea's user avatar
  • 11
0 votes
1 answer
43 views

Density Matrix for a Quantum Circuit with Clifford Gates and a $T$ Gate in Qiskit

I am trying to analyze the impact of a single $T$ gate within a quantum circuit that primarily consists of Clifford gates. My goal is to understand the $T$ gate's role in $T$-design and Anti-...
Asim Sharma's user avatar
3 votes
0 answers
105 views

Failed - Internal Error when running on ibmq

I tried to apply a series of an inverse QFT on a single qubit depending on a previous measurement, but when a depth of a circuit became longer I encountered an internal error, ...
taketoshi kinoshita's user avatar
0 votes
0 answers
36 views

CircuitTooWideForTarget error when using Clifford simulator in Qiskit

I want to use the local Clifford AerSimulator with the Estimator primitive in Qiskit to calculate expectation values on Clifford circuits, but I am getting a CircuitTooWideForTarget error: ...
jth's user avatar
  • 368
2 votes
0 answers
57 views

Layout error with after compilation with custom Qiskit pass manager

I am trying to implement the custom Qiskit pass manager from this paper. The code from the authors is provided here on GitHub. I am able to get the pass manager working, and a compiled circuit is ...
greelious's user avatar
  • 121
2 votes
1 answer
68 views

What does Qiskit AerSimulator(memory=True) do?

I followed this Qiskit course through Deutsch's algorithm and all seems clear to me except the use of the optional parameter memory=true when making the call to <...
kipawaa's user avatar
  • 23
2 votes
1 answer
101 views

IBM fake backend vs real backend

It is claimed that the fake backends of IBM will have noise similar to the real backends. However, to what extent can we expect them to produce the same results? I have run my quantum circuit on the ...
Deren  Liu's user avatar
1 vote
1 answer
83 views

Is this quantum circuit design more prone to noise?

I am designing a quantum circuit which uses one qubit as the control of many $\text{CSWAP}$ operations. And then, this qubit will be measured. Will the result be more prone to noise since all the ...
Deren  Liu's user avatar
2 votes
1 answer
117 views

Where to find the Grover's algorithm for Qiskit 1.0.2?

Can anyone please provide me with the latest version of qiskit 1.0.2 Grover's algorithm, as the earlier version is throwing an error.
Ayush Agarwal's user avatar
1 vote
1 answer
56 views

Simulating Large Quantum Systems with Single T-Gate in Qiskit: Memory Error Beyond Certain Qubit Threshold

I'm currently conducting experiments on unitary t-designs, utilizing random Clifford and T gates within the Qiskit framework. My goal is to simulate quantum circuits that involve the application of a ...
Asim Sharma's user avatar
1 vote
0 answers
30 views

VQLS behaves badly under simulation with noise

I was studying VQLS in https://qiskit.org/textbook/ch-paper-implementations/vqls.html and since I could not understand the circuit created by the new Hadamard test (...
MrEightL's user avatar
3 votes
1 answer
351 views

Why do the same circult yields very different results from different IBM backends?

I was running the IBM qiskit sample code and noticed that the results vary on different backends. I thought it was quantum noise, so I repeated the same calculation on many different backends and got ...
Guangliang's user avatar
4 votes
0 answers
54 views

Failed to load program into HAL component

I'm getting this error message when I execute my qiskit code on one of the available quantum computers of IBM: ...
Pablo Falegre's user avatar
0 votes
1 answer
92 views

Full result of qiskit sampler

In Qiskit, I have a quantum circuit of 20 qubits. Hence the measurement result I am expecting is a dictionary of size 2^20. However, the quasi_dists from ...
Deren  Liu's user avatar
1 vote
0 answers
58 views

Two-level unitary gates are decomposed into single-qubit gates and CNOT gates

I am currently studying the following from the book 'QUANTUM COMPUTING: From Linear Algebra to - Mikio Nakahara' and trying to apply it to Qiskit. But there is one point that I don't quite understand....
junghyunHa's user avatar
1 vote
2 answers
64 views

How to generate the Bell state $\frac{1}{\sqrt{2}}(|01\rangle+|10\rangle)$ from the state $|00\rangle$ using Qiskit?

I want to generate the Bell state $(|01\rangle+|10\rangle)/\sqrt{2}$ from the state $|00\rangle$ in qiskit, applying the Hadamard gate followed by the $\text{CNOT}$ gate. But it generates $(|11\rangle-...
Xilot Xilot's user avatar
0 votes
0 answers
18 views

How to run pegasosQSVC in backend using qiskit ibm runtime session?

I am trying to run pegasosQSVC on quantum backend using a qiskit-ibm-runtime session, following is the code I am using : ...
khalil mehdi's user avatar
1 vote
0 answers
27 views

How to combine a VQE circuit with normal qiskit quantum circuit without parameters and give the measured set of qubits to the estimator?

I want to use a parameterized quantum-circuit which is $\text{CNOT}$ with another quantum-circuit that has no parameters, then after a series of gates on the second quantum-circuit, I want to measure ...
Syed Shahmir Kazmi's user avatar
0 votes
2 answers
76 views

How can I get the state of my quantum circuit like save_statevector() in qiskit 1.0.2?

Just as the title, I want to get the state of my quantum circuit when running simulation locally with fake provider. But I cannot use save_statevector since Aer has been removed from qiskit. My code ...
MrEightL's user avatar
2 votes
2 answers
74 views

How to create a qudit of any dimension $d$ in qiskit?

How to create qudit, not qubit (which is a special case of qudit with $d = 2$) in qiskit of any dimension $d$? Actually, I searched this on chatgpt, but not-so-helpful info was found. It just uses ...
sudhanshu's user avatar
0 votes
1 answer
58 views

How to get properties of real IBM Quantum Computer in Qiskit SDK 1.0?

I have the code below: ...
Naeem Ullah's user avatar
0 votes
2 answers
251 views

What goes above this code fragment?

I have given this circuit: The question goes as follows: What is a code of the above circuit if the barrier is removed? Now I have a code fragment, which is this: ...
Ark Rana's user avatar
1 vote
1 answer
27 views

How to run PegasosQSVC in quantum backend or simulator?

I am making my classification project in quantum machine learning, currently trying to run PegasosQSVC in backend! The code runs normally in my environment however when I connect to backend using <...
khalil mehdi's user avatar
0 votes
0 answers
30 views

Which kind of software architecture pattern is used for quantum software design?

I'm interested in developing quantum software and am curious about the architectural patterns commonly employed in this domain. In classical software design, we have patterns like publisher-subscriber,...
shamima's user avatar
2 votes
2 answers
108 views

How to create custom fake backend?

Right now I'm trying to figure out how to create custom fake backends using qiskit with data we are retrieving from our real backends in the laboratory. As I understand, the best way to create one is ...
Ikaryssik's user avatar
1 vote
1 answer
40 views

Use quantum feauture map different from ZZFeatureMap

I'm following this tutorial to try and implement a QSVC on the Iris dataset. The tutorial uses ZZFeatureMap to create the kernel with ...
ZFC's user avatar
  • 11
1 vote
0 answers
42 views

Trouble in Depolarizing Error Simulation with Qiskit

I'm currently attempting to simulate depolarizing errors using Qiskit, but I'm encountering an issue where it appears that no errors are being introduced into my simulation. After running the ...
Byeongyong Park's user avatar
1 vote
1 answer
113 views

How do I get the unitary matrix of a circuit?

I'm studying on this textbook but the library has changed meanwhile and running those instructions on my IBM quantum learning notebook will result in errors. What's the current way to draw the unitary ...
Antonio's user avatar
  • 13
1 vote
1 answer
186 views

Quantum Circuit evaluation Qiskit vs. AWS Braket SDK

I am examining a simple circuit using both Qiskit and the AWS Braket SDK (Python). The circuit is very simple. ...
badgerduke's user avatar
1 vote
0 answers
40 views

How to run the post processing and return results in QAOA?

As suggested in TranspilerError: 'Number of qubits (40) in QAOA is greater than maximum (30) in the coupling_map' issue. I managed to submit the job to IBM quantum and the circuit runs successfully. ...
Lasal Hettiarachchi's user avatar
0 votes
1 answer
132 views

Hello world program in Qiskit 1.0 [closed]

How do I write a "Hello world" program in Qiskit 1.0, which should be run on IBM cloud and require less than 600 seconds for implementation?
Ausaf Hussain Akhlaq's user avatar
0 votes
1 answer
51 views

QiskitBackendNotFoundError - Unable to run the backend using BackendEstimator primitive

I am trying to run a small quantum circuit and generate the expectation value of an observable using the BackendEstimator primitive by incorporating the noise model ...
Pamul Yadav's user avatar
1 vote
2 answers
137 views

Using GPUs with Statevector Simulator in Qiskit 1.0

I'm trying to use the AerStatevector method with GPUs. I know that GPUs on my server are correctly configured, and indeed, if I use ...
Roberto Schiattarella's user avatar
1 vote
0 answers
37 views

Low Fidelity In IBM Quantum Computers

I am just trying to calculate the highest fidelity of preparing GHZ states on IBM quantum computers and I run my circuit on qubits with the lowest readout error. However, I just obtain fidelity of the ...
physicino's user avatar
  • 111
1 vote
1 answer
80 views

What is wrong with my quantum grover's algorithm?

I am trying to create Grover's algorithm in quantum programming with Qiskit to find the target binary string 010. This is my process : Apply a Hadamard gate to 4 ...
Royal Mail's user avatar

1
2
3 4 5
48