openqasm / qe-compiler

An MLIR based compiler dynamic circuit compiler for real-time control systems supporting OpenQASM 3
Other
46 stars 15 forks source link

Add an option to emit target specific payload #146

Closed hhorii closed 1 year ago

hhorii commented 1 year ago

Currently, -emit=qe-qem always generate ZIP payload which is not target-specific. This PR to add an option to allow a target to generate target-specific payload.

qss-compiler manages payload generation by using qssc::payload::registry::PayloadRegistry which associate a string key to a payload format. When -emit=qem is specified, qssc::payload::ZipPayload is looked up by using the key "ZIP". However, in general, each device has own format for its payload and such zip format causes extra overheads for conversion.

This PR introduces a new option "-emit=qe-qem" (Quantum Engine QEM) for qss-compiler to look up PayLoad from PayloadRegistry with a target name. If no Payload is set, error is thrown.

github-actions[bot] commented 1 year ago

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] commented 1 year ago

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] commented 1 year ago

clang-tidy review says "All clean, LGTM! :+1:"

hhorii commented 1 year ago

@taalexander could you review this PR again? I believe that I applied your comments on it (if my understanding is correct.)

github-actions[bot] commented 1 year ago

clang-tidy review says "All clean, LGTM! :+1:"

github-actions[bot] commented 1 year ago

clang-tidy review says "All clean, LGTM! :+1:"