Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/intellabs/hybrid-quantum-classical-library
Hybrid Quantum-Classical Library (HQCL)
https://github.com/intellabs/hybrid-quantum-classical-library
quantum quantum-algorithms quantum-computing
Last synced: about 2 months ago
JSON representation
Hybrid Quantum-Classical Library (HQCL)
- Host: GitHub
- URL: https://github.com/intellabs/hybrid-quantum-classical-library
- Owner: IntelLabs
- License: apache-2.0
- Created: 2022-05-23T18:34:36.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T16:37:13.000Z (10 months ago)
- Last Synced: 2024-03-19T17:54:58.498Z (10 months ago)
- Topics: quantum, quantum-algorithms, quantum-computing
- Language: C++
- Homepage:
- Size: 92.2 MB
- Stars: 5
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: Security.md
Awesome Lists containing this project
README
Hybrid Quantum-Classical Library (HQCL)
A high-level library to automate the execution of Hybrid Quantum-Classical algorithms with the Intel(R) Quantum SDK. The library allows the user a high degree of programmability in defining and manipulating hybrid algorithms during runtime, while maintaining the faster program execution of the fully compiled (as opposed to transpiled) Intel quantum stack.
## **Hybrid Quantum-Classical Library Build Instructions**
- Prequisites to using this library is to first install OpenBLAS and LAPACK, along with the corresponding development/header files or Intel(R) Math Kernel Library (Intel(R) MKL) which is available as part of the Intel(R) oneAPI Suite. This is required to use the third-party library Armadillo.
- Compile the library using the following instructions
```
$ git clone https://github.com/IntelLabs/Hybrid-Quantum-Classical-Library.git
$ cd Hybrid-Quantum-Classical-Library
$ mkdir build
$ cd build
$ cmake ..
$ make -j32
```- Once the library is built, compile a hybrid algorithm from the hybrid-quantum examples directory. The examples needs to be compiled using the Intel(R) Quantum compiler available as part of Intel(R) Quantum SDK package.
```
$ export OMP_NUM_THREADS=1 # For running w/ Intel(R) Quantum Simulator
$ export LD_LIBRARY_PATH=/build/lib:$LD_LIBRARY_PATH
$ ./intel-quantum-compiler -I/build/include -L/build/lib -larmadillo -lhqcl /examples/excited_states_q2.cpp
```- Users will have the option to use the third-party ensmallen and dlib c++ optimization libraries. The libraries are built by default but will have the option to build individually using BUILD_ENSMALLEN_LIB=ON/OFF and BUILD_DLIB_LIB=ON/OFF cmake options.
Contributors
- Atul Kulkarni
- Nicolas Sawaya
- Shavindra Premaratne