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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quantnet_agent-1.0.0.tar.gz.
File metadata
- Download URL: quantnet_agent-1.0.0.tar.gz
- Upload date:
- Size: 31.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5604710080b37cc9d7151d49248fc8b5707ff79c60bbfb2439adae22c4c6483
|
|
| MD5 |
4e99db099d2e926c8d44d5a9e6066d44
|
|
| BLAKE2b-256 |
443869db615e509c708d64866e4e9f3b84b606fe201370ffe16422b15518036e
|
File details
Details for the file quantnet_agent-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quantnet_agent-1.0.0-py3-none-any.whl
- Upload date:
- Size: 41.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc8817bb91b0b6d531988bf46ca33e272fe3cb5a0e60a8be3a45a72bd66502d
|
|
| MD5 |
e673a6150b64387d091e7dd158e098ed
|
|
| BLAKE2b-256 |
7bdcad912a72a249726dc0ee458f2397c7a0f39e8192123f8c2cf91e3c9dfda8
|