Skip to main content

Qarray, a GPU accelerated quantum dot array simulator, leveraging parallelised Rust and JAX XLA acceleration

Project description

QArray

PyPI arXiv Read the Docs GitHub Workflow Status GitHub Workflow Status GitHub Workflow Status

Paper: QArray: a GPU-accelerated constant capacitance model simulator for large quantum dot arrays; Barnaby van Straaten, Joseph Hickie, Lucas Schorling, Jonas Schuff, Federico Fedele, Natalia Ares

Documentation:https://qarray.readthedocs.io/en/latest/introduction.html

QArray harnesses the speed of the systems programming language Rust or the compute power of GPUs using JAX XLA to deliver constant capacitance model charge stability diagrams in seconds or milliseconds. It couples highly optimised and parallelised code with two new algorithms to compute the ground state charge configuration. These algorithms scale better than the traditional brute-force approach and do not require the user to specify the maximum number of charge carriers a priori.

QArray runs on both CPUs and GPUs and is designed to be easy to use and integrate into existing workflows. It was developed on macOS running on Apple Silicon and is continuously tested on Ubuntu-latest, macOS13, macos14, Windows-latest.

Finally, QArray captures physical effects, such as measuring the charge stability diagram with a SET and thermal broadening of charge transitions. The combination of these effects permits the simulation of charge stability diagrams, which are visually similar to those measured experimentally.

Installation

We have tried to precompile the binaries for as many platforms as possible if you are running one of those operating systems, you can install QArray with just pip:

pip install qarray

If you slip through the gaps, then the pip install will try to compile the binaries for you. This might require you to install some additional dependencies. In particular, you might need to have cmake and Rust installed.

Install rust from: https://www.rust-lang.org/tools/install

Install CMake from: https://cmake.org/download/. However, on macOS and Ubuntu, you can install cmake using homebrew and apt, respectively.

Also, setting up JAX on macOS running on M series chips can be a bit finicky. We outline the steps that worked for us in the macOS installation section below. Alternatively, just spin up a Github Codespace, then pip install qarray and you are done.

For more information on the installation process, see the installation guide. To install directly from the repository use the command below:

    pip install git+https://github.com/b-vanstraaten/qarray.git@main

Getting started - double quantum dot example

from qarray import DotArray

Cdd = [
    [0., 0.2, 0.05, 0.01],
    [0.2, 0., 0.2, 0.05],
    [0.05, 0.2, 0.0, 0.2],
    [0.01, 0.05, 0.2, 0]
]

Cgd = [
    [1., 0, 0, 0],
    [0, 1., 0, 0.0],
    [0, 0, 1., 0],
    [0, 0, 0, 1]
]

# setting up the constant capacitance
model = DotArray(
    Cdd=Cdd,
    Cgd=Cgd,
)
model.run_gui()

Examples

The examples folder contains a number of examples that demonstrate how to use the package to simulate different quantum dot systems.

  1. Double Quantum Dot
  2. Linear Triple Quantum Dot
  3. Linear Quadruple Quantum Dot
  4. Charge sensed double quantum dot

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

qarray-1.6.0.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

qarray-1.6.0-py3-none-any.whl (60.7 kB view details)

Uploaded Python 3

File details

Details for the file qarray-1.6.0.tar.gz.

File metadata

  • Download URL: qarray-1.6.0.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for qarray-1.6.0.tar.gz
Algorithm Hash digest
SHA256 8f9d9aa5223f6c292c754207cf292c15d2cafd70d1b4d95e5281a7327c6f00bd
MD5 511cb63298f22c04702c7cd318f4bb5c
BLAKE2b-256 69eb7e41188fe123558a64623f5ed92ca32f2888ce13ca9f814db39bccb2ce30

See more details on using hashes here.

File details

Details for the file qarray-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: qarray-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 60.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.32.3

File hashes

Hashes for qarray-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbcf762cd6937ef3fe6e24054927575ea357aa267945f5498338c6a29848acb9
MD5 fe2ab8d7efb1705a73b2f0666852b487
BLAKE2b-256 58dd61180bd39d920235e498ef3d0c9ccffa56611f5f4a6131cef8b17ab7cf0a

See more details on using hashes here.

Supported by

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