Research Article

An Image Classification Algorithm Based on Hybrid Quantum Classical Convolutional Neural Network

Algorithm 1

HQCCNN classification algorithm.
Input: classical image dataset
1preparing quantum state, the training set and the testing set are obtained.
2constructing hybrid quantum-classical convolutional neural network
3setting the values for batchsize, epoch, and learning rate
4for each epoch do
5for each batchsize do
6  quantum system perform unitary transformation ,
7  measuring, inputting into the classical fully connected layer for further processing,
8  calculating the loss value and gradient, updating the parameters based on the gradient and learning rate.
9end for
10 validating testing set
11end for
Output: each image’s class