Skip to main content

Qiskit Aer - High performance simulators for Qiskit

Project description

Qiskit Aer

LicenseBuild Status

Qiskit is an open-source framework for working with noisy quantum computers at the level of pulses, circuits, and algorithms.

Qiskit is made up of elements that each work together to enable quantum computing. This element is Aer, which provides high-performance quantum computing simulators with realistic noise models.

Installation

We encourage installing Qiskit via the PIP tool (a python package manager), which installs all Qiskit elements, including this one.

pip install qiskit

PIP will handle all dependencies automatically for us and you will always install the latest (and well-tested) version.

To install from source, follow the instructions in the contribution guidelines.

Installing GPU support

In order to install and run the GPU supported simulators, you need CUDA® 10.1 or newer previously installed. CUDA® itself would require a set of specific GPU drivers. Please follow CUDA® installation procedure in the NVIDIA® web.

If you want to install our GPU supported simulators, you have to install this other package:

pip install qiskit-aer-gpu

This will overwrite your current qiskit-aer package installation giving you the same functionality found in the canonical qiskit-aer package, plus the ability to run the GPU supported simulators: statevector, density matrix, and unitary.

Simulating your first quantum program with Qiskit Aer

Now that you have Qiskit Aer installed, you can start simulating quantum circuits with noise. Here is a basic example:

$ python
import qiskit
from qiskit import IBMQ
from qiskit.providers.aer import QasmSimulator

# Generate 3-qubit GHZ state
circ = qiskit.QuantumCircuit(3, 3)
circ.h(0)
circ.cx(0, 1)
circ.cx(1, 2)
circ.measure([0, 1, 2], [0, 1 ,2])

# Construct an ideal simulator
sim = QasmSimulator()

# Perform an ideal simulation
result_ideal = qiskit.execute(circ, sim).result()
counts_ideal = result_ideal.get_counts(0)
print('Counts(ideal):', counts_ideal)
# Counts(ideal): {'000': 493, '111': 531}

# Construct a noisy simulator backend from an IBMQ backend
# This simulator backend will be automatically configured
# using the device configuration and noise model 
provider = IBMQ.load_account()
vigo_backend = provider.get_backend('ibmq_vigo')
vigo_sim = QasmSimulator.from_backend(vigo_backend)

# Perform noisy simulation
result_noise = qiskit.execute(circ, vigo_sim).result()
counts_noise = result_noise.get_counts(0)

print('Counts(noise):', counts_noise)
# Counts(noise): {'000': 492, '001': 6, '010': 8, '011': 14, '100': 3, '101': 14, '110': 18, '111': 469}

Contribution Guidelines

If you'd like to contribute to Qiskit, please take a look at our contribution guidelines. This project adheres to Qiskit's code of conduct. By participating, you are expect to uphold to this code.

We use GitHub issues for tracking requests and bugs. Please use our slack for discussion and simple questions. To join our Slack community use the link. For questions that are more suited for a forum we use the Qiskit tag in the Stack Exchange.

Next Steps

Now you're set up and ready to check out some of the other examples from our Qiskit IQX Tutorials or Qiskit Community Tutorials repositories.

Authors and Citation

Qiskit Aer is the work of many people who contribute to the project at different levels. If you use Qiskit, please cite as per the included BibTeX file.

License

Apache License 2.0

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

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

qiskit_aer_gpu-0.7.3-cp39-cp39-manylinux2010_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.12+ x86-64

qiskit_aer_gpu-0.7.3-cp38-cp38-manylinux2010_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.12+ x86-64

qiskit_aer_gpu-0.7.3-cp37-cp37m-manylinux2010_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.12+ x86-64

qiskit_aer_gpu-0.7.3-cp36-cp36m-manylinux2010_x86_64.whl (36.0 MB view details)

Uploaded CPython 3.6mmanylinux: glibc 2.12+ x86-64

File details

Details for the file qiskit_aer_gpu-0.7.3-cp39-cp39-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qiskit_aer_gpu-0.7.3-cp39-cp39-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 36.0 MB
  • Tags: CPython 3.9, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for qiskit_aer_gpu-0.7.3-cp39-cp39-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 518129d5c11698f4394e30e66e9aebda2e953a510aa70d804c34626ab594aa49
MD5 91316228223ecb4d84a30efb7ae0188b
BLAKE2b-256 e5b5870edc00e407e488ccb3bcba95c561302feb75b4e3457de273e59e44f9c4

See more details on using hashes here.

File details

Details for the file qiskit_aer_gpu-0.7.3-cp38-cp38-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qiskit_aer_gpu-0.7.3-cp38-cp38-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 36.0 MB
  • Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for qiskit_aer_gpu-0.7.3-cp38-cp38-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 a7860e949577190d81c1a62b3b30ea1a9c9e7a0719dacaa5f332797c484c5901
MD5 49e1f6f7bf7f13f218a0d1fb529ad538
BLAKE2b-256 55289ec04db38fd3c8c80146a4e160efd2c7e824d746fc1d3c8f3c94c8baf0bd

See more details on using hashes here.

File details

Details for the file qiskit_aer_gpu-0.7.3-cp37-cp37m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qiskit_aer_gpu-0.7.3-cp37-cp37m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 36.0 MB
  • Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for qiskit_aer_gpu-0.7.3-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 ce972a55d433a35b7b3e8c3ecf11b60d770de8e1b51bcb2985d358229899a43e
MD5 21ffc87dd8f611e1c6dbe73ced150558
BLAKE2b-256 c6cd0a18d2fe2b1ac100608889c0569d35abe14a0db752661c54c231571fe3d6

See more details on using hashes here.

File details

Details for the file qiskit_aer_gpu-0.7.3-cp36-cp36m-manylinux2010_x86_64.whl.

File metadata

  • Download URL: qiskit_aer_gpu-0.7.3-cp36-cp36m-manylinux2010_x86_64.whl
  • Upload date:
  • Size: 36.0 MB
  • Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for qiskit_aer_gpu-0.7.3-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm Hash digest
SHA256 1c4be0ad506ba489c48d212ec681d737307e15c4550f7bb5e3191fa66d04cc94
MD5 428236b4b83ad6501d3427aee3404dd0
BLAKE2b-256 77174cdba401e8a78961f8aba692f01217d5ba257f690c40d6ef5f2a3b464f0a

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