openqasm / qe-compiler

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

Allow target-specific parameter binding #238

Closed hhorii closed 5 months ago

hhorii commented 5 months ago

This PR extends existing API to bind parameters by adding EmitAction into arguments of getBindArgumentsImplementationFactory(). and an appropriate BindArgumentsImplementationFactory can be selected based on emit value. For example, in case of qem, BindArgumentsImplementationFactory will generate an instance that binds parameters assuming its base file is formatted with qem (Zip). In case of qe-qem, the instance will assume target-specific format.

hhorii commented 5 months ago

@bcdonovan Thank you for your suggestion. I added QSSCArguments and QSSCError into dependencies of QSSCPayload and then successfully built codes. (BTW, These dependencies were necessary in gcc@Linux env but not in Clang@Mac.)