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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

Qiskit primitives with commuting observables

Is there a way of bundling commuting observables in qiskit primitive estimator to save the number of shots? With the new feature of Qiskit primitives, it is easy to sample observables for a specific ...
Zeeshan ahmed's user avatar
1 vote
0 answers
14 views

an issue with the execution time of a VQC classifier on an IBM quantum machine

I tried to use the available open-source IBM quantum machines. I’m trying to do a classification using the VQC classifier to classify data, but I encountered a problem. The VQC keeps fitting on the ...
lynda lebdjiri's user avatar
2 votes
0 answers
34 views

Quantum circuit runtime

I want to estimate the execution time of some experiments, and I would be interested to know how the time needed to run a quantum circuit grows in function of the number of qubits and the parametric ...
barrieta's user avatar
1 vote
0 answers
23 views

Estimate execution time of a qiskit circuit?

I want to estimate the time a circuit written in qiskit would take if it were to run on a real quantum computer. I am really scared of writing something that is too slow and IBM then draining my bank ...
Isak Reinholdsson's user avatar
0 votes
1 answer
37 views

what's the time complexity of the number of shots in simulator of qiskit

One question, codes as follows: backend = Aer.get_backend('qasm_simulator') counts = execute(qc, backend=backend, shots=102400).result().get_counts() when my ...
qin guang's user avatar
0 votes
1 answer
60 views

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

When I try to connect to ibm real quantum hardware locally, from qiskit_ibm_runtime import QiskitRuntimeService service = QiskitRuntimeService() I got the ...
Mistico013's user avatar
2 votes
1 answer
61 views

Does qiskit perform linear algebra for each shot?

If the noise of the hardware is not considered, and measurements are performed at the end of the circuit, can the final state be obtained by performing linear algebra only once? And then, Monte Carlo ...
Saul_better's user avatar
1 vote
0 answers
27 views

IBMQ job was not run immediately after it was sent during my reservation [closed]

I got a problem when I sent a job during my reservation on ibmq_guadalupe. My job was in queue position 1 for almost 11 hours. Why was the job not run immediately after it was sent? Is there any ...
afundy hayeeteh's user avatar
1 vote
0 answers
22 views

qiskit bind to parameter fails to detect value is real [closed]

I have a complex QuantumCircuit with some parameters, and I use .bind_parameter({param: value, ....}) to evaluate the parameters to some value. I worked fine for a ...
Lord Nexprex's user avatar
0 votes
0 answers
42 views

HHL Algorithm for Classical Syndrome Decoding

Classical Syndrome decoding involves finding the e vector for the given syndrome s and Parity Check matrix H i.e., H.e' = s. This while implemented trying HHL Quantum Algorithm gives error after ...
Harsh Wadhwa's user avatar
0 votes
1 answer
74 views

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

The descriptions can be found here:Qiskit Circuit. Where it says: It really confuses me, because it's very inconvenient to run quantum circuits designed in a classical way in the physics textbook and ...
Saul_better's user avatar
0 votes
1 answer
131 views

I can't load account on IBM's qiskit

I do this but it still gives an error for load account IBMQ.delete_account() IBMQ.active_account() IBMQ.save_account('myAPI toke ') IBMQ.save_account('my API toke') IBMQ.load_account() entire error ...
maria's user avatar
  • 13
0 votes
0 answers
98 views

Unexpected behavior of qiskit runtime estimator

When using the qiskit-ibm-runtime estimator (accessing the statevector simulator here) to calculate the expectation value of a Paulistring composed of identities and PauliZs I always get an ...
qcabepsilon's user avatar
3 votes
0 answers
54 views

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. ...
Elijah Pelofske's user avatar
2 votes
1 answer
408 views

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 \...
SimoneGasperini's user avatar
1 vote
2 answers
142 views

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

The qiskit-runtime primitives programs 'estimator' and 'sampler' for accessing the IBM Q hardware have the option of error mitigation by setting the 'resilience_level'. Here an overview of the meaning ...
qcabepsilon's user avatar
0 votes
1 answer
66 views

How to use local transpilation with ibmq primitives?

I want to use IBMQ's runtime Estimator primitive to address their systems. Since it has no function to return the transpiled circuit, but I need the knowledge what circuit exactly was executed in the ...
qcabepsilon's user avatar
0 votes
0 answers
57 views

'RuntimeJob' object has no attribute 'queue_position'

I was trying to run a QAOA job using the below script: ...
Amey Meher's user avatar
0 votes
1 answer
301 views

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

