Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ repos:
- id: debug-statements

- repo: https://github.com/crate-ci/typos
rev: v1.38.1
rev: v1
hooks:
- id: typos
args: []

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.0
rev: v0.15.7
hooks:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/psf/black
rev: 25.9.0
rev: 26.3.1
hooks:
- id: black

Expand Down
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ket = "ket"
wqs = "wqs"
thr = "thr"
IY = "IY"
IZ = "IZ"
iz = "iz"
anc = "anc"
Pn = "Pn"
emiss = "emiss"
Expand Down Expand Up @@ -36,3 +38,5 @@ repare = "repare"
easure = "easure"
egative = "egative"
agger = "agger"
# Ruff rule code prefix (flake8-copyright)
CPY = "CPY"
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/pecos-rslib-cuda/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pecos-rslib-cuda"
version = "0.8.0.dev7"
version = "0.8.0.dev8"
description = "CUDA/cuQuantum Python bindings for PECOS quantum simulators (Rust implementation)."
authors = [
{name = "The PECOS Developers"},
Expand Down
2 changes: 1 addition & 1 deletion python/pecos-rslib/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pecos-rslib"
version = "0.8.0.dev7"
version = "0.8.0.dev8"
description = "Rust libary extensions for Python PECOS."
authors = [
{name = "The PECOS Developers"},
Expand Down
1 change: 0 additions & 1 deletion python/pecos-rslib/tests/test_array_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from pecos_rslib import Array, dtypes


# ---------------------------------------------------------------------------
# copy()
# ---------------------------------------------------------------------------
Expand Down
1 change: 0 additions & 1 deletion python/pecos-rslib/tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

"""Tests for graph module (MWPM decoder)."""


import pecos_rslib as pc


Expand Down
1 change: 1 addition & 0 deletions python/pecos-rslib/tests/test_phir_json_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Representation) and the Rust-based quantum simulators, ensuring proper execution of quantum programs and
correct simulation results.
"""

import json

import pytest
Expand Down
6 changes: 3 additions & 3 deletions python/quantum-pecos/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ build-backend = "hatchling.build"

[project]
name = "quantum-pecos"
version = "0.8.0.dev7"
version = "0.8.0.dev8"
authors = [
{name = "The PECOS Developers"},
]
Expand All @@ -28,7 +28,7 @@ requires-python = ">=3.10"
license = { file = "LICENSE"}
keywords = ["quantum", "QEC", "simulation", "PECOS"]
dependencies = [
"pecos-rslib==0.8.0.dev7",
"pecos-rslib==0.8.0.dev8",
"phir>=0.3.3",
"networkx>=2.1.0",
"guppylang>=0.21.6",
Expand Down Expand Up @@ -74,7 +74,7 @@ all = [
# These packages work with uv/pip once CUDA toolkit is installed.
# Note: CUDA packages require Python 3.11+ due to cuquantum-python-cu13 requirements
cuda = [
"pecos-rslib-cuda==0.8.0.dev7",
"pecos-rslib-cuda==0.8.0.dev8",
"cupy-cuda13x>=13.0.0; python_version >= '3.11'", # Use cupy-cuda12x for CUDA 12
"cuquantum-python-cu13>=25.3.0; python_version >= '3.11'", # Use cuquantum-python-cu12 for CUDA 12
"pytket-cutensornet>=0.12.0; python_version >= '3.11'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
making it useful for debugging classical logic paths and testing error correction protocols with random noise.
"""


from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
layouts (4.4.4.4 lattice) used in quantum error correction surface codes.
"""


from pecos.slr.qeclib.surface.visualization.visualization_base import VisualizationData


Expand Down
1 change: 1 addition & 0 deletions python/quantum-pecos/tests/guppy/test_for_loop.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
"""Test for-loop behavior."""

import os

from guppylang.decorator import guppy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for basic logical quantum circuit simulations."""

import pecos as pc


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for coin toss quantum simulator."""

from __future__ import annotations

import pecos as pc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Partial trace operations
- Non-unitary operations
"""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for stabilizer simulator gate initialization."""

from pecos.simulators import SparseSim, SparseSimPy, Stab

states = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for PHIR quantum program execution."""

import json
from pathlib import Path

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for quantum circuit operations."""

from __future__ import annotations

import copy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# specific language governing permissions and limitations under the License.

"""Integration tests for random quantum circuit simulations."""

from __future__ import annotations

from typing import Any
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
properly, producing random results instead of deterministic zeros.
"""


import pecos as pc
from pecos.engines.hybrid_engine import HybridEngine

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

"""Tests for SlrConverter Guppy functionality."""


from pecos.slr import CReg, Main, Parallel, QReg, SlrConverter
from pecos.slr.qeclib import qubit as qb
from pecos.slr.qeclib.steane.steane_class import Steane
Expand Down
2 changes: 1 addition & 1 deletion python/selene-plugins/pecos-selene-stab/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pecos-selene-stab"
version = "0.8.0.dev7"
version = "0.8.0.dev8"
requires-python = ">=3.10"
description = "PECOS Stab simulator plugin for the Selene quantum emulator"
readme = "README.md"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "pecos-selene-statevec"
version = "0.8.0.dev7"
version = "0.8.0.dev8"
requires-python = ">=3.10"
description = "PECOS StateVec simulator plugin for the Selene quantum emulator"
readme = "README.md"
Expand Down
Loading
Loading