This repo contains files to add a quantum circuit slicer to Qiskit. The slicer provides some useful functions for debugging quantum circuits.
The circuit slicer includes:
- The addition of the "breakbarrier" object, which acts as a breakpoint for quantum circuits.
- Vslicer function to divide the circuit vertically.
- Hslicer to remove unused qubits in a particular slice.
- Gate tracking when you enter debugging mode by calling the startDebug function.
- Perform queries on a specific gate within a circuit.
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
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.