Replies: 1 comment 7 replies
-
@ystade 🤔
Do you mean here qubit registers references? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Within our work on MLIR, we have a dialect following value semantics used for optimisation(MQTOpt). Additionally, we have currently one dialect following reference semantics for easier translation between in-/output dialects (MQTDyn). Naturally, we need to convert between those two.
During conversion, one major issue are functions but also if-branches and while-loops consuming qubits. Such that the program is valid in value semantics all of them must return the new qubit value. However, that’s not needed in reference semantics. We now decided that the canonical form in reference semantics actually is that qubit references that enter a function are never returned.
In any case, we must modify function signatures during translation between those two dialects. Even though this does not seem intuitive for us, it was the only “correct” way we could think of.
Let’s have a discussion on that solution and other aspects that come up related to that conversion.
Beta Was this translation helpful? Give feedback.
All reactions