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

Changes to Quantum Pooling Layer classes. #39

Closed SaashaJoshi closed 7 months ago

SaashaJoshi commented 7 months ago
  1. QuantumPoolingLayer (2 and 3) now correctly sets the unmeasured_bits property. Before this commit, unmeasured_bits were not appropriately updated for the FullyConnectedLayer. A property setter was added in the BaseLayer class to correct this bug.

  2. A conditional argument was added to the QuantumPoolingLayer (2 and 3) classes. This argument helps determine if a dynamic circuit or mid-circuit measurement must be performed in the layer.