To run, follow the steps below.
- Create a virtual environment and activate it
python3 -mvenv venv --prompt bench
source venv/bin/activateOn Windows platforms, replace the activation line with either
bench\Scripts\activate.bat (Command Prompt) or
.\bench\Scripts\Activate.ps1 (PowerShell).
- Install the requirements
CMAKE_ARGS="-DENABLE_OPENMP=ON -DLQ_ENABLE_KERNEL_OMP=ON" \
pip install --no-binary=pennylane-lightning --force-reinstall pennylane-lightning && \
pip install -r requirements.txt- Run the benchmark
python bench.pyTo be able to run the native C++ QPPEngine, first build the required
executables
cmake -S cpp -B cpp/build
cmake --build cpp/build- For additional help, run
python bench.py --help