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
119 changes: 81 additions & 38 deletions Cargo.lock

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

4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ default-members = [
"crates/pecos-rng",
"crates/pecos",
"crates/pecos-cli",
"crates/pecos-quest",
"python/pecos-rslib/rust",
"crates/benchmarks",
]
Expand Down Expand Up @@ -110,6 +111,9 @@ pecos-build-utils = { version = "0.1.1", path = "crates/pecos-build-utils" }
pecos-ldpc-decoders = { version = "0.1.1", path = "crates/pecos-ldpc-decoders" }
pecos-decoders = { version = "0.1.1", path = "crates/pecos-decoders" }

# QuEST simulator wrapper
pecos-quest = { version = "0.1.1", path = "crates/pecos-quest" }

# Optimize build times
[profile.dev]
opt-level = 0 # No optimization for faster compilation
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ normalize-line-endings: ## Normalize line endings according to .gitattributes
lint-fix: ## Fix all auto-fixable linting issues (Rust, Python, Julia)
@echo "Fixing Rust formatting..."
cargo fmt --all
cargo clippy --fix --workspace --all-targets --all-features --allow-staged
cargo clippy --fix --workspace --all-targets --all-features --allow-staged --allow-dirty
@echo ""
@echo "Running pre-commit fixes..."
uv run pre-commit run --all-files || true
Expand Down Expand Up @@ -156,8 +156,8 @@ rstest: qir-staticlib-if-needed ## Run Rust tests
cargo test --workspace

.PHONY: rstest-all
rstest-all: qir-staticlib-if-needed ## Run Rust tests with all features (includes WASM, decoders, etc.)
cargo test --workspace --all-features
rstest-all: qir-staticlib-if-needed ## Run Rust tests with all features except GPU
cargo test --workspace --all-features --exclude pecos-quest && cargo test -p pecos-quest

# Decoder-specific commands
# -------------------------
Expand Down
14 changes: 14 additions & 0 deletions crates/pecos-build-utils/src/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ pub const CHROMOBIUS_COMMIT: &str = "35e289570fdc1d71e73582e1fd4e0c8e29298ef5";
pub const CHROMOBIUS_SHA256: &str =
"da73d819e67572065fd715db45fabb342c2a2a1e961d2609df4f9864b9836054";

/// QuEST library constants
/// Used by QuEST quantum simulator wrapper
pub const QUEST_COMMIT: &str = "v4.0.0";
pub const QUEST_SHA256: &str = "e6a922a9dc1d6ee7c4d2591a277646dca2ce2fd90eecf36fd66970cb24bbfb67";

/// Qulacs library constants
/// Used by Qulacs quantum simulator
pub const QULACS_VERSION: &str = "0.6.12";
Expand Down Expand Up @@ -98,6 +103,15 @@ pub fn chromobius_download_info() -> DownloadInfo {
}
}

/// Create DownloadInfo for QuEST
pub fn quest_download_info() -> DownloadInfo {
DownloadInfo {
url: format!("https://github.com/QuEST-Kit/QuEST/archive/refs/tags/{QUEST_COMMIT}.tar.gz"),
sha256: QUEST_SHA256,
name: format!("quest-{}", QUEST_COMMIT),
}
}

/// Create DownloadInfo for Qulacs
pub fn qulacs_download_info() -> DownloadInfo {
DownloadInfo {
Expand Down
Loading
Loading