QDMI Devices v0.1
Quantum Device Management Interface Devices
|
Ready to contribute to QDMI Devices or create your own? This guide will help you get started.
Clone your fork locally
Change into the project directory
Create a branch for local development
Now you can make your changes locally.
(Optional, highly recommended) Install pre-commit to automatically run a set of checks before each commit.
uv
The easiest way to install pre-commit is via uv.brew
If you use macOS, then pre-commit is in Homebrew, usepipx
If you prefer to use pipx, you can install pre-commit withpip
If you prefer to use regular pip
(preferably in a virtual environment), you can install pre-commit withAfterwards, you can install the pre-commit hooks with
(Optional, highly recommended) Use Visual Studio Code Dev Containers. The required configurations is located under .devcontainer.
6.1. Open the repository in the Visual Studio Code
6.2 Use the Dev Container plugin to Open Folder in Container. This should install all the dependencies and set the environmental variables.
Building the project requires a C compiler supporting C11 and a minimum CMake version of 3.19.
QDMI Devices uses CMake as its build system. Building a project using CMake is a two-step process:
The following commands configure the project to build all devices.
After the build system is generated in the build
directory, the devices can be built by calling.
In case of disable a spesifc device, please use the following commanded to configure the project:
The possible option for DBUILD_THE_NAME_OF_THE_DEVICE
are as follows:
BUILD_BACKEND_QLM
: Builds the QDMI Device for Qaptiva DeviceBUILD_BACKEND_DCDB
: Builds the QDMI Device for DCDBThe other options are as follows:
BUILD_BACKEND_TESTS
: Builds the tests for the enabled devicesBUILD_DOCUMENTATION
: Builds the documentation for the enabled devicesTo build and run the devices following packages are required.
To build and run the devices following environment variables needs to be set.