Skip to main content

The QN Agent for Quant-Net Control Plane

Project description

Quant-Net Agent

The QUANT-NET Control Plane (QNCP) runs as a distributed system. This Agent registers resources, interfaces with devices, and interprets protocol commands from a Controller instance. The Agent package includes the concept of extensible command interpreters, which define the behavior of the Agents when processing protocol messages and interacting with the underlying hardware or simulation devices.

The Agent includes a hardware abstraction layer (HAL) that defines a base set of hardware classes for managing the interaction with quantum devices and external experiment control frameworks.

Development Install

Pull requirements and install package in edit mode.

pip3 install -e .

The quantnet_agent script will be available in your local path, or check ~/.local/bin

$ quantnet_agent --help
Usage: quantnet_agent [OPTIONS]

Options:
  -c, --config TEXT         Main configuration file  [default:
                            ./config/agent.cfg]
  -n, --node-config TEXT    Node configuration file  [default: ~/.quant-
                            net/node.json]
  -a, --agent_id TEXT       Specify an agent identifier  [default: ]
  --mq-broker-host TEXT     Message queue broker host
  --mq-broker-port INTEGER  Message queue broker port
  -d, --debug               Enable debug logging
  --interpreter-path TEXT   Location of additional command interpreters
  --schema-path TEXT        Specify a path containing additional schema files
  --help                    Show this message and exit.

Example usage

An MQTT broker should be available for the agent to connect to. A development docker-compose file that starts an Eclipse Mosquitto instance is available in quant-net-docker:docker-compose-backend.yml

Testing node config files exist in quant-net-mq:quant-net-mq/schemas/examples

Running the agent:

quantnet_agent --mq-broker-host <broker> -n <path_to>/quant-net-mq/quantnet_mq/schema/examples/conf_qnode.json

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quantnet_agent-1.1.0.tar.gz (30.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quantnet_agent-1.1.0-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

Details for the file quantnet_agent-1.1.0.tar.gz.

File metadata

  • Download URL: quantnet_agent-1.1.0.tar.gz
  • Upload date:
  • Size: 30.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for quantnet_agent-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4d53e35cef8cdc2a9134909a7d86714dc97053c80c968c43729cffb8424638b7
MD5 978bb82cc8afff1078fce7363aeb6bb0
BLAKE2b-256 cc1a220bbc1af51576119e1ff580a83bf52f15de90357f177bb34928c785e685

See more details on using hashes here.

File details

Details for the file quantnet_agent-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: quantnet_agent-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for quantnet_agent-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd631a5c662a89772b5ae59246c4aba1d3897c8e3b303d31c2610ae79166b6a1
MD5 6d2283a49a8de215bcc9a2cc4e066bca
BLAKE2b-256 dcacb05e9774f5e9e07d54e2421ba5d096204afee6b9ade575415cd5ad5b29e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page