cudaq.translate
API should adhere to the codegen of the set target
#2643
Labels
cudaq.translate
API should adhere to the codegen of the set target
#2643
Issue
cudaq.translate
API emits the same code irrespective of the target being set.For example,
braket
andinfleqtion
are two targets that emit OpenQASM2.0, each has its own codegen pipeline. (See the respective configuration files). However usingcudaq.set_target("braket")
orcudaq.set_target("infleqtion")
has no effect on the output ofcudaq.translate(kernel, format='openqasm2')
.Expected behavior
The output of translate should change according to the target being used. If a target does not emit OpenQASM2.0 then revert to the default pipeline.
Observed on
main
as of commit id 4c2e1c9.The text was updated successfully, but these errors were encountered: