squidasm
latest

Installation

  • Installation

Tutorial:

  • Overview
  • Basics
  • NetQASM
  • Simulation control
  • Network configuration
  • Terminology

API

  • Overview
    • Configurations
      • Network Configuration
      • Stacks configurations
      • Link configurations
      • CLink configurations
        • CLink Configurations
    • Run
    • Logger
    • Program
    • Classical socket
    • Util
    • Routines
squidasm
  • Overview
  • Configurations
  • CLink Configurations
  • Edit on GitHub

CLink Configurations

class squidasm.run.stack.config.CLinkConfig(**data)

Configuration for a single clink.

stack1: str

Name of the first stack being connected via clink.

stack2: str

Name of the second stack being connected via clink.

typ: str

Type of the clink.

cfg: Any

Configuration of the clink, allowed configuration depends on type.

classmethod from_file(path)

Load the configuration from a YAML file.

Return type:

CLinkConfig

classmethod perfect_config(stack1, stack2)

Create a configuration for a link without any noise or errors.

Return type:

LinkConfig

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: float

The speed of light [km/s] in the fiber. Default is 200000 km/s.

Previous Next

© Copyright 2023, QuTech. Revision d36d3af1.

Built with Sphinx using a theme provided by Read the Docs.