Questions tagged [quantum-neural-network]

A machine learning model or algorithm that combines concepts from quantum computing and artificial neural networks encompassing a variety of ideas, ranging from quantum computers emulating the exact computations of neural nets, to general trainable quantum circuits that bear only little resemblence with the multi-layer perceptron structure.

Filter by
Sorted by
Tagged with
1 vote
0 answers
32 views

Effect of error correction gates in QCNN

In Iris Cong et. al. (2019) they propose a Quantum Convolutional Neural Network that utilizes mid-circuit measurements to control an error-correcting ansatz $V_j$. This is the equivalent of a pooling ...
Federico Tiblias's user avatar
1 vote
0 answers
19 views

Measuring a single-qubit PauliZ using Qiskit's EstimatorQNN

I am currently working with the EstimatorQNN from Qiskit to construct a Quantum Neural Network using a custom Parametrized Quantum Circuit. But I want to change the ...
yeray142's user avatar
4 votes
0 answers
71 views
+50

Equivalencies between neural networks and quantum neural networks

TL;DR - Quantum neural networks use a few qubits, gates and simple quantum circuits. Regular neural networks use real numbers (composed of many bits), nonlinear functions on real numbers and very ...
sheesymcdeezy's user avatar
0 votes
1 answer
63 views

What are necessary and sufficient conditions for the output of a parametrized unitary $U(\theta)$ to be smooth?

Let us consider a unitary $U$ parameterised by $\theta \in \mathbb{R}$, i.e, $U(\theta)$. What are the necessary and sufficient conditions for the output states of this unitary to be smooth? One ...
Song of Physics's user avatar
1 vote
1 answer
60 views

Where is the input data X in the CV-QNN as presented in Pennylane?

I am referring to the tutorial of CV-QNN in Pennylane(Strawberry Fields). Each layer of CV-QNN can perform the operation below. Unlike other quantum neural network tutorials, where the input X and y ...
user48217's user avatar
1 vote
1 answer
175 views

How to add noise mode in Sampler (SamplerQNN) in qiskit for quantum neural network?

I would like to add a noise model to one of the tutorial examples of quantum machine learning in the Qiskit site (PyTorch QGAN implementation). I used the following codes ...
Neda's user avatar
  • 11
0 votes
0 answers
160 views

tensorflow, tensorflow-quantum, tensorflow-federated latest version compatibility?

I have been working with on some research on tensorflow, tensorflow-quantum and tensorflow-federated and the problem with that is I just can't install those three at my google colab and I tried ...
Rayhan's user avatar
  • 143
1 vote
0 answers
30 views

How to take gradient of the `tfq.layers.State` output?

I am using the following code for building a quantum circuit as a custom tf.keras.layers.Layer: ...
Shuhul Handoo's user avatar
1 vote
0 answers
38 views

Quantum Generative Adversarial Network does not converge

I have built a quantum generative adversarial network model, in which the generator and the discriminator, both are quantum based model. The parametrized quantum circuit/ansatz of these two models are ...
Shuhul Handoo's user avatar
4 votes
1 answer
94 views

Graph Limits in Quantum Computing

Lovasz's book Large networks and Graph Limits mentions that their study of graph limits is motivatived applications to quantum computers, statistical physics, and models for the internet. They don't ...
user22511's user avatar
2 votes
0 answers
83 views

How can we compute the gradient in a Quantum RNN?

I was looking into implementing a quantum recurrent neural network (QRNN) for a project, but I have some doubts about the computation of the gradient. There are a few papers that have implemented a ...
Alex Li's user avatar
  • 121
1 vote
1 answer
55 views

Unitary operations in a Quantum Neural Network

I'm currently reading Classification with Quantum Neural Networks on Near Term Processors and I'm having trouble with one of the calculations. The system is composed of $n+1$ qubits, $n$ of those are ...
Kilian's user avatar
  • 93
10 votes
1 answer
264 views

Categories and types of quantum inspired algorithms

I have a question concerning "quantum-inspired" algorithms. There seem to be several types of algorithms that fall into this category. Some examples are: Ewin's dequantized algorithms ...
sheesymcdeezy's user avatar
3 votes
1 answer
64 views

Why does the parameter circuit include both the positive and negative shift terms?

