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,763
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,463
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
  • 37.1k
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,597
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

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

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
1 vote

Equivalent method to `get_counts()` for `Aer_simulator`?

If you are making use of Sampler and want the same result as the get_counts one, the ...
Yet another Random Guy's user avatar
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
  • 452
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,763
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,763
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
1 vote
Accepted

Why Qiskit's circuit denotes the top bit as the least significant bit?

This is related to 'endianess'. In Big Endian, the big end is stored first. IBM system like the Power architecture usually prefer this style. If, for example, you have a hex value 0x1234, on a big ...
rhundt's user avatar
  • 998
1 vote
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
1 vote
Accepted

Qiskit best programming practices - how to speed up qiskit code?

In order to speed up the response time of real IBM chips you have several options. First, you can try to reduce the queue time by choosing to execute your algorithm on a chip that is not busy, i.e. ...
Adrien Suau's user avatar
  • 4,947
1 vote

What do the 'resilience_level's in qiskit-runtime's primitives mean?

See Qiskit page for the full details on resilience_level and optimization_level. Setting ...
Elijah Pelofske's user avatar
1 vote
Accepted

What do the 'resilience_level's in qiskit-runtime's primitives mean?

Yes, setting resilience_level to a specific value enables the corresponding Error Mitigation (EM) technique only. In particular, as written in the documentation: <...
SimoneGasperini's user avatar
1 vote

How to use local transpilation with ibmq primitives?

The problem here should be in how your are creating your SparsePauliOp observable: if you want to measure the expectation value of $Z_0Z_1$ (non-idle qubits of the ...
SimoneGasperini's user avatar
1 vote
Accepted

Number of qubits does not match the number of qubits of the observable

The way you're using SparsePauliOp.from_list is wrong since it doesn't specify that there are $5$ qubits in your circuit. Instead, you should use it like this: <...
Giorgos Giapitzakis's user avatar

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