Skip to content

Commit 6ca1e24

Browse files
committed
Bumping version number of Python from py-0.7.0.dev4 to py-0.8.0.dev0 and cleaning up dependencies
1 parent db41be9 commit 6ca1e24

20 files changed

Lines changed: 177 additions & 132 deletions

File tree

.github/workflows/python-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ jobs:
219219
$env:LLVM_SYS_140_PREFIX = $env:LLVM_SYS_140_PREFIX
220220
221221
# Build and test
222-
make build
222+
make build-dev
223223
make pytest-all
224224
225225
- name: Build and test PECOS (non-Windows)
@@ -266,7 +266,7 @@ jobs:
266266
fi
267267
268268
# Build the project
269-
make build
269+
make build-dev
270270
271271
# After build, verify the extension module on macOS
272272
if [[ "${{ runner.os }}" == "macOS" ]]; then

Cargo.lock

Lines changed: 8 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,6 @@ members = [
88
"crates/benchmarks",
99
]
1010

11-
# By default, exclude decoder crates from workspace operations to avoid heavy C++ dependencies
12-
default-members = [
13-
"crates/pecos-core",
14-
"crates/pecos-num",
15-
"crates/pecos-engines",
16-
"crates/pecos-qsim",
17-
"crates/pecos-qasm",
18-
"crates/pecos-phir",
19-
"crates/pecos-qec",
20-
"crates/pecos-rng",
21-
"crates/pecos",
22-
"crates/pecos-cli",
23-
"crates/pecos-quest",
24-
"python/pecos-rslib",
25-
"crates/benchmarks",
26-
]
27-
28-
# The decoder crates are external and have heavy C++ dependencies.
29-
# To work with decoders:
30-
#
31-
# Build specific decoders:
32-
# cargo build --package pecos-decoders --features "ldpc"
33-
#
34-
# Build all decoders:
35-
# cargo build --package pecos-decoders --all-features
36-
#
37-
# Build everything including decoders:
38-
# cargo build --workspace
39-
4011
[workspace.package]
4112
version = "0.1.1"
4213
edition = "2024"

Makefile

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ else
6666
endif
6767
endif
6868

69-
.PHONY: build
70-
build: installreqs ## Compile and install for development
69+
.PHONY: build-dev
70+
build-dev: installreqs ## Development build (fast compile, unoptimized, with all extras)
7171
@$(SETUP_LLVM); $(UNSET_CONDA) cd python/pecos-rslib/ && uv run maturin develop --uv
7272
@$(UNSET_CONDA) uv pip install -e "./python/quantum-pecos[all]"
7373
@if command -v julia >/dev/null 2>&1; then \
@@ -85,13 +85,8 @@ build: installreqs ## Compile and install for development
8585
echo "Go not detected, skipping Go build"; \
8686
fi
8787

88-
.PHONY: build-basic
89-
build-basic: installreqs ## Compile and install for development but do not include install extras
90-
@$(SETUP_LLVM); $(UNSET_CONDA) cd python/pecos-rslib/ && uv run maturin develop --uv
91-
@$(UNSET_CONDA) uv pip install -e ./python/quantum-pecos
92-
9388
.PHONY: build-release
94-
build-release: installreqs ## Build a faster version of binaries
89+
build-release: installreqs ## Release build (optimized, portable)
9590
@$(SETUP_LLVM); $(UNSET_CONDA) cd python/pecos-rslib/ && uv run maturin develop --uv --release
9691
@$(UNSET_CONDA) uv pip install -e "./python/quantum-pecos[all]"
9792
@if command -v julia >/dev/null 2>&1; then \
@@ -110,8 +105,8 @@ build-release: installreqs ## Build a faster version of binaries
110105
fi
111106

112107
.PHONY: build-native
113-
build-native: installreqs ## Build a faster version of binaries with native CPU optimization
114-
@$(UNSET_CONDA) cd python/pecos-rslib/ && RUSTFLAGS='-C target-cpu=native' \
108+
build-native: installreqs ## Release build with native CPU optimizations (fastest, not portable)
109+
@$(SETUP_LLVM); $(UNSET_CONDA) cd python/pecos-rslib/ && RUSTFLAGS='-C target-cpu=native' \
115110
uv run maturin develop --uv --release
116111
@$(UNSET_CONDA) uv pip install -e "./python/quantum-pecos[all]"
117112

