Skip to main content

Hardware-tailored quantum Clifford circuits for stabilizer state preparation or readout as well as mutually unbiased bases in order to perform efficient full-state tomography on small qubit systems.

Project description

Hardware-Tailored Stabilizer Circuits Python library

MIT License MIT License

This library provides

  • hardware-tailored quantum Clifford circuits for stabilizer state preparation or measurement as well as
  • mutually unbiased bases in order to perform more efficient full-state tomography on small qubit systems.

Hereby, two-qubit gate count is minimized. All delivered circuits are designed to fully comply to a desired hardware connectivity, avoiding additional swap operations altogether.

Installation

You can install this package from PyPi via

pip install htstabilizer

or you can clone the repository and include it into your project.

Tailored to your hardware connectivity

A total of 19 connectivities are currently supported, ranging from 2 to 6 qubits. For each supported number of qubits, circuits for full connectivity and line connectivity are available. Additionally, other connectivities that occur in current quantum chips or which are subgraphs of existing hardware are supported.

All currently available connectivities are shown below.

Usage

from htstabilizer.stabilizer_circuits import *

pqc = get_preparation_circuit(Stabilizer(["XZZ", "ZXI", "ZIX"]), "linear")

rqc = get_readout_circuit(Stabilizer(["XZZ", "ZXI", "ZIX"]), "linear")

qc = QuantumCircuit(5)
# ... build Clifford circuit
compressed_qc = compress_preparation_circuit(qc, "T")

Examples

View examples for exploring the functionality:

License

MIT License

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

htstabilizer-1.0.0.tar.gz (182.4 kB view details)

Uploaded Source

Built Distribution

htstabilizer-1.0.0-py3-none-any.whl (189.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: htstabilizer-1.0.0.tar.gz
  • Upload date:
  • Size: 182.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for htstabilizer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8858823290c961a12628b17836a8bcb76bc3be160017c585ef618bd49c744906
MD5 8cda52dcdfc39b0c7fcc7d415b7328fa
BLAKE2b-256 dff678be61c876ce37374936de4419735e95ff952e55d7a9e5dce0696d22d541

See more details on using hashes here.

File details

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

File metadata

  • Download URL: htstabilizer-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 189.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for htstabilizer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4b2d44c41c24d2df0cc52c175e4c515271e769d6f75e52e26882d78a54b03d
MD5 4adbeb18f43b9caee3277a16a300a181
BLAKE2b-256 23e34a538d6c9324693f958a370607b13eb432837add4cc4716cdfa86342e392

See more details on using hashes here.

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