I have to compute $\langle\psi_1(\theta)|H_1|\psi_1(\theta)\rangle$ where $$H_1 = X_1Z_2 +3Y_0Y_4$$ ...
Amey Meher's user avatar
0 votes
1 answer
187 views

Implementing Grover's algorithm on 4 qubits

I have the below Oracle function. Below are the marked states for this Oracle function. I wanted to implement Grover's algorithm on 4 qubits. I've been following the below Qiskit notebook: https://...
Amey Meher's user avatar
1 vote
1 answer
115 views

Not understanding gates being generated by MCX in "recursion" mode

I was curious about the various ways of generating code for MCX when there are multiple controls. I saw that qiskit provided multiple algorithms for generating code, depending on the number of ...
Frank Yellin's user avatar
0 votes
0 answers
444 views

'Error: cannot import name 'BaseBackend' from 'qiskit.providers'' from qiskit.providers.ibmq.runtime import ResultDecoder

I want to migrate my qiskit code that uses qiskit.providers.ibmq.runtime to use qiskit_ibm_runtime.QiskitRuntimeService. I guess ...
qcabepsilon's user avatar
1 vote
1 answer
98 views

How to upload a program in Qiskit runtime

I'm trying to use qiskit runtime to run my own version of VQE (the idea is to later run other algorithms). I understand that to use the ...
josetomas's user avatar
0 votes
1 answer
239 views

Difference between qiskit SPSA optimize and minimize in runtime program

I use this tutorial with pennylane-qiskit.vqe_runtime_runner to familiarize myself with qiskit runtime using pennylane. Thereby, I wonder: What is the difference between qiskit.algorithms.optimizers....
qcabepsilon's user avatar
0 votes
1 answer
58 views

How to get more qubits, with less noise, with qiskit

I have a quantum ciruit, a qiskit application, that uses four qubits and has a depth of a few dozen operations (unitary transformation). It gives correct results when run on the simulator backend but ...
Anna Naden's user avatar
0 votes
1 answer
65 views

How to run qiskit circuit in the cloud - qiskit runtime

Last night I created an IBM Cloud account. I can run the "sampler': ...
Anna Naden's user avatar
0 votes
1 answer
87 views

qiskit-nature accessing circuit

There are some very nice examples on how to handle circuits using qiskit. However, once we get to the qiskit-nature documentation, it feels like a complete new world for the untrained eye. I am ...
Julen Larrucea's user avatar
1 vote
1 answer
199 views

Can you find how many one qubit and 2 qubit gates are in a circuit in Qiskit?

Is there a command in Qiskit that returns the number of one and/or two qubit gates in a circuit? I need to estimate the cost of a job on Quantinuum's H1-1, and the cost is dependent on this ...
Sam_QC's user avatar
  • 99
0 votes
0 answers
31 views

How to monitor a qiskit neural network on IBM Cloud?

I know qiskit offers the job_monitor function. However it only allows monitoring a BaseJob, for instance the one outputted from ...
mpro's user avatar
  • 487
0 votes
1 answer
95 views

qiskit: convert from ising result to qubo result?

I have a very simple qubo problem: ...
voxter's user avatar
  • 111
0 votes
2 answers
173 views

Where can I find runtime of ibm quantum gates?

I'm looking for the runtime of IBM quantum gates. For instance how long does it take to apply an Hadamard gate to a qubit ? and a CNOT gate to two qubits ? I didn't find any answers in the ...
squeric's user avatar
3 votes
1 answer
153 views

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 ...
Daniele Cuomo's user avatar
3 votes
1 answer
229 views

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 ...
Natchapol Patamawisut's user avatar
1 vote
0 answers
95 views

VQE Execution error: The ansatz must be parameterized, but has 0 free parameters

I am experiencing some problems with qiskit implementation of VQE. First of all, in initialize an ansatz in one of the following ways: ...
Vindem's user avatar
  • 65
3 votes
0 answers
387 views

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 ...
Ruth V.'s user avatar
  • 31
1 vote
1 answer
289 views

How to access a qiskit runtime job and query time_taken?

I am trying to execute qiskit runtime jobs on simulators and real machines and I would like to extract information about the time taken to execute each runtime job. Since using python ...
Vindem's user avatar
  • 65
1 vote
2 answers
359 views

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 ...
Vindem's user avatar
  • 65
4 votes
1 answer
144 views

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. ...
Marek Kowalik's user avatar
2 votes
1 answer
1k views

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

I have submitted Qiskit Runtime jobs. How can I retrieve the old jobs to check the status and results?
Junye Huang's user avatar