SteaneInstance¶
- class guppyft.code.steane.encode.SteaneInstance(_spec, _options)[source]¶
A Steane architecture instance built by SteaneBuilder.build.
- __init__(_spec, _options)¶
- annotate(hugr)[source]¶
Annotate the current parameters of the Steane code architecture on the given HUGR in metadata. See guppyft.encode.annotate for more information.
- Return type:
- check_may_encode(hugr)[source]¶
Check whether any issues can be detected that would arise when trying to encode the given package, e.g. the package containing unsupported gates.
Note that this function returning without error is not a guarantee that a subsequent call to encode will succeed.
- Return type: