Configurations

All configurations can all be created via two routes:

  1. Directly created using initialization and keyword arguments:

    depolarise_config = DepolariseLinkConfig(fidelity=0.9)
    link = LinkConfig(stack1="Alice", stack1="Bob", typ="depolarise", cfg=depolarise_config)
    
  2. 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.

List of all the links connecting the stacks in the network.

List of all the links connecting the stacks in the network.

classmethod from_file(path)

Load the configuration from a YAML file.

Return type:

StackNetworkConfig

Stacks configurations