RUSStateFactoryConf¶ class guppyft.code.steane.encode.RUSStateFactoryConf(size: int, max_attempts: int)[source]¶ Steane RUS state factory configuration. size¶ Maximum number of states to be produced in parallel. Type: int max_attempts¶ Maximum number of repeat-until-success attempts. Type: int __eq__(other)¶ Return self==value. __init__(size: int, max_attempts: int) → None¶ __repr__()¶ Return repr(self). to_json() → str | int | float | bool | None | Mapping[str, str | int | float | bool | None | Mapping[str, JsonType] | list[JsonType]] | list[str | int | float | bool | None | Mapping[str, JsonType] | list[JsonType]][source]¶ Serialise the RUS state factory config to JSON.