Skip to main content
7 votes
Accepted

Is it possible to use fake backends to run Qiskit Runtime primitives?

Using primitives with fake backends You can use BackendEstimator to work with fake backends. As primitives implementation, ...
Egretta.Thula's user avatar
5 votes

How can I run Qiskit runtime program with Python package with C++ dependencies?

thanks for the bug report! I am the developer of libs_qrem. In the previous version, you have to install Eigen in advance, which may require root permission. Now I added the Eigen library as a ...
Bo Yang's user avatar
  • 51
4 votes

Qiskit Runtime forbids reset gate?

Indeed, the problem is that initialize introduces a reset (see docs). ...
luciano's user avatar
  • 5,813
4 votes
Accepted

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

The problem is caused by a different type of noise each QPU suffers from. Nowadays, it is even not easy to produce two completely same qubits, not to mention two identical QPUs. Please, have a look at ...
Martin Vesely's user avatar
3 votes
Accepted

Is there a way to perform Zero Noise Extrapolation with qiskit without using the runtime service?

qiskit.primitives Estimator is a reference statevector based implementation. It has no noise (other than it can simulate variance for shot/sampling noise) so it has no such capability. There is an ...
Steve Wood's user avatar
  • 1,488
3 votes
Accepted

How are quasiprobabilities calculated when sampling from a nonsimulated ibm backend

This is indeed due to error mitigation and occurs by default when using the Sampler backend as opposed to the Estimator backend (regardless that both are run on real devices). If you read the page on ...
Quantum Mechanic's user avatar
3 votes
Accepted

Qiskit primitives with commuting observables

As mentioned in the answer linked above, there are different Estimator implementations from different providers. The implementations of the Aer Estimator and Qiskit Estimator and BackendEstimator are ...
ElenaPT's user avatar
  • 76
3 votes
Accepted

Noise model correspondence to qiskit implementation for $CNOT$ gate

Reading the documentation for depolarizing_error, they are not the same. Under two-qubit depolarizing noise the $X \otimes X$ error case is as likely as the $X \...
Craig Gidney's user avatar
  • 38.8k
3 votes

How to estimate Qiskit circuit runtime before sending to run on IBM real quantum device?

You can try to use Qiskit pulse, see: https://qiskit.org/textbook/ch-quantum-hardware/calibrating-qubits-pulse.html#4.2-Measuring-$T_2$-using-Hahn-Echoes- Based on https://quantumcomputing....
poig's user avatar
  • 632
3 votes
Accepted

How to access a qiskit runtime job and query time_taken?

First of all, I just have a question : since your job is already stocked in the variable job when you call ...
Lena's user avatar
  • 2,607
2 votes

How to run qiskit circuit in the cloud - qiskit runtime

Qiskit Runtime Sampler returns an instance of SamplerResult. You can use its quasi_dists ...
Egretta.Thula's user avatar
2 votes
Accepted

How can I retrieve Qiskit Runtime jobs that I have submitted to IBM Quantum?

You can see the list of Qiskit Runtime jobs under Program jobs tab in the Jobs page on IBM Quantum platform. From there you can ...
Junye Huang's user avatar
2 votes
Accepted

Does qiskit perform linear algebra for each shot?

You can certainly ask Qiskit to return you a statevector, a $2^n$ length vector giving the probability of each result. You can then get the samples yourself. I wrote this helper function once. ...
Frank Yellin's user avatar
2 votes
Accepted

I can't load account on IBM's qiskit

I suggest to install the latest version of qiskit and follow the documentation you can find here, about the class IBMProvider: https://github.com/Qiskit/qiskit-ibm-provider Here is an example program: ...
Michele Amoretti's user avatar
2 votes

TranspileError occurs when using Simulator Stabilizer

In seems like a problem related with the supported instruction set on that specific backend. Probably a bug, because the list should cover your circuit instructions. A possible workaround is to ...
luciano's user avatar
  • 5,813
2 votes

How to access the register name and its index from Qubits in Qiskit SDK 1.0?

To see everything that can be accessed in the Qubit class, look at the directory dir. From the directory, we see that the ...
Nick Mertes's user avatar
2 votes

How to access the register name and its index from Qubits in Qiskit SDK 1.0?

To get the location(s) of a qubit in the circuit you can use QuantumCircuit's find_bit method as follows: ...
Egretta.Thula's user avatar
2 votes

Set IBMQ to qiskit-ibm-runtime

tl;dr: Most of your questions will likely be answered here https://cloud.ibm.com/docs/quantum-computing?topic=quantum-computing-get-started If you are using IBM Cloud, you will have to first create a ...
Ezequiel Rodriguez Chiacchio's user avatar
2 votes

Error while plotting the resulting distribution

Although the function runs correctly, some functionalities of qiskit have been deprecated, which might've been causing this error. Do this instead for your code: Basic Imports Make sure you have the ...
Yet another Random Guy's user avatar
2 votes

Error while plotting the resulting distribution

Once you have the .qasm, you can also upload it to the Classiq platform https://platform.classiq.io/circuit, and then run it on a simulator. Here's how to do this step by step: Step 1: Create and save ...
Amir Naveh's user avatar
2 votes

Hello world program in Qiskit 1.0

I am not pretty sure about"Hello World" program as you stated. However, if you want to run a simple circuit on one of the backends that requires minimum time to be executed, then you can ...
physicino's user avatar
  • 111
2 votes

How to convert a combinatorial optimization problem into a problem hamiltonian

This video tutorial is a very good starting point to the subject. Then you can go through the paper "Ising formulations of many NP problems" by Lucas for more advanced mappings.
Egretta.Thula's user avatar
2 votes

qiskit_aer.aererror.AerError: 'unknown instruction: ccry'

This is because the Aer simulator does not directly support certain custom or advanced instructions. Make sure to transpile your circuit before running it. ...
ozark's user avatar
  • 31
2 votes

Error 400 on Variation Quantum Algorithm

This may be due to the changes that IBM made to sessions on 29 April: https://docs.quantum.ibm.com/announcements/product-updates/2024-04-22-session-changes The Open Plan will execute in job mode with ...
Bart's user avatar
  • 121
1 vote
Accepted

Passing a book-keeping parameter to Qiskit Ibm Runtime Estimator

One option to achieve this is to use job_tags. Just pass tags to Estimator.run() method ...
Egretta.Thula's user avatar
1 vote

Is there a way to perform Zero Noise Extrapolation with qiskit without using the runtime service?

There are several other ways to implement ZNE besides directly using Qiskit Runtime - there are various libraries and functions that allow you to program ZNE more directly. I recommend Mitiq - this ...
Elijah Pelofske's user avatar
1 vote

How can I get real hardware resources for IBM Quantum locally?

I think I understand what you are wanting to do and I hope this helps, but I'm not familiar with the particular code you have used above so perhaps I will miss the mark... From my understanding it ...
PGibbon's user avatar
  • 472
1 vote
Accepted

How to work with SwitchCaseOp?

The example in https://qiskit.org/documentation/apidoc/qasm3.html explains how switch works: ...
luciano's user avatar
  • 5,813
1 vote

How do I find out which packages of qiskit are compatible with eachother?

Not sure if I understand the problem you are having. Here some random ideas: You can find the release notes for qiskit-ibm-runtime here and for ...
luciano's user avatar
  • 5,813
1 vote

How do I find out which packages of qiskit are compatible with eachother?

If you know where to find the repositories in GitHub you can look at the associated requirement files. So for qiskit-ibm-runtime you can look at https://github.com/Qiskit/qiskit-ibm-runtime/blob/main/...
ChristianM's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible