Questions tagged [quantum-enhanced-machine-learning]

For questions about quantum algorithms tackling machine learning tasks (e.g. the HHL algorithm or questions about quantum neural networks). For questions about applying classical machine learning to quantum-information-related problems, use machine-learning instead.

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

Outputing classification probability from the Qiskit VQC

I am new to Qiskit. For the last few days, I have been trying to train my first VQC to do some classification task. Now the VQC is successfully running but it could only output a label whenever I ask ...
1 vote
1 answer
40 views

Error loading saved hybrid quantum (pennylane + tensorflow keras) model: Unknown layer: 'KerasLayer'

I'm creating a hybrid model consisting of classical convolutional layers and a quantum output using Tensorflow. I can save the model in either .h5 or .keras format, but when I load them with the code <...
1 vote
1 answer
26 views

How to save a hybrid Tensorflow and Pennylane model?

I implemented a hybrid model with Keras and Pennylane that looks like this: The quantum layer is basically a quantum circuit converted to a keras layer with the ...
0 votes
1 answer
49 views

What's the case when parameter-shift rule does not hold?

When the parameterized unitary is of the form $e^{-i\theta V}$, where $V$ is a Hermitian operator of the unitary, we can use parameter shift rule to calculate the gradient. In this paper, it says: &...
1 vote
1 answer
352 views

Quantum GAN implementation

Can anyone provide a good link to understand how to implement qgan using pytorch in qiskit. Trying to understand this ( https://qiskit.org/documentation/machine-learning/tutorials/...
1 vote
0 answers
40 views

Could kernels also be used for Reinforcement Learning?

In this paper Kernel-Based Reinforcement Learning (2002), a classical kernel-based method was demonstrated for Reinforcement Learning , which indicates that classical research in this direction is ...
1 vote
0 answers
27 views

Tensorflow_quantum hybrid models tf-quantum

I am trying to QCNN for MNIST classification equivalent to that built in. I’m having problems trying to pass my quantum circuit built with cirq as a Keras layer. Here’s what I have: ...
0 votes
1 answer
183 views

Cannot import tensorflow_quantum module in Colab

I was trying to install the tensor flow quantum module using the one given in their official website but it is showing these errors while installing. ...
3 votes
0 answers
53 views

What ways are there to use parallelisation in quantum machine learning?

In classical machine learning, GPUs have been used successfully to parallelise the training as well as the inference process. Does quantum machine learning have the same potential to operate with ...
2 votes
1 answer
123 views

Detailed references on Quantum Principal Component Analysis

I am looking for review articles and other online resources on qPCA based on Lloyd's original proposal. I have found the original source to be slightly hand-wavy with the details so I am having ...
0 votes
0 answers
57 views

Qiskit Variational Quantum Regressor - Qiskit VQR

I am new to quantum machine learning and I am trying to build a VQR with Qiskit. The input and target data to my model both have shape (32,4), where 32 is the number of samples and 4 is the number of ...
1 vote
1 answer
81 views

How to determine which embedding method to use for QML?

So there are a lot of feature mapping techniques out there for Quantum Machine Learning, but I'm not sure which one to use for my next VQC. Can anyone explain when and why to use each of the following?...
0 votes
0 answers
28 views

How to go from a classical LSTM cell to a quantum LSTM cell where the neural network parts in the LSTM cell's gates are replaced by quantum circuits?

The input data I have is a tensor with shape (num_samples, num_timesteps, num_features). A single datapoint in my problem case is a feature vector of dim = 4 which conceptually corresponds to an ...
1 vote
0 answers
51 views

The possibility of an image classifier using quantum computer architecture?

Consider an exhaustive database of all contour images that can ever be created on a 16x16 grid. Out of the $2^{256}$ unique possibilities, could a quantum computer classify all the resulting images ...
2 votes
1 answer
161 views

What is the kernel used in the IBM Qiskit's source code?

I want to redefine the QSVM code for a different kernel. But what is the kernel actually used in the IBM Qiskit's source code? And where is it defined, exactly. QSVC in Qiskit
0 votes
0 answers
24 views

Quanvolutional NN vs Quantum Convolution NN

There are 2 primary approaches for Image recognition using Quantum Neural Networks: 1. Quanvolutional one and 2. Quantum Convolutional Neural Networks. The primary difference is that in 1 we don't ...
0 votes
0 answers
21 views

The necessity of a qRAM-based state preparation in qSVT-type problems

I've been reading a couple of papers regarding qPCA and its dequantisation. In the course of my reading, it appears to me that one of the ingredients that makes this dequantisation meaningful is the ...
1 vote
0 answers
105 views

What is the relationship between the number of shots and the performance of a quantum agent?

What is the relationship between number of shots and the performance of quantum agent in Quantum neural network? and what is the limit of number of shoots in QASM simulator?
5 votes
2 answers
336 views

What does the quantum part of the quantum support vector machine actually do?

I'm implementing a quantum support vector machine on qiskit and I was wondering what the quantum part of the algorithm actually does. I'm aware that it's a feature map that executes the kernel ...
1 vote
2 answers
308 views

How to convert classical machine learning dataset to quantum dataset?

I'm looking for a way to convert images dataset to quantum dataset format to apply some quantum machine learning algorithms. Is it possible? I have read about that and I found it is possible by using ...
0 votes
1 answer
141 views

Qiskit_machine_learning QNNEstimator 'Estimator job failed' when using CU-Gates

I'm trying to construct a QNN using controlled arbitrary unitary gates. While some simple code versions work perfectly for controlled single rotations, the moment I add CU gate with parameters, the ...
1 vote
1 answer
68 views

Getting High cost function in code implementation of VQLS pennylane tutorial

I am currently trying to implement the tutorial in pennylane https://pennylane.ai/qml/demos/tutorial_vqls.html for very complex example in 3 Qubit and cost function is very high in spite of adding ...
0 votes
0 answers
23 views

How can i get the superposition of 8 bits from 26 bits outputs in qiskit

the only idea i see is get state vector from density_matrix for example, i have the circult: ...
2 votes
0 answers
62 views

RealAmplitudes ansatz

Does someone know why RealAmplitudes ansatz is made like this ? I can't find any research paper on it. Why does it use 4 Ry Gate for one qubit ?
14 votes
4 answers
2k views

Are there any examples of anyone applying quantum algorithms to problems in computational biology?

As the title suggests, I'm searching for published examples of quantum algorithms being applied to problems in computational biology. Clearly the odds are high that practical examples don't exist (yet)...
0 votes
0 answers
62 views

Most promising QML algorithms in the NISQ era

This question was asked in the previous years, but how is 2023 state of the art Quantum Machine Learning ? Things seem to go fast in this area, for instance I saw Thales used 4 qubits for quantum ...
15 votes
5 answers
3k views

Will deep learning neural networks run on quantum computers?

Deep Learning (multiple layers of artificial neural networks used in supervised and unsupervised machine learning tasks) is an incredibly powerful tool for many of the most difficult machine learning ...
0 votes
0 answers
69 views

Python implementation of Matthew Hastings' Tensor PCA algorithm

Is there any publicly available implementation of the algorithm presented in the paper Classical and Quantum Algorithms for Tensor Principal Component Analysis by Hastings?
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: ...
0 votes
0 answers
38 views

Plotting an ROC Curve with Qiskit's VQC

I'm trying to compare VQC to another algorithm using the ROC curve. I thought of using sklearn, but I am having problem replicating a decision_function for the VQC. The sklearn.metrics.roc_curves ...
5 votes
1 answer
182 views

Applications of Quantum Principal Component Analysis

I have been reading Seth Lloyd's paper on Quantum Principal Component Analysis and while there is a short discussion that points to possible applications, I am having a hard time seeing the advantage ...
1 vote
0 answers
74 views

I am optimising a variational quantum circuit to learn a distribution $p(x)$, but it doesn't converge over a training set $\mathcal{X}$?

I am training a variational quantum circuit to learn distributions: given data $s(\vec{\lambda})$, what is the probability distribution for the parameterisation $\vec{\lambda}$, i.e. the posterior ...
0 votes
1 answer
297 views

Comparing QSVM & Classic SVM on BigData. Quantum Supremacy

I work on comparing QSVM and Classic SVM (SKlearnSVM) with using Qiskit. I have to show quantum supremacy at 400000-500000 samples but I don't get good results. I have problem with long time training ...
2 votes
1 answer
192 views

What are QML algorithms using less than 8 qubits and provide a quantum advantage?

So this is more of a soft question. I've been trying to find some quantum machine learning algorithms can both be run with less than 8 qubits and provide a quantum advantage to classical machine ...
1 vote
1 answer
278 views

What do arbitrary encoding circuits provide?

I'm about to implement my first VQC for image classification and I'm trying to figure out which data encoding method could fit better the problem. From what I've understood, there are three main ...
3 votes
1 answer
75 views

Data input limitations (size) for QML

I have done quite a few Google/paper searches but did not found an answer. I would like to test the possibility of speeding up/ improving the accuracy of an existing unsupervised machine learning (...
3 votes
1 answer
125 views

Advantage of density matrix over vector to form quantum kernel

In Maria Schuld, Supervised quantum machine learning models are kernel methods, Section III.A, on page 6, the third paragraph from the bottom states While from a quantum physics perspective it seems ...
0 votes
1 answer
924 views

Hybrid Quantum LSTM in Qiskit

I read this article on a Hybrid Quantum LSTM in Pennylane and I'm trying to replicate it in Qiskit. Nevertheless it doesn't seem to work very well. Here's my code ...
0 votes
0 answers
133 views

Pennylane: Pennylane can not train the parameters of the problem

I asked this question in the Pennylane forum, but there was no reply for a long time, the link is: https://discuss.pennylane.ai/t/why-does-the-embedding-metric-learning-case-not-work/2211?u=rx1 The ...
2 votes
1 answer
188 views

Hilbert space vs RKHS

I believe in quantum machine learning, it is interesting to talk about RKHS(reproducing kernel Hilbert space) and Hilbert space where a quantum state lives in. How do we think of these two spaces? Are ...
2 votes
4 answers
121 views

Inference on real hardware using a pre-trained quantum model on a simulator

Being Quantum Computers with more than 5-7 qubits quite expensive (especially IBM's) I was wondering if it makes sense to pre-train a quantum machine learning model on a noisy simulator, store the ...
10 votes
2 answers
463 views

What are the benefits of using quantum machine learning?

I have been investigating uses for quantum machine learning, and have made a few working examples (variations of variational quantum classifiers using PennyLane). However, my issue now is its ...
4 votes
1 answer
258 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 votes
2 answers
224 views

Method and Meaning of Quantum Encoding in Quantum Machine Learning

I'm now studying quantum machine learning. While studying papers about quantum machine learning, I have a question about quantum embedding. To my knowledge, some general embedding algorithms, such as ...
43 votes
1 answer
2k views

Quantum machine learning after Ewin Tang

Recently, a series of research papers have been released (this, this and this, also this) that provide classical algorithms with the same runtime as quantum machine learning algorithms for the same ...
1 vote
1 answer
635 views

How to create a quantum circuit with 800+ features using PennyLane

I am new to Quantum ML, and I am currently using PennyLane to do the QML activity. As per this article, total number of features is equal to the total number of qubits. (In the example, they have ...
2 votes
0 answers
50 views

A path towards building quantum Computing graduation project for undergraduates

I need help. I'm a computer science student with a Data science major. I have a final graduation project this year. With that, I want to create a project in the Quantum computing field. I'm already ...
2 votes
2 answers
704 views

How well different featuremap encode the data?

Recently, I was doing research on QML. Qiskit gave detailed steps on how to encode data into quantum states, but I was confused about one point: there are different feature mapping methods under ...
6 votes
1 answer
238 views

What's new in Quantum Natural Language Processing (QNLP) w.r.t classical NLP?

I recently discovered Cambridge Quantum people have developed lambeq, a quantum natural language processing high-level library. Before diving into it, I'd like to understand more in detail what ...
1 vote
1 answer
720 views

Methodology to select the optimum feature map?

I am trying to perform a classification task with qiskit's VQC. The dataset I am using has a large number of dimensions/features/columns. I am trying to figure out which feature map works best. Also, ...