Closed ibm-wakizaka closed 7 months ago
Certainly! The main differences are listed below:
BinaryPayload
)--simulator-output-cregs
, --simulator-quir-to-aer
)Simulator
-> AerSimulator
--target aer-simulator
@mhillenbrand Thank you for your comments! I changed code by your suggestions.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.
I will create a PR from my repository based on this PR.
Summary
Add a simulator target for simulator using Aer runtime API.
Details
Add a pass that convert QUIR and OQ3 dialects to LLVM's standard dialect that calls Aer functions. Currently all features in OpenQASM3 are not supported. The supported features is listed below:
Please see sample files in
targets/simulators/aer/test/Conversion
.Requirements
We need a dynamic library
libaer.so
to run a generated object file.How to use
Remark
Currently, the option
--emit=qem
generates a zip file which contains manifest.json and an object file but it cannot be executed itself. The feature to output a binary file will be a big task so I will create another PR to support it.