The PauLie package is an open-source library for studying various algebraic properties of quantum circuits. This
first release focuses on the classification of the circuit's dynamical Lie algebra given the generators as Pauli strings.
PauLie package requires Python 3.12 or newer.
To install PauLie, run:
pip install paulieThe following code gives an example of usage:
from paulie import get_pauli_string as p
n_qubits = 6
generators = p(["XYZX", "ZZYZY"], n = n_qubits)
algebra = generators.get_algebra()
print(f"number of qubits = {n_qubits}, algebra = {algebra}")Feel free to contribute and check out our open issues. We are also happy to chat with you via Discord.
Clone the repository. Once you have uv installed, run the following command to install all dependencies:
uv sync --all-extras --devIn order to run the test suite, run:
uv run python -m pytestCheck for type errors, improve readability, and assist IDEs, run:
uv run mypy src/paulie/common src/paulie/classifier/classification.py