encodeΒΆ
Abstractions for constructing QEC architectures.
Classes
|
A QEC-code-specific collection of passes that together fully encode a computation. |
|
|
|
|
|
A specification for the implement ops pass, supplying implementations to a set of HUGR extension ops. |
|
|
|
A composable pass that replaces extension ops in a Hugr according to the given mappings. |
Functions
|
|
|
Encodes the given package (or Guppy function, directly compiled to a package for convenience) by applying four stages: |
Enriches the given package using the given spec by replacing all operations in the program with function calls to the functions in spec.ops. |
Exceptions