All Questions
75 questions
1
vote
0
answers
14
views
Periodic electric field link operator in QuSpin
I am trying to implement a truncated bosonic Hilbert space as described in Eqs. (15) and (16) of this paper on simulating the Schwinger model. However, I am unable to implement the "periodic ...
1
vote
1
answer
29
views
Unexpected behavior of trapped ion's motional mode (phonon) heating simulation
I'm a novice at qutip simulation.
I was recently trying to use qutip to simulate the heating effect of a trapped ion by defining a jump operator defined with heating rate.
Below is the code of my ...
0
votes
0
answers
52
views
State of the art stabilizer decomposition quantum circuit simulators - Suggestions
I've programmed an algorithm which decomposes a quantum circuit $U$ (and given initial state $|s\rangle$) into a sum of $N$ stabilizer states $|\phi_i\rangle$:
$
\begin{equation}
U|s\rangle=|\psi\...
1
vote
2
answers
422
views
Using GPUs with Statevector Simulator in Qiskit 1.0
I'm trying to use the AerStatevector method with GPUs. I know that GPUs on my server are correctly configured, and indeed, if I use ...
1
vote
1
answer
1k
views
How to use qiskit.utils.QuantumInstance API of qiskit?
I am quite struggling with the usage of QuantumInstance API.
This API is present in qiskit version 0.32.1
Below is small code:
<...
1
vote
1
answer
46
views
Microsoft Classic QDK simulator
Is it possible to change the simulator used by the Classic QDK with Python simulation ?
It's reported that Classic QDK supports several simulators (sparse, full-state...). Which one is used when ...
3
votes
0
answers
34
views
How to have seperate registers from scrach?
I am very new to quantum computing, so this might be a really simple question. I am coding a quantum computer simulator in python from scrach and I'm not sure how to make registers work.
I would just ...
1
vote
0
answers
101
views
How to use GPU with qiskit as default and then use parallel GPU setup in distributed computing?
I have a GTX 1600 GPU on my computer and I am confused on how to use cuQuantum, Tensorflow or torch etc to enable GPU for qiskit. Further, one of my friends also have a GPU, we want to use both GPUs ...
1
vote
1
answer
97
views
Phase shift on qiskit quantum teleportation simulation
I wonder in Qiskit why the phase shift occurred in my simulation and how I can turn it off.
I posted another question regarding the same simulation here, and while I tried to solve this on my own, I ...
3
votes
1
answer
155
views
Single-shot error correction for the surface code with measurement errors
I am trying to implement a single-shot error correction for the surface code with data + measurement errors (both with prob. p), using the (build-in) BP+OSD decoder. I am mostly following these papers:...
2
votes
3
answers
478
views
GPU Access for qiskit-aer-gpu from Ubuntu VM
I have NVIDIA GeForce GT740 Graphics card installed on my host machine with Windows 10 OS. I have to simulate a cluster environment in order to run qiskit codes in parallel fashion. Before actual ...
1
vote
0
answers
25
views
projectq code hangs with only 8 qibts
I have written a simple projectq code with 8qbits in order to perform full addition but it gets stuck somewhere between without generating any error message. It worked fine for 4 qbits.
...
1
vote
1
answer
571
views
Insufficient memory to run circuit using the statevector simulator
I am a newbie to quantum and have been trying qiskit library for learning quantum computing (in order to explore quantum effects on cryptography). I am basically ...
2
votes
1
answer
1k
views
Using Qiskit's AerSimulator with an AMD GPU
I have an AMD 6700S that I want to use for Qiskit simulations. The test case below is calculating the QFT.
If I set my code up like this:
...
0
votes
1
answer
504
views
Enable qiskit backends in google colab
I am trying to enable backends by using qiskit.IBMQ.backends() methods in google colab. but it is showing error. How to enable this? AL time this backend showing an error. i have tried by using some ...
2
votes
1
answer
98
views
Efficient Representation of Qubits on a Digital Simulator
I was wondering about quantum simulators recently, and I was thinking about how a qubit could be represented on a digital machine. This Stack Overflow post seems to say that one will need at least $a2^...
1
vote
0
answers
177
views
qutip.sesolve and qutip.optimize_pulse_unitary produce different results
I'm currently trying out some things with qutip in the field of optimal control (state-to-state transfer) and have some trouble to reproduce my results from the optimization process with sesolve.
My ...
2
votes
0
answers
76
views
QuTip - Is there a way to simulate more than one inital state in one simulation?
I'm trying to use QuTip for a simulation of a qutrit system and I want to see how my system evolves under different initial states. Is there a way to do it using QuTip without running the simulation ...
4
votes
0
answers
68
views
Why the pulse scheduler produces a different output from the original circuit?
As part of a larger code, I have to convert a quantum circuit into a Pulse scheduler. The problem is that the scheduler output is incompatible with the circuit output. In particular, the difference ...
4
votes
1
answer
323
views
How to order results after multi-circuit qiskit.execute parallel run?
I'm kinda new to qiskit and I find really fascinating its parallelization capabilities, then I'm trying to creating all the needed circuits for my application at once and transpile, assemble and ...
1
vote
1
answer
289
views
What does a statevector with 3 elements (in Qiskit) represent?
I wasn't quite sure where to post this as I don't know if this is a Qiskit specific thing or not, but I'm not sure how to interpret this result I got from running a simulation.
from result.data():
<...
1
vote
1
answer
153
views
Simulating readout errors on aer simulator
I'm trying to simulate quantum experiments using a customized noise model. Here's my code:
...
4
votes
0
answers
290
views
Any simulator packages for quantum annealing/adiabatic quantum computation?
Are there any simulator packages for quantum annealing/adiabatic quantum computation, like Qiskit Aer but for quantum annealing?
There seems to be only classical heuristics in D-Wave Ocean package, ...
1
vote
0
answers
192
views
How can I get the results from simulating noise models?
I'm trying to run some simulations of my quantum circuits using qasm simulator. I first tried to import the noise data from a quantum device and then use that information on qasm. Here's part of my ...
5
votes
1
answer
3k
views
Difference between Aer.get_backend('aer_simulator') and AerSimulator()
In Qiskit, there are several ways to choose simulator: one is
from qiskit import Aer
backend = Aer.get_backend('aer_simulator')
result = backend.run(circ).result()
...
4
votes
1
answer
565
views
How to import a generic stabilizer code in stim
I just started using stim to simulate the performance of quantum error correcting codes. I hope this is the right place to ask questions about the subject. The
example code
with the repetition code ...
4
votes
1
answer
2k
views
What is difference between qasm_simulator and ibmq_qasm_simulator?
There are many ways how to simulate a quantum circuit on IBM Q. However, in partiuclar I am interested in a difference between qasm_simulator and ...
1
vote
1
answer
91
views
Can I extract information from a single shot efficiently?
I'm running a quantum simulation and want to obtain some information from a single shot of an experiment. Here's part of the code I'm working on:
...
5
votes
1
answer
139
views
Is a black-box gate whose output is conditional on the value of an input amplitude possible?
Suppose we have a qubit in the state $|q\rangle = a |0\rangle + b |1\rangle$, and another ancilla qubit $= |0\rangle$.
I wish to have the following black-box gate:
...
3
votes
2
answers
1k
views
How can I specify the qubits on quantum computers that I want to use?
Suppose I have the following 2-qubit quantum circuit:
...
3
votes
1
answer
215
views
Why does running my circuit on Quantum Hardware produce such unexpected results?
I am using Jupyter Notebook with Qiskit.
I have created a program that can add two 3-bit numbers together. When I simulate this program on a qasm_simulator it works as expected and I can add any two 3-...
5
votes
1
answer
365
views
What is the superop simulator in Qiskit for?
I'm trying to understand what the use case of a superop simulator would be. My understanding is that density matrix is generally more resource intensive than state vector, but it has additional ...
2
votes
0
answers
215
views
How accurate are Qiskit’s unitary and Statevector simulators for very large circuits?
Background: I wrote a code that takes a Qiskit circuit C as an input and outputs a random circuit C’ such that C and C’ have the same unitaries. I tested my code using Qiskit’s Statevector simulator ...
7
votes
1
answer
619
views
'Best practices' for making Stim run as fast as possible?
I'm currently testing out an error-correction surface code circuit in Stim.
I've tried a 19x19 surface code over 10k rounds of syndrome extraction sampled 256 times, and this takes about 165 seconds. ...
1
vote
1
answer
66
views
How do I export the rightmost state of circuit wires (qbits and cbits) in a qiskit simulation
qiskit has a quantum teleportation tutorial which winds up with this simulation code:
...
1
vote
1
answer
2k
views
Memory Requirements for Qiskit Aer Simulator
I'm trying to work out how much memory is used for simulations of different sizes using the Aer simulator.
Here are my calculations:
$$ \text{Number of Qubits} = n $$
$$ \text{Number of Amplitudes} = ...
4
votes
2
answers
441
views
Statevector Simulation of QAOA always finds exact solution
My question is simple: does applying QAOA with a statevector simulation always result in a perfect solution?
I'm trying to calculate the best $\gamma$ & $\beta$ that solve certain problems but my ...
3
votes
1
answer
251
views
Get the gates after fusion optimization in Qiskit statevector simulator
I tried to obtain the gates after fusion in Qiskit-aer statevector simulator. What I can find now is that it provides a backend option saying fusion_verbose (bool): Output gates generated in fusion ...
3
votes
1
answer
85
views
noisy circuit by openfermion
I am working on designing quantum error mitigation algorithms for simulating chemical systems. Therefore, a necessary component is to add noisy to the ideal circuit when using a quantum simulator. But ...
7
votes
1
answer
221
views
Q# Simulation Behavior
I am attempting to run a series of tests on a Q# program I'm running on the local simulator, but I'm not seeing any way to use >1 shot and collect the results of those shots at once, as in ...
3
votes
1
answer
418
views
Job fails when using PulseSimulator: Job Status: job incurred error
I'm trying to simulate a basic circuit using the PulseSimulator in Qiskit. The following Qiskit Pulse code works when I run it on the real device, but not when ...
1
vote
0
answers
339
views
How can I fix the BrokenProcessPool error in Qiskit?
I'm running a set of quantum circuits using the ibmq_qasm_simulator. However, sometimes my code works for the simulation, but sometimes it doesn't, and the system ...
6
votes
1
answer
201
views
Trying to understand this measurement of a simple quantum circuit
It's a newbie question, I know. But I was just wondering if someone could help me understand why this simple circuit results with the measurement shown. I've just didn't get the last step. It's not ...
1
vote
1
answer
191
views
Is there a faster way to get 'a list of' result from 'a list of inputs'?
I had a question about obtaining the probability of a certain state from the histogram, still using this example, suppose there's a variable in my quantum circuit, it's values are stored in an 'np....
2
votes
0
answers
111
views
Length / transpilation issues with Grover's algorithm
I would like to discuss the discrepancies between what we see in the simulator versus what we see in the actual running of the code on any IBMQ machine for any qubits at 5 or above. I am doing a final ...
3
votes
1
answer
1k
views
Qiskit "statevector_gpu" method not available
I am trying to use the statevector_gpu simulation method in Qiskit Aer (see this page). I installed qiskit-aer-gpu according to ...
2
votes
1
answer
233
views
Qiskit BasicAer simulator options
I usually use Qiskit "Aer" to simulate quantum circuit with several methods such as statevector, density_matrix, ...
5
votes
1
answer
1k
views
Qiskit BasicAer & Aer
While I'm simulating grover's algorithm, I found that with BasicAer backend it works well but with Aer it is not. What is the difference between ...
3
votes
2
answers
120
views
What is the best approach for classically simulating quantum devices?
Now I'm focusing on quantum simulation (especially on classical supercomputers), but I saw there exist so many simulators. Is there any criteria to judge which is the best?
https://www.quantiki.org/...
0
votes
1
answer
141
views
Inconsistency in Qiskit Aqua CircuitSampler from Operator Flow
I am trying to wrap my head around Qiskit Aqua Operators and I stumbled upon this:
My code
...