SaashaJoshi / piQture

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

MERA implementation has too many branches. #17

Closed SaashaJoshi closed 9 months ago

SaashaJoshi commented 9 months ago

The current MERA implementation has too many branches in a single function. This raises a pylint error (which is currently silenced). One option could be to divide the current mera function into multiple staticmethods.

https://github.com/SaashaJoshi/quantum-image-processing/blob/3bf42e11d09e2e0f82c5f68cb519b3225370b58c/quantum_image_processing/models/tensor_network_circuits/mera.py#L119-L128