Skip to main content

A circuit slicer addition to Qiskit to help developers with debugging

Project description

Quantum Circuit Slicer (QCS)

This repo contains files to add a quantum circuit slicer to Qiksit. The slicer provides some useful functions for debugging quantum circuits.

The circuit slicer includes:

  1. The addition of the "breakbarrier" object, which acts as a breakpoint for quantum circuits.
  2. Vslicer function to divide the circuit vertically.
  3. Hslicer to remove unused qubits in a particular slice.
  4. Gate tracking when you enter debugging mode by calling the startDebug function.
  5. Perform queries on a specific gate within a circuit.

Instructions

Installation

To use the circuit slicer, you need to have a working version of Qiskit (version 0.19.6 or higher)

pip install quantum-circuit-slicer

Test

Once the package is installed, try running the file test.py to make sure eveything is installed and working properly, and how to use the slicer.

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

quantum_circuit_slicer-0.0.8.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

quantum_circuit_slicer-0.0.8-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page