Qiskit Aer Encore
Aer simulators configured for the available hardware, used by the tests of this monorepo.
Installation
pip install qiu-qiskit-aer-encore
Usage
simulator.aer_simulator(device=..., **options) returns an AerSimulator on the requested AerDevice:
| device | simulates on |
|---|---|
AUTO (default) |
a GPU if one is available, and the CPU otherwise |
CPU |
the CPU, which is always available |
GPU |
a GPU, raising an AerError if none is available |
On GPUs, the simulator uses Nvidia's cuStateVec library and distributes the simulation and the shots over all available devices (GPU_OPTIONS). Further keyword options are passed on to AerSimulator, overriding these defaults. The available devices are detected once, see available_aer_devices().
from qiskit import QuantumCircuit, transpile
from qiu_qiskit_aer_encore.simulator import aer_simulator
circuit = QuantumCircuit(2)
circuit.h(0)
circuit.cx(0, 1)
circuit.measure_all()
simulator = aer_simulator(device="cpu", method="statevector")
counts = simulator.run(transpile(circuit, simulator), shots=100).result().get_counts()
assert set(counts) <= {"00", "11"}
Documentation
The documentation, with the API reference from the docstrings, is built from docs/ with MkDocs and published at https://blackwild.github.io/qiu/qiu-qiskit-aer-encore/. To serve it locally, from the repository root:
uv run mkdocs serve -f packages/qiu-qiskit-aer-encore/mkdocs.yml
Tests
From the repository root:
uv run pytest packages/qiu-qiskit-aer-encore
The GPU paths are tested with a faked device list, so the tests also run without a GPU.
Release files for qiu-qiskit-aer-encore 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qiu_qiskit_aer_encore-0.1.0.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qiu_qiskit_aer_encore-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / qiu_qiskit_aer_encore-0.1.0.tar.gz
| Download URL | qiu_qiskit_aer_encore-0.1.0.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bded986b0507ef32bb4e0e88964689b7123b616fa7aa63f362662e3813594ce
|
|
BLAKE2b-256 checksum How to use checksums |
e76aade89ee6b5545fe27ed77910c251bf24ac29bfb6fa26dea401e80845fd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / qiu_qiskit_aer_encore-0.1.0-py3-none-any.whl
| Download URL | qiu_qiskit_aer_encore-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dfe95b163e4d44cf33251953770701e50e2a406950ce4d91fd3ce4aac2007e2
|
|
BLAKE2b-256 checksum How to use checksums |
20e363dfed40b3ad1b3293798e7784f7c457c87c0047022be2b9cf4ba352dca8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|