Coder Social home page Coder Social logo

mc-zen / htstabilizer Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 512 KB

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

Home Page: https://pypi.org/project/htstabilizer/

License: MIT License

Python 100.00%
circuit-optimization clifford quantum-computing quantum-state-tomography quantum

htstabilizer's Introduction

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.

htstabilizer's People

Contributors

daniel-miller-berlin avatar mc-zen avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.