In the derivation of the parameter shift rules in the original paper, the Hermitian generator $G$ of any unitary $U(\theta)=\exp[-i\theta G]$ satisfies $$ U(\pm\frac{\pi}{4r})=\frac{1}{\sqrt{2}}(I\mp\...
blackfyre's user avatar
0 votes
2 answers
539 views

How do I calculate the amount of qubits required for Image Classification with a Quantum Convolutional Neural Network?

I'm relatively new to the topic of QCNNs and I wanted to understand how the number of qubits is selected in the encoded quantum layer. Like is it based on the image we want to encode? What is the ...
sohamb172's user avatar
  • 345
-2 votes
1 answer
136 views

Does this quantum algorithm to check for a permuting function make sense? [closed]

Even "Deutsch's algorithm" seems too difficult. Maybe I found an algorithm that is more appropriate for people without knowledge. Less to explain. Easy to understand. Or do you have ...
Marco Schmid's user avatar
1 vote
1 answer
242 views

What are "unbounded loss functions" and "unbounded operators"?

I am reading this paper: Quantum Generative Training Using Rényi Divergences. In it, the authors mention the following multiple times: "...an unbounded loss function can circumvent the existing ...
karolyzz's user avatar
  • 279
1 vote
0 answers
203 views

How to train a Quantum Neural network for regression model in supervised learning

We want to train a parameterised circuit(which is our neural network - from this paper. Now our final circuit looks a little like Let's say there are n training cases. So I have n |gt> vectors ...
Parmeet Singh EP 066's user avatar
2 votes
0 answers
140 views

Adding trainable weights to feature inputs for a CircuitQNN?

Currently I'm trying to get together a QNN that can be trained to classify the normalized (-1, 1) IRIS Dataset on all 3 classes. For this I am using Qiskit's ...
Ricardo's user avatar
  • 179
2 votes
0 answers
63 views

What is the input for the interpret of Quantum Variational Regressors?

I'm trying to implement my first variational regressor using qiskit. I would like to understand how the interpret of a CircuitQNN works. I need to define an interpret that works on the amplitudes of a ...
Roberto Schiattarella's user avatar
4 votes
1 answer
151 views

Data encoding in the quantum perceptron model

In this paper, this figure shows the perceptron model used for quantum neural network. When realizing the inner product between weight vector and input vector, it defines a unitary transformation $U_W$...
peachnuts's user avatar
  • 1,343
1 vote
1 answer
332 views

How to upload our dataset using pytorch when it is not present in torchvision?

I am trying to upload my dataset(SWELL-KW) instead of MNIST in "Hybrid quantum-classical Neural Networks with PyTorch and Qiskit" provided by IBM qiskit but it says ...
user14924's user avatar
  • 317
6 votes
2 answers
500 views

Understanding the definition of quantum neural network of Abbas et al. 2020

My Question based on this Paper https://arxiv.org/pdf/2011.00027.pdf "Power of Quantum Neural Networks" - Section 2. So I know that there are different ways to implement Neural Networks into ...
Jeff24's user avatar
  • 141
4 votes
2 answers
979 views

Computing expectation value of product of observables in PennyLane

In PennyLane, the following circuit returns the expectation value of the PauliZ observable on qubit (wire) 1: ...
ryanhill1's user avatar
  • 2,433
4 votes
1 answer
66 views

Label function for a QNN designed to classify bit strings

The paper can be found https://arxiv.org/pdf/1802.06002.pdf here. They say that for each binary label function $l(z)$ where $l(z)=−1$ or $l(z)=1$, there exists a unitary $U$ such that, for all input ...
siddhi mali's user avatar
4 votes
1 answer
259 views

Does TensorFlow Quantum tfq.convert_to_tensor work on custom gates?

I'm trying to use Cirq with TensorFlow Quantum to simulate a variational quantum classifier. There's a tutorial on the TFQ website on building a quantum neural network to classify a simplified version ...
ryanhill1's user avatar
  • 2,433
2 votes
1 answer
319 views

What is a "repeat until success quantum circuit" in quantum neural networks?

I am working now on a quantum neural network project and want a deep explanation on the Repeat Until Success circuit. What I know about this circuit is that it allows a nonlinear activation function ...
Ramos's user avatar
  • 21