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
0 votes
0 answers
10 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 ...
  • 123
1 vote
0 answers
20 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: ...
1 vote
0 answers
25 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 ...
3 votes
1 answer
51 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 ...
2 votes
0 answers
42 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 ...
  • 121
1 vote
1 answer
46 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 ...
  • 21
0 votes
0 answers
44 views

Performing QN-SPSA on hybrid quantum-classical neural networks

I had a question on the TorchConnector module in qiksit_machine_learning (based on this tutorial). If I'm not wrong, is ...
10 votes
1 answer
168 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 ...
3 votes
1 answer
50 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\...
0 votes
2 answers
288 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 ...
  • 345
-2 votes
1 answer
133 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 ...
1 vote
1 answer
175 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 ...
  • 259
1 vote
0 answers
101 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 ...
2 votes
0 answers
126 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 ...
  • 149
2 votes
0 answers
46 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 ...
4 votes
1 answer
120 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$...
  • 1,303
1 vote
1 answer
211 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 ...
  • 187
6 votes
2 answers
473 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 ...
  • 141
4 votes
2 answers
677 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: ...
  • 2,193
4 votes
1 answer
55 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 ...
3 votes
1 answer
226 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 ...
  • 2,193
2 votes
1 answer
238 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 ...
  • 21