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
I just tried to take a QIR file output from qcor and translate to the base profile with the QAT tool from the QIR Alliance. It did not work out of the box. Turns out, QAT will look for a function attribute and perform the transformation from there.
From Stefan
QAT looks for a specific LLVM attribute to know which function to start it’s processing from.
This can be either “InteropFriendly” (the default) or “EntryPoint” (selectable with “—entry-point-attr EntryPoint”).
Then the IR needs to be updated to have that attribute on exactly one function.
In this case, if I update main to include that attribute, the transformation succeeds.
Also there is a discrepancy with our measurement call
One other thing to note: transformation of measurement into the form described in the base profile,
which uses static result identifiers, is dependent on seeing the intrinsic “__quantum__qis__m__body”
as the measurement function. That’s why the “__quantum__qis__mz” in the above did not get transformed.
The text was updated successfully, but these errors were encountered:
I just tried to take a QIR file output from qcor and translate to the base profile with the QAT tool from the QIR Alliance. It did not work out of the box. Turns out, QAT will look for a function attribute and perform the transformation from there.
From Stefan
Also there is a discrepancy with our measurement call
The text was updated successfully, but these errors were encountered: