basic_compile

forest.benchmarking.compilation.basic_compile(program: pyquil.quil.Program)

A rudimentary but predictable compiler.

No rewiring or optimization is done by this compilation step. There may be some gates that are not yet supported. Gates defined in the input program are included without change in the output program.

Parameters:program – a program to be compiled to native quil with simple replacements.
Returns:a program with some of the input non-native quil gates replaced with basic native quil gate implementations.