compile(program, to_native_gates=True, optimize=True)¶
A high-level interface to program compilation.
Compilation currently consists of two stages. Please see the
AbstractCompilerdocs for more information. This function does all stages of compilation.
Right now both
optimizemust be either both set or both unset. More modular compilation passes may be available in the future.
Parameters: Return type:
An executable binary suitable for passing to