♻️ Merging QuantumComputation and
NAComputation`
#875
Replies: 1 comment
-
Hey @ystade 👋🏼 Here comes the longer and bigger discussion. 🙃 I agree with a lot of what you stated above. In general, I believe there is a purpose for multiple circuit representations (as also proven by our ongoing discussions with regard to MLIR). In the same spirit, multiple output formats are warranted. Deeper down the software stack, different kinds of information are needed that might not all be expressible in a single format. At the same time, there is lots of duplication and little connection between the representation we currently use. The While there are certain fundamental differences between the different levels of abstraction (for example, qubits being indexed via 1D or 2D coordinates), I would really strive for a solution that does not duplicate every single concept between the hierarchies, but rather unifies them as much as possible.
|
Beta Was this translation helpful? Give feedback.
-
We started the discussion on whether it makes sense to merge
NAComputation
into the existingQuantumComputation
. As it stands right now, I would still argue that it makes sense to keep the concepts separate even though I see the duplication of code here. There are a few fundamental differences, that I want to list in the following. Most of the points are a consequence of that theQuantumComputation
was primarily designed with SC and qiskit in mind.QuantumComputation
. Even though this is not a deal breaker to add those, it may add additional checks to existing tools, whether a givenQuantumComputation
can be processed or not.QuantumComputation
(which actually exist somewhere already created by Ludwig), this causes some changes in the infrastructure. For example, the standard output format of aQuantumComputation
is QASM. However, QASM does not support shuttling operations. Me personally, I would be quite hesitant to add some custom syntax to QASM for shuttling operations as seems not the right way to be to augment something that is tailored to SC for NA. This is mainly related to the next point.NAComputation
with concrete base classes for every operation and ouput new.naviz
format #846 was to makeNAComputation
output the new format that mqt-naviz understands. I would very much like to keep this feature. This means when merging both representations,QuantumComputation
requires a new output method for the.naviz
format.Overall, I think everything is possible and there is no fundamental obstacle of merging both representations. It just generates some work to merge the different concepts. Additionally, one must accept that one merges the concepts of computations meant for SC and for NA.
Originally posted by @ystade in #862 (comment)
Beta Was this translation helpful? Give feedback.
All reactions