Skip to main content

A framework for quantum computing with hardware acceleration.

Project description

Tests codecov Documentation Status DOI

Qibo is a Python library for classical simulation of quantum algorithms.

Some of the key features of Qibo are:

  • A standard interface for the implementation and extension of quantum algorithms.
  • Modular implementation on GPU and CPU with multi-threading support.
  • Availability of multi-GPU distributed approach for circuit simulation.
  • Full support of double precision simulation.

Documentation

Qibo documentation is available at qibo.readthedocs.io.

Minimum Working Examples

A simple Quantum Fourier Transform (QFT) example to test your installation:

from qibo.models import QFT

# Create a QFT circuit with 15 qubits
circuit = QFT(15)

# Simulate final state wavefunction default initial state is |00>
final_state = c()

Here another example with more gates and shots simulation:

import numpy as np
from qibo.models import Circuit
from qibo import gates

c = Circuit(2)
c.add(gates.X(0))

# Add a measurement register on both qubits
c.add(gates.M(0, 1))

# Execute the circuit with the default initial state |00>.
result = c(nshots=100)

In both cases, the simulation will run in a single device CPU or GPU in double precision complex128.

Citation policy

If you use the package please cite the following references:

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

qibo-0.0.1b5-cp38-cp38-manylinux2010_x86_64.whl (432.6 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

qibo-0.0.1b5-cp38-cp38-macosx_10_15_x86_64.whl (173.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.15+ x86-64

qibo-0.0.1b5-cp37-cp37m-manylinux2010_x86_64.whl (432.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

qibo-0.0.1b5-cp37-cp37m-macosx_10_15_x86_64.whl (173.4 kB view hashes)

Uploaded CPython 3.7m macOS 10.15+ x86-64

qibo-0.0.1b5-cp36-cp36m-manylinux2010_x86_64.whl (432.7 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

qibo-0.0.1b5-cp36-cp36m-macosx_10_15_x86_64.whl (173.4 kB view hashes)

Uploaded CPython 3.6m macOS 10.15+ x86-64

Supported by

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