Installation on Linux¶
It is recommended to verify the Quantum Origin package before installation. Verification guide can be found Package Verification.
Installing¶
Note
You may see a warning stating that the download is performed “unsandboxed as root.” This is expected when installing a local .deb file and does not indicate an error. The package will install correctly.
# Install the Quantum Origin SDK using the apt install command.
# Replace <VERSION> and <ARCH> with the desired version and architecture of your system.
sudo apt install ./libquantum_origin_sdk_<VERSION>-Release_<ARCH>.deb
Note
The NOKEY warning means the RPM VERIFYING key isn’t imported. Please follow the steps RPM Verification to import the public key.
# Install the Quantum Origin SDK using the dnf install command.
# Replace <VERSION> and <ARCH> with the desired version and architecture of your system.
sudo dnf install ./libquantum_origin_sdk-<VERSION>-Release.<ARCH>.rpm
Installed Folders and Files¶
On Linux based-platforms, the installed files are all within the top-level /usr directory.
Specifically:
Item(s) |
Directory |
|---|---|
Implementation (libraries) |
/usr/lib/ |
Interface (header files) |
/usr/include/quantum_origin/ |
Documents |
/usr/share/doc/libquantum_origin_sdk/ |
Sample code |
/usr/share/doc/qosdk_sample_code/ |
Implementation (libraries)¶
/usr/lib/libquantum_origin_sdk.so.<VERSION>
/usr/lib/libquantum_origin_sdk.so -> /usr/lib/libquantum_origin_sdk.so.<VERSION>
Interface (header files)¶
/usr/include/quantum_origin/quantum_origin_sdk_c.h
Documents¶
/usr/share/doc/libquantum_origin_sdk/LEGAL_LICENSE
/usr/share/doc/libquantum_origin_sdk/README.txt
Sample code¶
- The sample code on Linux systems is located at:
/usr/share/doc/qosdk_sample_code/
Sample code - Documentation¶
README.txt
Sample code - Sources¶
qosdk_sample_code_A_using_config_file.c
qosdk_sample_code_B_using_setopt_api.c
qosdk_sample_code_C_minimal_get32bytes.c
qosdk_sample_code_D_minimal_coinflip.c
qosdk_sample_code_E_minimal_get32bytes_using_setopt_api.c
qosdk_sample_code_F_minimal_coinflip_using_setopt_api.c
Sample code - License Files¶
These files are required but are supplied separately by Quantinuum (or your vendor):
quantum_origin_config.yml
quantum_origin_license.h
Sample code - Build Scripts¶
qosdk_samples_build.sh
qosdk_samples_run.sh
Please see the Sample Code section for details of how to build the supplied sample code.
Furthermore, there is a README file in the sample_code directory which contains further information on building and executing the sample code. This is useful as a confirmation that the installation has been a success, but also as a useful starting point for ones own development or integration.