All Questions
740 questions
3
votes
0
answers
42
views
How to use Qiskit translation pass manager with Clifford + T gate basis?
Context
In qiskit, the translation stage of the transpilation "translates (or unrolls) the gates specified in a circuit to the native basis gates of a specified backend." (cf doc)
For that, ...
1
vote
0
answers
21
views
What is the difference between `HighLevelSynthesis` and `UnrollCustomDefinitions` qiskit transpilation passes?
The doc for UnrollCustomDefinitions indicates :
...
1
vote
0
answers
17
views
How to get historical calibration data for mthree (M3) from IBM Quantum devices?
I'm using mthree in Batch mode. A batch needs to be queued before it can be executed. The time when a batch was executed can be obtained from the IBM Quantum Platform site, so I would like to obtain ...
1
vote
0
answers
23
views
Does the Qiskit transpile function preserve the unitary of the input circuit regardless of optimization level?
I am transpiling some circuits using the transpile function by providing my own custom backend, with specific qubit topologies, created using the ...
1
vote
1
answer
81
views
Transpiling a circuit with Tket, taking topology into account
There is a simple circuit with one CNOT like the following:
Topology 0 → 1 (directed connection)
CNOT 1 → 0
Note that CNOT is placed opposite to the connection.
If this is transpiled correctly, it ...
0
votes
0
answers
45
views
RuntimeJobFailureError: 'Unable to retrieve job result. Error code 1520; The instruction cost per qubit exceeds the system limit
I want to find two operands of multiplication result of 180. In another word, finding integer factors of 180.
I'm using ...
1
vote
0
answers
24
views
Parameterized Gates [duplicate]
I am trying to create my own custom parameterized gate and then transpile it to the AerSimylatorGate. I have been able to create the virtual circuit but in the transpilation to the backend basis set ...
0
votes
1
answer
66
views
Custom Quantum Gate equivalence to backend basis gate set
Hello I am using Qiskit and I have defined a custom gate which implements the array shown in the image:
This array is unitary and the function R(theta) works by tuning a continious variable into 0 of ...
2
votes
0
answers
74
views
Understanding sources of error in 4-bit Grover's search on IBM QC
This question is similar to some others I've come across, related to why a 4-qubit implementation of Grover's search yields such poor results when run on the IBM QC compared to the 3-qubit case (...
1
vote
0
answers
40
views
Qiskit not efficiently compiling with new gate basis
I am using Qiskit to compile a small Qiskit circuit (shown below) with a gate basis consisting of Rigetti native gates:
RZ
...
0
votes
0
answers
18
views
Does anyone have an idea about the execution power of IBM summit for VQE? I'd appreciate sources of papers as well for supercomputer execution
I'm trying to find the execution power of VQE in super computer and I want to know the factors of execution such as iterations, shots, convergence, etc. Please help me and also, I'd appreciate if ...
1
vote
1
answer
66
views
Seeking Quantum Algorithm Implemented on IBM's Accessible Quantum Computers
I am interested in leveraging IBM's quantum computers that are currently available for public access. Specifically, I am looking for an algorithm that has been successfully implemented on a real, ...
1
vote
1
answer
61
views
Transpile not working properly for decomposing single qubit gates into Rx Ry and Rz
I used the above code to decompose hadamard gate into RxRyRz but i am getting wrong angles which on multiplying don't match hadamard gate . Interestingly when i am using inbuilt hadamard hate using q....
0
votes
0
answers
42
views
Run Qiskit Finance Tutorial on IBMQ backend
I tried to implement the qiskit example for portfolio optimization and it works as described. However I am not able to change the backend to one of the IBMQ machines - and it's not clear to me if this ...
4
votes
2
answers
151
views
What are some good additional resources when taking IBM Qiskit course?
I am a undergrad comp sci major. I have committed myself to a neuroscience PhD, hopefully computational neuro. However, I recently came across quantum computing, and see that lots of resources are ...
1
vote
0
answers
74
views
Performance of quantum annealing systems vs gate based ones
Quantum annealers like D-Wave can be used to solve Quadratic Unconstrained Binary Optimization (QUBO) which is a NP Hard problem (see here) while gate based quantum computers, like the ones created by ...
1
vote
0
answers
24
views
Are reset gates allowed on IBM quantum computers?
My circuit involves many "reset" gates. After running on the IBM real backend, the experiment status says "Failed" with error message that says:
Failed - Unknown operation type ...
2
votes
2
answers
129
views
Calculating number of CNOT gates in Pauli evolution gate
How to calculate the number of CNOT gates for a Pauli exponentiation for given time?
I am performing Trotterization which involves performing Pauli evolution ...
1
vote
0
answers
60
views
qiskit transpile taking forever to run while CPU usage near zero
I am using the following code to use IBM's quantum computer. My understanding is that it is required before circuits are passed to the real quantum computers as certain operations and instructions ...
0
votes
0
answers
46
views
BQSkit Selecting Starting Circuit Structure
Background
On the BQSKit repository, there is a nice example of using the qfactor algorithm to instantiate a 3-qubit Toffoli circuit. For this to work, however, it is first necessary to specify an ...
2
votes
0
answers
145
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 ...
2
votes
2
answers
84
views
IBMBackendValueError: number of circuits exceeds the maximum for this backend, 300
I am trying to run the QAOA on the IBMQ device. The QAOA circuit consists of 6 qubits, two layers. The number of total trainable parameters for the QAOA circuit is 14. The toy code is as follows:
<...
2
votes
1
answer
84
views
Transpile and run don't use GPU device
I'm trying to run an implementation of Shor's algorithm using a GPU device. While running with $N<1023$ works (23 qubits), when running with a higher number of qubits, the program ends before ...
1
vote
0
answers
68
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 ...
1
vote
2
answers
182
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 *
...
2
votes
0
answers
42
views
Controlled Ry gate on IBM and IonQ basis gates
As far as I know the basis gates for IBM and IonQ are:
IBM: ['cx', 'id', 'rz', 'x', 'sx']
IonQ: ['rx', 'ry', 'rz', 'rxx', 'id']
I used qiskit.transpile to see check how Controlled Ry gate can be ...
0
votes
1
answer
53
views
IBMProvider.load_account() AttributeError: type object 'IBMProvider' has no attribute 'load_account'
I am trying to resolve the below deprecation warnings I am getting while using IBMQ framework.
...
0
votes
1
answer
113
views
How to remove or change the Coupling-Map limit is qiskit?
I am trying to implement large qiskit circuits which give coupling map error as coupling map cannot exceed 31 is basic aer_simulator or even ...
2
votes
1
answer
86
views
Increasing qubit limit in Qiskit for benchmarking
I am aware that each backend in Qiskit has a qubit limit. Across all backends in Aer, the limit is 24. When we employ ...
0
votes
0
answers
113
views
How to calculate the state vector of a circuit using sampler().run()
I run a circuit using:
jobCircuit = Sampler(backend).run(circuit)
resultCircuit = jobCircuit.result()
How can I access to a state vector of the circuit? I tried ...
0
votes
2
answers
5k
views
IBMQ import error
I am trying to import IBMQ from qiskit. But I encountered following error.
...
2
votes
3
answers
843
views
Is there a way to use a fake backend for ibm_brisbane?
Is there a way to use a fake backend for ibm_brisbane?
I tried this but it is giving me the error that the backend is not present:
...
0
votes
1
answer
105
views
Get the error of basis gates programmatically
I want to get the error rates of the basis gates of a backend. Is there a function that can achieve this functionality?
For example, I want the error rates of the basis gates rx, cx of ibmq_mumbai ...
4
votes
1
answer
168
views
How to transpile a quantum circuit using the $\{H,T,CNOT\}$ universal set of gates?
If I'm not mistaken, the $\{H,T,CNOT\}$ set of gates is universal in the sense that any unitary can be approximated arbiratrily close by a combination of these gates.
The ...
1
vote
1
answer
493
views
QiskitBackendNotFoundError: 'No backend matches the criteria'
I am struggling with the QiskitBackendNotFoundError: 'No backend matches the criteria' even though I am able to see the backends available to me.
...
0
votes
1
answer
51
views
How the shots belonging to the same job are scheduled to run on IBM quantum devices?
How the shots belonging to the same job are scheduled to run on IBM quantum devices? Suppose my job has 1000 shots. Will all shots be executed in series, or is it possible they will be interleaved ...
1
vote
0
answers
63
views
Interleaved Randomized Benchmarking experiment with custom PassManager
I have a custom PassManager, which calibrates a few gates in the circuit in the transpiler pass. I want to conduct an Interleaved Randomized Benchmarking experiment ...
0
votes
1
answer
87
views
IBM quantum composer possible bug?(state amplitudes of quantum circuit)
I have this quantum circuit:
and from the IBM quantum composer I get this state amplitudes:
I wanted to flip the target qubit and keep only its pure state however this is not what I am getting.I am ...
1
vote
0
answers
42
views
How to represent the gates and the quibit states in the 'Hello Quantum' iOS game in IBM Quantum Learning graphical simulator
The Hello Quantum ios game developed by IBM has the X, Z, H and CZ gates manipulating a 2 qubit array (im not sure if array is the right word?).
I want to know how I can represent the qubit states in ...
0
votes
0
answers
226
views
Qiskit cant run circuit with reset gate with error
In qiskit if i have a reset gate in a circuit. If i want to add noise to the circuit it wont transpile.
For example:
...
4
votes
2
answers
440
views
Questions on multi-controlled Toffolis and their implementation in Qiskit
Is it possible to decompose an $n$-controlled Toffoli into $O(n)$ CNOTs without extra working qubits?
If so, is such an decomposition currently available in Qiskit or any other (preferably Python and ...
1
vote
1
answer
53
views
Is qiskit.pulse.SamplePulse deprecated?
I'm currently following along the book "Learn Quantum Computing with Python and IBM Quantum Experience" by Rodert Loredo and I am at chapter 8 - Generating pulse schedules on hardware. The ...
2
votes
0
answers
82
views
Quantum Annealing on IBMQ using Qiskit-Pulse
Qiskit-Pulse is the analog level control SDK of IBMQ hardware. Is it possible to implement an adiabatic annealing protocol/algorithm on IBMQ hardware using Qiskit-Pulse?
Not asking about QAOA, which I ...
0
votes
1
answer
70
views
Frequency of qubits in qiskit simulators
I am trying to study the effect of dynamical decoupling sequences (Hahn Echo and CPMG) using qiskit's qasm_simulator with an added noise model from ...
0
votes
1
answer
143
views
Netlist of the transpiled circuit in Qiskit
I am new to running quantum circuits in Qiskit. In the IBM quantum learning lab, I transpiled a simple 4-qubit quantum circuit using a 7-qubit IBM quantum computer. I received a tranpiled circuit ...
1
vote
0
answers
34
views
ZNE for mitigating errors in probability distribution results
Can ZNE be applied to mitigate errors for getting the probability distribution in the computational basis rather than mitigating errors for calculation of expectation values?
4
votes
1
answer
275
views
Retrieving job result attributes in Qiskit
I am trying to optimize a Hamiltonian using QAOA in IBM Qiskit.
I used the following 'minimize' function to get my result. (I am not including the whole code because it will get unnecessarily long).
<...
2
votes
1
answer
544
views
Coupling map in QISKIT transpile
I have a 3-qubit unitary represented by a circuit with the following dictionary: {'cx': 30, 'h': 22, 'rz': 15, 's': 4, 'sdg': 4}. I want to use this circuit on IBM ...
1
vote
0
answers
80
views
In qubit phase tracking, does the phase $\delta$ have to be synchronized to the Larmor precession?
In many textbooks (e.g. LaPierre 2021 or Byrd 2022), when dealing with the physical implementation of quantum gates in spin qubits, Larmor precession is usually introduced first as a way to rotate the ...
1
vote
0
answers
44
views
Running Pulse Schedules with different resilience levels
Is there a way to run a Pulse schedule with different resilience levels? I was thinking about passing the resilience level values in the options of Sampler primitive, but when I tried to run, it says ...