matthias
matthias
## The Problem The problem is the following. Given a circuit representation of a quantum program, there is no canonical way of representing these as an MLIR program. For example,...
> But it's highly likely that I am missing something here. Yes and no. What you are describing works just fine. That's not the problem. I think I'm just really...
# Intermediate Thoughts ## Solution Iterate the circuit from a _circuit perspective_ via the def-use chain (with the help of the `WireIterator`) and collect layers and the respective `Operation*`s of...
> Thanks for your work! Lukas pointed me to your PR because I could make use of your `WireIterator` over in #1206. An extension I would also need is the...
Once this is done, the `flags: uint16_t` member variable of the `NodeBase` class might be refactored into a struct using [bit fields](https://en.cppreference.com/w/cpp/language/bit_field.html) as such: ```cpp struct Flags { std::uint32_t keep...