You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though the mentioned issue has been closed (still have to read that).
Thus, we should make sure that whatever is in a gate will be Copy, or choose a different scheme for the C API and implement a mapping in the bindings.
Size
Also consider that the size of a union is the size of its biggest field (rounded to the alignment). This means that, even if we limited to store arrays and whatever needed in a Copy-struct, every gate would have the size of an arbitrary Unitary (or the largest gate we have).
This might be irrelevant, but it would certainly blow up the memory consumption.
The text was updated successfully, but these errors were encountered:
Note
This is mostly a note to myself
There might be an issue if we're going to generate C bindings directly from the current
Gate
layout.The reason is the following:
Even though the mentioned issue has been closed (still have to read that).
Thus, we should make sure that whatever is in a gate will be
Copy
, or choose a different scheme for the C API and implement a mapping in the bindings.Size
Also consider that the size of a union is the size of its biggest field (rounded to the alignment). This means that, even if we limited to store arrays and whatever needed in a
Copy
-struct, every gate would have the size of an arbitraryUnitary
(or the largest gate we have).This might be irrelevant, but it would certainly blow up the memory consumption.
The text was updated successfully, but these errors were encountered: