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.
You can install this package from PyPi via
pip install htstabilizer
or you can clone the repository and include it into your project.
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.
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")
View examples for exploring the functionality:
This package is distributed under the MIT License.