quil-lang / quilc

The optimizing Quil compiler.
Apache License 2.0
452 stars 73 forks source link

resolve stdgates.quil conditionally #856

Closed macdavid313 closed 1 year ago

macdavid313 commented 1 year ago

Change-Id: I6eee03087f11473aad0103cb1329c644bbef53b9 Reviewed-on: https://gerrit.franz.com:9080/c/quilc/+/20753 Tested-by: Kevin Layer layer@franz.com Reviewed-by: Kevin Layer layer@franz.com

stylewarning commented 1 year ago

PR #859 exposes cl-quil.frontend:initialize-standard-gates (useful for re-initialization) as well as *default-standard-gates-file* (useful for inspection) of the same package.

It also checks the environment variable QUILC_STANDARD_GATES_FILE (useful for compile-time configuration) during compilation to set *default-standard-gates-file*, otherwise it defaults to the asdf:system-relative-pathname.