SaashaJoshi / piQture

piQture: A quantum machine learning library for image processing.
https://saashajoshi.github.io/piQture/
Apache License 2.0
15 stars 7 forks source link

num_qubits must be replaced with img_dimen #43

Closed SaashaJoshi closed 7 months ago

SaashaJoshi commented 7 months ago

While constructing a QuanvolutionalNeuralNetwork, I realized that to have restrictions on the max size of the kernel/filter and stride of the quanvolutional layer, information about the dimensions of the image is necessary.

This will perhaps bring a huge change to the pipeline since everything as of now (before this issue) depends on num_qubits = int(math.prod(img_dimen)).

SaashaJoshi commented 7 months ago

This change might be needed only for Quanvolutional structures (layer or neural network) for now.