Configurations
All configurations can all be created via two routes:
Directly created using initialization and keyword arguments:
depolarise_config = DepolariseLinkConfig(fidelity=0.9) link = LinkConfig(stack1="Alice", stack1="Bob", typ="depolarise", cfg=depolarise_config)
Loading from a YAML configuration file:
cfg = StackNetworkConfig.from_file("config.yaml")
For more details regarding usage patterns of configurations, see the tutorial section: Configuration file.
Network Configuration
- class squidasm.run.stack.config.StackNetworkConfig(**data)
Full network configuration.
- stacks:
List[StackConfig]List of all the stacks in the network.
- links:
List[LinkConfig]List of all the links connecting the stacks in the network.
- clinks:
Optional[List[CLinkConfig]]List of all the links connecting the stacks in the network.
- classmethod from_file(path)
Load the configuration from a YAML file.
- Return type: