Skip to content

Hardware-tailored readout/preparation circuit optimization on small quantum systems.

License

Notifications You must be signed in to change notification settings

Mc-Zen/htstabilizer

This branch is 5 commits ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6f423b8 · Feb 11, 2025

History

80 Commits
Feb 11, 2025
Feb 17, 2024
May 12, 2023
Feb 18, 2024
Feb 18, 2024
Aug 6, 2023
Jan 12, 2025
May 5, 2023
Jul 15, 2024
Feb 15, 2024
Jan 23, 2025

Repository files navigation

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.