CQCL / hugr

Hierarchical Unified Graph Representation for quantum and classical programs
https://crates.io/crates/hugr
Apache License 2.0
18 stars 5 forks source link

All extensions should have a machine readable source of truth #1228

Closed doug-q closed 2 months ago

doug-q commented 3 months ago

We need to be able to exchange extension definitions between different hugr tools.

All extension documentation should be generated by loading the extension and .print_docs_markdown()ing it.

Extensions are already serialisable, with the caveat of #1057 YAML Declarative extensions are one source of machine readable extensions, but not the only one. Extensions should be exchanged in JSON and validated against a versioned schema, just like Hugrs.

Tasks: