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

PyPI Package MIT License Tests

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

This package is distributed under the 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.1.tar.gz (184.6 kB view details)

Uploaded Source

Built Distribution

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

htstabilizer-1.0.1-py3-none-any.whl (191.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: htstabilizer-1.0.1.tar.gz
  • Upload date:
  • Size: 184.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for htstabilizer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 27508b9fc1eb59efb5fbf239facc23fc4ef50ef946aed8aa8f7abb4119161c31
MD5 5986b1a6b1eec61f27253ea6d94435e8
BLAKE2b-256 7fb7531a5aac923844ab4d5db000e1f0c8358d089192c5120b86e2e91e0482ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for htstabilizer-1.0.1.tar.gz:

Publisher: publish-python.yml on Mc-Zen/htstabilizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: htstabilizer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 191.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for htstabilizer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea5bad3079b4775be36ff4bbde5bf2e0f027f656167546faaf0828f8187edb87
MD5 d6e240f8a85310e84d857891c8cb8260
BLAKE2b-256 d8213bfda7f432fbeecc0950b7b4df4fbad3ae22f402d45e92297005f55cdb8f

See more details on using hashes here.

Provenance

The following attestation bundles were made for htstabilizer-1.0.1-py3-none-any.whl:

Publisher: publish-python.yml on Mc-Zen/htstabilizer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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