Questions tagged [qiskit-runtime]

Question about the Qiskit Runtime architecture that streamlines quantum computations. The service is designed to use classical compute resources to execute quantum circuits with more efficiency on quantum processors.

Qiskit Runtime is a different architecture for the use of Qiskit and the real IBM Quantum backends. It is a cloud-based computing, leveraging the concept of containerization.

The main idea is that instead of just launching a circuit, which would be just a little part of a bigger quantum algorithm, the user sends the entire program so that classical and quantum parts are all done in the IBM Cloud and the backends, "close" to each other, in order to have a more efficient computation.

Qiskit Runtime uses Qiskit Primitives to run the circuits and get back output that will be useful for the bigger quantum algorithm.

Useful links to know more about it :

120 questions
5
votes
2 answers

Getting combined counts when using qiskit_ibm_runtime.SamplerV2

Earlier it was very easy and straightforward to get counts for all classical registers using just one line of code: counts = backend.run(qc, shots=1000).result().get_counts() However, when I run such code on QPU I'm getting a warning that such call…
chm
  • 153
  • 3
5
votes
1 answer

How are quasiprobabilities calculated when sampling from a nonsimulated ibm backend

I've started playing around with IBM's quantum platform, I have a simple test circuit I've been working with from qiskit import QuantumCircuit from qiskit_ibm_runtime import QiskitRuntimeService, Session, Sampler service =…
Julien
  • 53
  • 3
5
votes
0 answers

How to get the compiled circuits and measurements from a Qiskit Runtime job

I have not been able to find any way to retrieve the compiled circuits and the measurement counts used for a Qiskit Runtime job. This page describes the various error suppression mechanisms available. The thing that I am wondering is how to go query…
Elijah Pelofske
  • 746
  • 4
  • 10
5
votes
0 answers

Add noise_model when using 'ibmq_qasm_simulator' backend and provider.runtime.run() function

I am trying to test some qiskit code that employs readout-error mitigation using the ibmq_qasm_simulator backend and Qiskit Runtime. I am getting the backend as follows: IBMQ.load_account() provider = IBMQ.get_provider(hub=...) backend =…
Ruth V.
  • 51
  • 1
4
votes
0 answers

Evaluating expectation values of operators using StateVector and MPS in Qiskit 1.0

Assume one has a QuantumCircuit object and a list of SparsePauliOp. How do I calculate their expectation values using the MPS simulator in Qiskit 1.0? I would like to perform a simple VQE-type measurement (not phase estimation or anything like that,…
mavzolej
  • 2,271
  • 9
  • 18
4
votes
0 answers

Quantum SVM Implementation Error on IBM Quantum Machine: ‘CircuitError: Name Conflict

I'm working on a project involving quantum support vector machines using the method from the Quantum Kernel Machine Learning Tutorial by the Qiskit community. While implementing the code on a real IBM quantum machine, I encountered CircuitError:…
4
votes
0 answers

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: qiskit_ibm_runtime.exceptions.RuntimeJobFailureError: 'Unable to retrieve job result. Failed to load program into HAL component' As…
4
votes
1 answer

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

Recently I was testing Python package on IBM Quantum Lab with Qiskit runtime programs. This package contain C++ and Eigen (C++ lib) dependencies. I don't have root permission so I cannot install it. How can I make it work on IBM platform or add it…
3
votes
3 answers

How to convert a combinatorial optimization problem into a problem hamiltonian

I want to ask how I can convert any combinatorial optimization problem into a Problem Hamiltonian, since such a conversion is needed in order to solve an optimization problem on quantum hardware (e.g. IBM's using Qiskit). Or is there any way where I…
3
votes
1 answer

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 this figure: The results are very consistent…
Guangliang
  • 237
  • 1
  • 7
3
votes
0 answers

Does qiskit make any rounding errors or anything similar, or is it a perfect (but slow) simulation of a quantum computer?

I ran the following circuit to calculate the real part of the Bargmann Invariant of a system of quantum states. The invariant is defined as Re[BI_m] = Re[ ] Circuit for m = 3 (The gates to the left of the dotted line for…
3
votes
1 answer

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

I have the following code to run an Estimator primitive by using Qiskit Runtime. It computes the expectation value $\langle O \rangle = \langle \psi | O | \psi \rangle$ (in this example $\langle 0 | Z | 0 \rangle = 1$ with zero variance): from…
SimoneGasperini
  • 1,634
  • 1
  • 3
  • 18
3
votes
1 answer

Noise model correspondence to qiskit implementation for $CNOT$ gate

My question especially relates to the CNOT because I'd like to carefully understand how Qiskit simulate a CNOT model. Specifically, from my understanding, two independent qubits are affected by a noise well modeled by i.i.d. pauli operators. This…
Daniele Cuomo
  • 2,068
  • 10
  • 25
3
votes
1 answer

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

Qiskit, I tried to estimate circuit runtime using gate_length from Backend.properties() but its accuracy is very low (real system is 3.5 seconds, estimation is 0.00002 seconds). So, are there other ways to estimate circuit runtime? I think this is…
3
votes
2 answers

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

I am currently doing some experiments using Variational Quantum Eigensolver in molecular dynamics using qiskit, and noticed that the time for execution on real backend is significantly higher than the simulated backend. I am aware that this is…
Vindem
  • 85
  • 6
1
2 3 4 5 6 7 8