Closed ibm-wakizaka closed 11 months ago
I have to change the test scripts (test_compile.py
, ...) for the simulator target. I'll update them in a few days.
@taalexander @mhillenbrand @hhorii This PR is very huge and seems to contain several features so I will split it into some smaller PRs and close this PR.
This PR will be divided into smaller PRs:
154
156
172
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 qasm files in
target_simulator/test/Conversion
.Requirements
We need a dynamic library
libaer.so
to run a generated object file.How to use
Note that we may have to additional options to identify the location of
libaer.so
when generating an executable file with clang.