February 2026
This guide shows you how to install HDH (Hybrid Dependency Hypergraph), a Python library for quantum computation workflow analysis and partitioning. HDH provides a unified hypergraph-based intermediate representation for quantum programs.
Install the latest stable version directly from PyPI.
pip install hdh
Verify the installation:
python -c "import hdh; print('HDH successfully installed!')"
git clone https://github.com/grageragarces/HDH.git
cd HDH
pip install -e .
-e flag installs in editable mode, allowing you to modify the source code.
python -c "import hdh; print('HDH successfully installed!')"
Test your installation with a simple quantum circuit conversion.
from qiskit import QuantumCircuit
from hdh.converters import from_qiskit
from hdh.visualize import plot_hdh
# Create a simple Bell state circuit
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)
# Convert to HDH
hdh_graph = from_qiskit(qc)
# Visualize
plot_hdh(hdh_graph)
print("HDH conversion successful!")
pip install qiskit
python --version.pip install matplotlib.pip install --upgrade pip.