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

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.