CLink Configurations
- class squidasm.run.stack.config.CLinkConfig(**data)
Configuration for a single clink.
- stack1:
strName of the first stack being connected via clink.
- stack2:
strName of the second stack being connected via clink.
- typ:
strType of the clink.
- cfg:
AnyConfiguration of the clink, allowed configuration depends on type.
- classmethod from_file(path)
Load the configuration from a YAML file.
- Return type:
- classmethod perfect_config(stack1, stack2)
Create a configuration for a link without any noise or errors.
- Return type:
- class squidasm.run.stack.config.InstantCLinkConfig(**data)
Configuration for instant classical links.
This model provides instant classical messaging between nodes.
- classmethod from_file(path)
Load the configuration from a YAML file.
- Return type:
Any
- class squidasm.run.stack.config.DefaultCLinkConfig(**data)
Configuration for default classical links.
This model delays classical messages with the given delay, or calculates it based on distance and the speed of light.
- classmethod from_file(path)
Load the configuration from a YAML file.
- Return type:
Any
- delay:
Optional[float]The delay [ns] for the classical message to propagate through the clink.
- length:
Optional[float]The length [km] of the clink. If provided, the delay will be calculated based on this and the speed of light.
- speed_of_light:
floatThe speed of light [km/s] in the fiber. Default is 200000 km/s.