SteaneInstance¶
- class guppyft.code.steane.encode.SteaneInstance(_spec: EncodeSpec, _n_blocks: int, _options: _SteaneOptions)[source]¶
A Steane architecture instance built by SteaneBuilder.build.
- __eq__(other)¶
Return self==value.
- __init__(_spec: EncodeSpec, _n_blocks: int, _options: _SteaneOptions) None¶
- __repr__()¶
Return repr(self).
- annotate(hugr: Package | Hugr[Any]) None[source]¶
Annotate the current parameters of the Steane code architecture on the given HUGR in metadata. See guppyft.encode.annotate for more information.
- check_may_encode(hugr: Package) None[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.