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
1 answer
25 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
24 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
1 answer
680 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
28 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
49 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
1 vote
0 answers
29 views

Install error in Google Colab [migrated]

The following is my code: ...
salcedo's user avatar
  • 13
0 votes
1 answer
36 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
33 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
28 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: ...
T.H's user avatar
  • 196
2 votes
0 answers
46 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
51 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
0 answers
42 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
0 answers
41 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
98 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
51 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
26 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
331 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
2 votes
0 answers
36 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
45 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
54 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
56 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
17 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
24 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
48 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
57 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
44 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
1 vote
2 answers
247 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
22 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
62 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
37 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
29 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
70 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
176 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
31 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
98 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
40 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
92 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
34 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
75 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 vote
1 answer
30 views

Error while plotting the resulting distribution

I am using this code, as a test of my qiskit, but I am having errors on using the simulator Building the circuit We begin by importing Qiskit. from qiskit import * ...
Dilma David's user avatar
2 votes
2 answers
253 views

TranspilerError: 'Number of qubits (40) in QAOA is greater than maximum (30) in the coupling_map'

Hi Ive been trying to solve a custom PO problem using QAOA and I ran into this particular error. As per my understanding,this is due to the limitation of the simulation hardware. But as per the ...
Lasal Hettiarachchi's user avatar
1 vote
1 answer
23 views

Set Initial Layout for State Tomography

I am trying to do some state tomography to generate GHZ states and calculate fidelity. For running the code, I want to execute my code with the qubits with the lowest readout error using initial ...
physicino's user avatar
  • 111
1 vote
0 answers
17 views

How to model the IBM quantum errors?

I'm conducting a study of the quantum channel errors, and a question has arisen: Is it possible to model the errors of an IBM quantum computer with Kraus operators?
Leandro Matheus Morais da Silv's user avatar
1 vote
0 answers
22 views

Quantum code for Substitution Box

How to write quantum code(qiskit) for n-bit Substitution Box with minimum number of gate and qubit.
Ausaf Hussain Akhlaq's user avatar
1 vote
0 answers
13 views

Identifying the type of errors occurring in Qiskit hardware

I want to identify the type of errors (for example, bit-flip error) occurring in specific hardware of Qiskit, for example, 'ibm_cairo'. But on the Qiskit website, I could only check the error rate ...
gerald ianderiv's user avatar
0 votes
1 answer
48 views

Increase execution speed of qiskit based python code for qasm_simulator

When you run a qiskit based code on HPC system, do it really matters how many cores you are using? I am running a VQE based code on HPC system on ...
Manu's user avatar
  • 483
0 votes
1 answer
43 views

Using Noise Model of a real hardware on qiskit simulators

I am trying to understand how to use the noise model of real hardware. Below is the part of the code I have written with the help of sample codes from these links: qiskit.github.io/qiskit-aer/apidocs/...
Manu's user avatar
  • 483
1 vote
1 answer
24 views

vqe.compute_minimum_eigenvalue API of qiskit produces different eigenstate results for statevector_simulator ands qasm_simulator

I am trying to understand the usage of vqe.compute_minimum_eigenvalue API of qiskit for the statevector_simulator and qasm_simulator. I am only interested in the <...
Manu's user avatar
  • 483
1 vote
1 answer
70 views

How can I Combine Qiskit's VQE Tutorial and TSP Simulator to solve the TSP on a real backend efficiently?

I have a university project where I am trying to solve the Traveling Salesman Problem by using a real quantum backend, rather than just the VQE simulator, as in this tutorial. I found this code on ...
Aidan's user avatar
  • 61

1
2 3 4 5
47