# noise_benchmark **Repository Path**: dsdsdshe/noise_benchmark ## Basic Information - **Project Name**: noise_benchmark - **Description**: No description available - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-26 - **Last Updated**: 2024-01-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Benchmark ## system info |System|Info| |-|-| |Python|3.9.5| |OS|Linux x86_64| |Memory|16.62 GB| |CPU Max Thread|16| ## Install package Create isolated conda environment. ```bash conda create -n benchmark python=3.9.5 conda activate benchmark ``` ### Install Requirements ```bash pip3 install -r requirements.txt pip3 install protobuf==3.20.1 ``` ### Total Thread 16 ``` export OMP_NUM_THREADS=16 ``` ## Generate dataset ```bash CUR_DIR=`pwd` cd utils python3 generate_simple_circuit.py cd $CUR_DIR ``` ## Run benchmark ```bash cd src pytest -v --benchmark-save=all --benchmark-warmup=on --benchmark-warmup-iterations=1 ``` Or only benchmark one frame with one task, for example ```bash pytest -v --benchmark-save=mindquantum --benchmark-warmup=on --benchmark-warmup-iterations=1 -m 'simple_circuit and mindquantum' ``` Or run with a script ```bash . ./run.sh ``` Take a look at the previous result. ```bash pytest-benchmark compare 0001 ```