Closed SaashaJoshi closed 7 months ago
Currently, layers take an input unmeasured_bits
of the type(dict)
that stores the unmeasured qubits and clbits of the QNN circuit. The question is if this input should instead be a list
with the index of the unmeasured qubits/clbits only. Having a list structure may save us from (redundantly) storing qubits and clbits on the same indices; since measurement means both the qubit and the corresponding clbit are used.
Currently, layers take an input
unmeasured_bits
of thetype(dict)
that stores the unmeasured qubits and clbits of the QNN circuit. The question is if this input should instead be alist
with the index of the unmeasured qubits/clbits only. Having a list structure may save us from (redundantly) storing qubits and clbits on the same indices; since measurement means both the qubit and the corresponding clbit are used.
Also, the inputs num_qubits
and unmeasured_bits
(or qubits
in some PR commits) should be mutually inclusive since the layers are built on unmeasured qubits only.
So the len(unmeasured_qubits) = num_qubits
, unless when unmeasured_qubits = None
a540ab2
This commit follows up on several changes to tensor_network_circuits
module. The major change was to replace img_dims
with num_qubits
such that the NN layers
can be applied on to the circuit with the help of tensor_network_circuit
objects.
The test files for these changes will be updated in another PR.
This PR handles multiple tasks:
neural_networks
module A. This change led to several follow-up changes totensor_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 #9