SteaneBuilder¶
- class guppyft.code.steane.encode.SteaneBuilder(*, _zero_factory_conf: ~guppyft.code.steane.encode.RUSStateFactoryConf = <factory>, _magic_factory_conf: ~guppyft.code.steane.encode.RUSStateFactoryConf = <factory>, _qec_policy: ~guppyft.code.steane.encode.QECPolicy = <factory>)[source]¶
Steane architecture builder class for creating SteaneInstance objects.
- __delattr__(name)¶
Implement delattr(self, name).
- __eq__(other)¶
Return self==value.
- __init__(*, _zero_factory_conf: ~guppyft.code.steane.encode.RUSStateFactoryConf = <factory>, _magic_factory_conf: ~guppyft.code.steane.encode.RUSStateFactoryConf = <factory>, _qec_policy: ~guppyft.code.steane.encode.QECPolicy = <factory>) None¶
- __repr__()¶
Return repr(self).
- __setattr__(name, value)¶
Implement setattr(self, name, value).
- build(n_blocks: int) SteaneInstance[source]¶
Build a SteaneInstance configured for n_blocks logical blocks.
- classmethod from_params(params: SteaneEncoderParams) SteaneInstance[source]¶
Build a Steane instance from encoding parameters.
- with_magic_factory_conf(conf: RUSStateFactoryConf) Self[source]¶
Set the magic state factory configuration.
- with_zero_factory_conf(conf: RUSStateFactoryConf) Self[source]¶
Set the zero state factory configuration.