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

New data structure for 'qubits' in classes TTN and MERA #3

Closed SaashaJoshi closed 10 months ago

SaashaJoshi commented 10 months ago

Currently, the classes TTN and MERA use qubit_list and qubits list data structures to store the qubit indices as required. This, after observation, comes out as a redundant and inefficient way of storage when data structures like QuantumRegister and Qubit are made available by Qiskit.

Perhaps, modification to the code that replaces the existing list data structure with QuantumRegister or Qubit is required.