-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update directory structure for neural networks #27
Conversation
… in a separate folder for base_layer and other layers.
Currently, layers take an input |
Also, the inputs |
…put as compared to img_dims previously.
a540ab2 |
self.qreg = QuantumRegister(self.num_qubits) | ||
self.creg = ClassicalRegister(self.num_qubits) | ||
self.circuit = QuantumCircuit(self.qreg, self.creg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Circuit initialization can be performed in the QuantumNeuralNetwork
base class.
quantum_image_processing/models/neural_networks/layers/base_layer.py
Outdated
Show resolved
Hide resolved
update tests for tensor network circuits after changes made in PR #27
This PR handles multiple tasks:
neural_networks
moduleA. This change led to several follow-up changes to
tensor_network_circuits
module. Major change was to replaceimg_dims
withnum_qubits
such that the NNlayers
can be applied on to the circuit with the help oftensor_network_circuit
objects.3. Add unit tests for(separate PR)QCNN
and several NN layers.QuantumPooilingLayer3
to close Update Pooling layer to perform measurements in two of the three adjacent qubits; as mentioned in the referred paper. #9