Skip to main content

https://arxiv.org/abs/2312.16985

Project description

pipeline status coverage report

qsensoropt

qsensoropt is a library based on Tensorflow 2 for the automatic optimization of adaptive and non-adaptive controls in quantum metrology tasks.

Docs

Documentation for this project is available on gitlab pages.

Along with the description of all the modules, the documentation contains many examples of use on which the user can base new applications.

Installation

The following instructions are written for a Linux system. It is advisable to install qsensoropt in a conda environment created for the purpose.

  1. If conda is not available on you machine, install it with the following commands

    curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o Miniconda3-latest-Linux-x86_64.sh
    bash Miniconda3-latest-Linux-x86_64.sh
    
  2. Resource the bash configuration with

    source ~/.bashrc
    
  3. Create a new conda environment named qsensoropt

    conda create --name qsensoropt python>=3.10
    
  4. Activate the environment just created and upgrade pip

    conda activate qsensoropt
    pip install --upgrade pip
    
  5. qsensoropt is based on Machine Learning and a such it is best used with a GPU. If a GPU is available on your system you can use it by installing CUDA and cuDNN

    conda install -c conda-forge cudatoolkit=11.8
    pip install nvidia-cudnn-cu11==8.6
    

    Configure the system path with

    mkdir -p $CONDA_PREFIX/etc/conda/activate.d
    echo 'CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)"))' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
    echo 'export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/:$CUDNN_PATH/lib:$LD_LIBRARY_PATH' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
    

    and restart the environment with

    conda deactivate
    conda activate qsensoropt
    
  6. Clone the repository and enter in the qsensoropt directory

    git clone https://gitlab.com/federico.belliardo/qsensoropt.git
    cd qsensoropt
    
  7. Install the qsensoropt library and all its dependencies

    pip install -e .
    

Congratulation! You can now optimize your quantum sensor!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qsensoropt-1.0.0.tar.gz (39.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qsensoropt-1.0.0-py3-none-any.whl (93.5 kB view details)

Uploaded Python 3

File details

Details for the file qsensoropt-1.0.0.tar.gz.

File metadata

  • Download URL: qsensoropt-1.0.0.tar.gz
  • Upload date:
  • Size: 39.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for qsensoropt-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0ee339ad7d4db03eac2457a12d76bd3d2dd891554461b237237db28dcc335a31
MD5 17230604b48f6c2f70b8bd0316fae6f3
BLAKE2b-256 1085ab74d7fc4a17d9b1377abbfba0cd84b9a4f9acc3233a3c7fc92c40323deb

See more details on using hashes here.

File details

Details for the file qsensoropt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qsensoropt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 93.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for qsensoropt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2bcf79253a5eabe9d5a1f05d82c738a03231fa60d531a82628687d34a381212e
MD5 56eff9632299b15dc3f63a1f9a7fbbb7
BLAKE2b-256 4e6a4f15b9aa89be04f65025a7c58688069475a6ca6426a8aba900404c686c93

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page