Questions tagged [simulation]

For questions about simulating either quantum computers or simulating things on quantum computers.

Filter by
Sorted by
Tagged with
0
votes
1answer
30 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 ...
-1
votes
0answers
23 views

Qiskit density_matrix simulator and memory_profiler

I use jupyter notebook to simulate quantum dummpy code with 'density_matrix' method. Following is my code. Now, I want to check memory usage of it. So I use %memit operation to each functions. ...
1
vote
1answer
42 views

Why is the lowest energy important to simulate a quantum system?

Quantum computers promise that they will simulate complex quantum systems, and I keep hearing that finding the ground state of that system (using for example Variational quantum eigensolver) is ...
2
votes
1answer
42 views

Why running time of qasm simulator is significantly smaller in comparison with quantum machines?

I ran a 3-qubit measurement circuit on QASM simulator as well as on IBM Q Melbourne, Santiago and Vigo machines. The running time on the simulator is in few milliseconds (400-800) while in the case of ...
-1
votes
2answers
33 views

How to plot histogram using statevector simulator?

I'm trying to run my quantum circuit and plot the simulation result (counts) using the statevector simulator (to avoid 'shot noise'). However, instead of a 2-d histogram, the examples on Qiskit ...
1
vote
1answer
37 views

How can I print out the probability of a certain state in histogram?

This is a simulation I did in my program. I'm hoping to print out the probability of the state |0001> (which is 0.052), and store this number in a letter (a). How can I do this? Thanks!!
2
votes
2answers
25 views

How to fix “QiskitChemistryError:PySCF is not installed”

I’m trying to simulate LiH using VQE. But I keep getting the error QiskitChemistryError:PySCF is not installed And I tried several ways to see whether my driver for the molecule was typed wrong. But ...
0
votes
1answer
24 views

Unable to retrieve result for Job Error during VQE simulation

I am attempting to run a VQE calculation on the 'ibmq_qasm_simulator'. The job is failing with a series of errors caused by: ...
2
votes
1answer
20 views

Any good resources for learning about quantum networks and how to do a simulation of BB84 protocol?

I'm a communication engineering student. And I'm thinking of doing my project on BB84 protocol but I don't know where to start. As a beginner, are there any documents or tutorials about quantum ...
1
vote
0answers
22 views

Simulating a Quantum Network over a real Classical Network Using Simulaqron

I'm trying to simulate a quantum network over a real classical network using the Simulaqron framework. I know the documentations says this is possible but I am having trouble finding examples of how ...
7
votes
1answer
83 views

Preparing any superposition of fixed Hamming weight states