@@ -705,16 +700,16 @@ pip-install-uv: ## Install uv using pip and create a venv. (Recommended to inst
705700
uv sync
706701

707702
.PHONY: dev
708-
dev: clean build test ## Run the typical sequence of commands to check everything is running correctly
703+
dev: clean build-dev test ## Run the typical sequence of commands to check everything is running correctly
709704

710705
.PHONY: devl
711706
devl: dev lint ## Run the commands to make sure everything runs + lint
712707

713708
.PHONY: devc
714-
devc: clean build-cuda test ## Run dev sequence with CUDA support (requires CUDA Toolkit 13)
709+
devc: clean build-cuda test ## Run dev sequence with CUDA support (requires CUDA Toolkit)
715710

716711
.PHONY: devcl
717-
devcl: devc lint ## Run dev sequence with CUDA support + lint (requires CUDA Toolkit 13)
712+
devcl: devc lint ## Run dev sequence with CUDA support + lint (requires CUDA Toolkit)
718713

719714
# Help
720715
# ----
@@ -726,7 +721,7 @@ help: ## Show the help menu
726721
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-22s\033[0m %s\n", $$1, $$2}'
727722
@echo ""
728723
@echo "Note: Julia and Go support is automatically detected."
729-
@echo " - 'make build' will also build Julia/Go FFI if they are installed"
724+
@echo " - 'make build-dev' will also build Julia/Go FFI if they are installed"
730725
@echo " - 'make test' will also run Julia/Go tests if they are installed"
731726
@echo " - 'make lint' checks code quality; 'make lint-fix' fixes issues"
732727
@echo " - Use 'make julia-info' or 'make go-info' for more information"

crates/benchmarks/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ rand.workspace = true
1717
rand_chacha.workspace = true
1818
rand_xoshiro.workspace = true
1919
wyrand.workspace = true
20-
romu.workspace = true
2120
wide.workspace = true
2221

2322
[[bench]]

crates/pecos-llvm-utils/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ path = "src/bin/pecos-llvm.rs"
1919
clap.workspace = true
2020
reqwest.workspace = true
2121
tar.workspace = true
22-
flate2.workspace = true
2322
dirs.workspace = true
2423
xz2.workspace = true
2524
sevenz-rust.workspace = true

crates/pecos-llvm/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ categories.workspace = true
1313

1414
[dependencies]
1515
pecos-core.workspace = true
16-
thiserror.workspace = true
17-
log.workspace = true
18-
regex.workspace = true
1916

2017
# Inkwell for LLVM IR generation
2118
[dependencies.inkwell]

crates/pecos-qis-selene/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ selene-runtimes = ["selene-simple-runtime", "selene-soft-rz-runtime"]
2424
pecos-core.workspace = true
2525
pecos-programs.workspace = true
2626
pecos-qis-ffi-types.workspace = true
27-
pecos-qis-ffi.workspace = true # Ensures cdylib gets built for runtime dlopen
2827
pecos-qis-core = { workspace = true, features = ["llvm"] }
2928
pecos-hugr-qis = { workspace = true, optional = true, features = ["llvm"] }
3029
log.workspace = true

crates/pecos-quest/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ rand_chacha.workspace = true
3030
[build-dependencies]
3131
pecos-build-utils.workspace = true
3232
cxx-build.workspace = true
33-
cc.workspace = true
3433
log.workspace = true
3534
env_logger.workspace = true
3635

crates/pecos-qulacs/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ rand.workspace = true
2626
cxx-build.workspace = true
2727
cc.workspace = true
2828
pecos-build-utils.workspace = true
29+
pecos-llvm-utils.workspace = true
2930
log.workspace = true
3031
env_logger.workspace = true
3132

0 commit comments

Comments
 (0)