There exists a nice way of preparing any superposition (with real amplitudes — this is the case I'm interested in) of states $\{\ldots0001\rangle,\,|\ldots0010\rangle,\,|\ldots0100\rangle,\ldots\}$, ...
1
vote
1answer
50 views

IBMQ_Melbourne Readout error

I am trying to simulate an experiment on IBM's melbourne quantum computer and here are the results Qasm simulator : ibmq_16_melbourne: error why is there such high probability of unwanted states i....
1
vote
2answers
110 views

Why should we use density matrices to simulate quantum systems with noise?

Why we should use density matrices to simulate quantum systems with noise? I found that the any QEC circuit is included by some quantum gates just like normal cases, which means the state vector can ...
0
votes
1answer
102 views

How the simulator work?

Recently I focused on how to simulate in classical computer, and I found Qiskit offers qasmsimulator and statevector simulator. ...
1
vote
1answer
60 views

A question about how does the single qubit gate simulated in simulator?

I have found the procedure of simulation process as this picture : Image reference. So in the low-level compilers, all single-qubit gates are approximated by the universal gate set (CNOT, H, T, S). ...
1
vote
1answer
29 views

What would be the difference between using qsharp library on python vs learning the Q# langauge?

One difference of course is the syntax. But I'm guessing the idea is eventually quantum computers will be able run Q#, whereas now it uses simulations. Will code written in Python with the qSharp ...
1
vote
2answers
72 views

Why do I get positive amplitudes when I create a qiskit StateVectorCircuit from only negative amplitudes?

I am using amplitude encoding to encode my features in a quantum circuit. With this I expect to encode e.g. 32 features in five qubits. For the encoding I use qiskit's ...
4
votes
2answers
187 views

How does a classical computer simulate nonclassical correlations?

This may be a dumb question, if so please forgive me, it is late at night. I have learned that a classical computer can simulate a quantum computer in exponential time and space, but classical ...
1
vote
1answer
36 views

A question about how to emulate quantum states and computation on classical computer

I have understood the concept of "universal quantum gates" in real quantum computer, and the quantum gates and states can be emulated as matrix in classical computer, and the matrix operation can be ...
3
votes
2answers
93 views

How to run an approximate simulation, and why

I'm looking at the Qiskit getting started documentation, https://qiskit.org/documentation/getting_started.html. They create a quantum circuit and run an approximate simulation on it 1000 times: Why ...
1
vote
0answers
30 views

How to turn off multiprocessing in TensorFlow Quantum

Some background: I'm currently running the same training algorithm with a classical neural network and a quantum circuit, respectively. The NN is implemented in Keras with a TensorFlow backend, the ...
0
votes
1answer
67 views

Is it a good idea to publish a research paper about the simulation of BB84 protocol?

I'm an engineering student. As my end of year project I've simulated BB84 protocol using simulaqron(python). I'm thinking about publishing a paper about this simulation. I haven't published any ...
2
votes
0answers
110 views

What is the usefulness of the Suzuki-Trotter formula?

I can't seem to wrap my head around the suzuki-trotter formula. I have seen This answer but I am still confused of the applicability of the formula. Let me explain: As I understand it Trotterization ...
4
votes
1answer
48 views

Resource recommendation on quantum simulations

I would like to know more about quantum simulations, so as to start on a few standard physical models (maybe particle in a box, harmonic oscillator, etc.) and then build up on more complex things. But ...
3
votes
1answer
131 views

What are the biggest obstacles currently preventing us from solving real world problems defined in terms of quantum simulation?

Quantum simulation (also referred to as Hamiltonian simulation) is defined as follows: In the Hamiltonian simulation problem, given a Hamiltonian $H$ ($2^n \times 2^n$ hermitian matrix acting on $n$...
3
votes
1answer
97 views

Problem with building quantum circuit for Hamiltonian operation

In the book, Nielsen and Chuang, there is a section on quantum simulation of the quantum search algorithm. Hamiltonion operator is defined as follows- $$ H = |x\rangle\langle x| + |\psi\rangle\langle\...
1
vote
0answers
23 views

Can We Currently Import Quantum Datasets (Datasets Containing Quantum Data) Onto NISQ-era Quantum Computers?

I'm still investigating the TFQ whitepaper. In one section of the paper, the authors say this with respect to Quantum Datasets In general, [a quantum dataset] might come from a given black-box ...
2
votes
1answer
81 views

Question Regarding Simulating Hamiltonian With Quantum Circuit

There have been a few other questions about this section of Nielsen and Chuang, but when working through the output of the circuit, there are some inconsistencies that are probably due to some mistep/...
1
vote
1answer
44 views

Results of SAT on the Qiskit simulator

I computed SAT formula with the Grover search algorithm on the Qiskit simulator with default parameters, but I don't understand why the incorrect solutions don't have a probability of 0? The SAT ...
1
vote
1answer
52 views

A question about quantum circuit simulation on PC

In classical logic circuit consisting of AND, OR and others, common gates can be realized by electrnic signal. Each time cycle can run a function unit like the picture below. Now I have read many ...
6
votes
1answer
101 views

What did exactly Google do in simulating a random quantum circuit on a classical computer in supremacy experiment?

I've been working on Google quantum supremacy paper for quite some time now and I have a problem in understanding how exactly they simulate their actual random quantum circuit on a classical computer. ...
4
votes
5answers
155 views

Does a classical computer really require $2^n$ complex numbers to represent the state of $n$ qubit quantum computer?

One often reads that the key reason why classical computers (probabilistic or deterministic) are unable to simulate quantum algorithms such as Simon's or Shor's efficiently is that a classical ...
2
votes
1answer
220 views

How Mature is the Tensorflow Quantum Library [closed]

Where does The Tensorflow Quantum ( TFQ ) library fall on it's maturity curve. In other words can we currently leverage the TFQ ...
1
vote
0answers
54 views

What Are The Most Promising Real-World Applications For Quantum Machine Learning

I know this has been asked before in different ways, however, I am interested in something with a degree of clarity and focus not found in other questions. What I am looking to get is a list of the ...
5
votes
3answers
122 views

Does Planck's constant have any role in quantum computing?

I am new to the area of quantum computing, but as I study it I can't help wonder about the role of the Planck's constant. When one studies quantum mechanics one often finds statements that quantum ...
2
votes
2answers
51 views

Ansatz state for finding the lowest eigenvalue of a $2^n\times 2^n$ real matrix using VQE

I would like to find the lowest eigenvalue of a $2^n\times 2^n$ real matrix $H$ using the VQE procedure. The measurement part is simple — I just expand $H$ in a sum of all possible $n$-qubit Pauli ...
1
vote
1answer
40 views

Rotation of multi-body interaction in quantum circuit

In quantum circuit, how do you implement the rotation of multi-body interaction, such as $e^{-i\theta\sigma_z^1\sigma_z^2\sigma_z^3}$? I already know the case of less than two-body interaction, but I ...
1
vote
0answers
25 views

How to get the $T1$ specs for the Rigetti's quantum processor (Aspen 7)

I am trying to find the $T1$ coherence time for different qubits of Rigetti's quantum processor (Aspen 7) using Python. I tried using Specs() but encountered an ...
1
vote
0answers
41 views

Why Alice and Bob don't get the same result when they measure in the same basis?

I'm simulating the BB84 protocol using simulaqron. My problem is that when Alice and Bob measure in the same basis, they don't get the same result. How can I fix this error? . BB84.py ...
1
vote
2answers
147 views

Entanglement Swapping Circuit

I implemented 2 versions of the entanglement swapping circuit in IBM Q. One is using classical measurement to control X, Z gates. Another is just us C-NOT and Controlled-Z. They should be equivalent. ...
2
votes
0answers
39 views

“$W_n$ state” in Bravyi-Kitaev encoding

For a particular simulation, I need the initial (physical) state of the QC to represent the equal superposition of all single-occupancy fermionic second-quantized states. In Jordan-Wigner encoding, I ...
1
vote
2answers
120 views

How to calculate the probabilities of observing quantum states using the “expectation_from_wavefunction” in cirq (and why)

I am currently simulating some quantum circuits, and want to calculate the probabilities of observing each individual state. I am able to use Cirq for this, and calculate it using $P_{00} = |\alpha|^2$...
1
vote
2answers
49 views

Normalization of the quantum state in Cirq

My understanding, for instance from [1], is the following: Assuming a state $\psi = \alpha |0> + \beta |1>$, where $\alpha$ and $\beta$ can be complex. I believe any state is always normalized, ...
1
vote
1answer
249 views

VQE Cirq example

Is my understanding correct that in this example the Hamiltonian measurement is not performed through measuring individual Pauli operators because all its terms are mutually commuting? So, for each ...
2
votes
0answers
31 views

How many cores and what processors are used in the cloud ibmq_qasm_simulator?

Cloud IBMQ simulator ibmq_qasm_simulator can process up to 32-qubit circuits quite fast. However, I could not find any information about the simulator backend properties, e.g. how many cores, what ...
0
votes
0answers
13 views

Modelling reservoir in Qutip

Is there any way to model reservoir in QuTIP? I was trying to simulate a two sided cavity coupled with a reservoir using QuTIP and I can't find out how the reservoir terms in Hamiltonian are added to ...
1
vote
1answer
158 views

Is it possible to demonstrate a quadratic speed-up of a quantum algorithm on a classical computer?

In article Quantum computational finance: Monte Carlo pricing of financial derivatives the authors said that: Firstly: While a practical quantum computer has yet to become a reality, we can ...
1
vote
0answers
46 views

Software for implementing Quantum Machine Learning

I want to have a software product specifically suited for Quantum Machine Learning. Please help me with a list of software product which has been designed specifically for implementing Quantum Machine ...
1
vote
1answer
289 views

How to run the Qiskit Aer simulator without noise?

I know that the Qasm Simulator execute quantum circuits with presence of noise, even if I do not specify the model of noise in options for that backend. But how can I execute the circuits without ...
2
votes
1answer
76 views

Commutation of bosonic operators on finite Hilbert space

I'm checking this article of R. Somma about quantum simulations https://arxiv.org/abs/quant-ph/0512209 I understand the common commutation relations for creationd and annihilation operators, given ...