From 6b19d06dd67ae8574d230816ed5abfa5e1c2f163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Ryan-Anderson?= Date: Sat, 14 Dec 2024 01:51:30 -0700 Subject: [PATCH] WIP on bump/update-version (#108) --- .pre-commit-config.yaml | 4 ++-- Cargo.lock | 32 ++++++++++++++--------------- Cargo.toml | 15 +++++++------- python/pecos-rslib/pyproject.toml | 2 +- python/quantum-pecos/pyproject.toml | 13 ++++++++++-- 5 files changed, 37 insertions(+), 29 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d89d4597..0b04c427 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,13 +19,13 @@ repos: - id: debug-statements - repo: https://github.com/crate-ci/typos - rev: v1.28.1 + rev: v1.28.3 hooks: - id: typos args: [] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.0 + rev: v0.8.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/Cargo.lock b/Cargo.lock index b5914b54..eca8f7c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,7 +164,7 @@ checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" [[package]] name = "benchmarks" -version = "0.1.0" +version = "0.1.1" dependencies = [ "criterion", "pecos", @@ -1147,7 +1147,7 @@ dependencies = [ [[package]] name = "pecos" -version = "0.1.0" +version = "0.1.1" dependencies = [ "criterion", "flamegraph", @@ -1161,7 +1161,7 @@ dependencies = [ [[package]] name = "pecos-core" -version = "0.1.0" +version = "0.1.1" dependencies = [ "rand", "rand_chacha", @@ -1170,7 +1170,7 @@ dependencies = [ [[package]] name = "pecos-python" -version = "0.1.0" +version = "0.1.1" dependencies = [ "pecos", "pyo3", @@ -1178,14 +1178,14 @@ dependencies = [ [[package]] name = "pecos-qec" -version = "0.1.0" +version = "0.1.1" dependencies = [ "pecos-qsim", ] [[package]] name = "pecos-qsim" -version = "0.1.0" +version = "0.1.1" dependencies = [ "pecos-core", "rand_chacha", @@ -1269,9 +1269,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.22.3" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15ee168e30649f7f234c3d49ef5a7a6cbf5134289bc46c29ff3155fa3221c225" +checksum = "e484fd2c8b4cb67ab05a318f1fd6fa8f199fcc30819f08f07d200809dba26c15" dependencies = [ "cfg-if", "indoc", @@ -1287,9 +1287,9 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.22.3" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e61cef80755fe9e46bb8a0b8f20752ca7676dcc07a5277d8b7768c6172e529b3" +checksum = "dc0e0469a84f208e20044b98965e1561028180219e35352a2afaf2b942beff3b" dependencies = [ "once_cell", "target-lexicon", @@ -1297,9 +1297,9 @@ dependencies = [ [[package]] name = "pyo3-ffi" -version = "0.22.3" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ce096073ec5405f5ee2b8b31f03a68e02aa10d5d4f565eca04acc41931fa1c" +checksum = "eb1547a7f9966f6f1a0f0227564a9945fe36b90da5a93b3933fc3dc03fae372d" dependencies = [ "libc", "pyo3-build-config", @@ -1307,9 +1307,9 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.22.3" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2440c6d12bc8f3ae39f1e775266fa5122fd0c8891ce7520fa6048e683ad3de28" +checksum = "fdb6da8ec6fa5cedd1626c886fc8749bdcbb09424a86461eb8cdf096b7c33257" dependencies = [ "proc-macro2", "pyo3-macros-backend", @@ -1319,9 +1319,9 @@ dependencies = [ [[package]] name = "pyo3-macros-backend" -version = "0.22.3" +version = "0.23.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1be962f0e06da8f8465729ea2cb71a416d2257dff56cbe40a70d3e62a93ae5d1" +checksum = "38a385202ff5a92791168b1136afae5059d3ac118457bb7bc304c197c2d33e7d" dependencies = [ "heck", "proc-macro2", diff --git a/Cargo.toml b/Cargo.toml index e470ced4..39b90cc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,10 @@ resolver = "2" members = [ "crates/pecos*", "crates/benchmarks", - # "examples/*", ] [workspace.package] -version = "0.1.0" +version = "0.1.1" edition = "2021" readme = "README.md" authors = [ @@ -21,16 +20,16 @@ keywords = ["scientific", "quantum", "QEC"] categories = ["science", "simulation"] [workspace.dependencies] -pyo3 = "0.22" +pyo3 = "0.23" rand = "0.8" rand_chacha = "0.3" rand_xoshiro = "0.6" -pecos-core = { version = "0.1.0", path = "crates/pecos-core" } -pecos-qsim = { version = "0.1.0", path = "crates/pecos-qsim" } -pecos-qec = { version = "0.1.0", path = "crates/pecos-qec" } -pecos = { version = "0.1.0", path = "crates/pecos" } -pecos-python = { version = "0.1.0", path = "crates/pecos-python" } +pecos-core = { version = "0.1.1", path = "crates/pecos-core" } +pecos-qsim = { version = "0.1.1", path = "crates/pecos-qsim" } +pecos-qec = { version = "0.1.1", path = "crates/pecos-qec" } +pecos = { version = "0.1.1", path = "crates/pecos" } +pecos-python = { version = "0.1.1", path = "crates/pecos-python" } [profile.release] codegen-units = 1 diff --git a/python/pecos-rslib/pyproject.toml b/python/pecos-rslib/pyproject.toml index 1ee5bdbe..1a7f45a4 100644 --- a/python/pecos-rslib/pyproject.toml +++ b/python/pecos-rslib/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pecos-rslib" -version = "0.6.0.dev7" +version = "0.6.0.dev8" description = "Rust libary extensions for Python PECOS." authors = [ {name = "The PECOS Developers"}, diff --git a/python/quantum-pecos/pyproject.toml b/python/quantum-pecos/pyproject.toml index 899aae65..0e3f3fa8 100644 --- a/python/quantum-pecos/pyproject.toml +++ b/python/quantum-pecos/pyproject.toml @@ -15,7 +15,7 @@ build-backend = "setuptools.build_meta" [project] name = "quantum-pecos" -version = "0.6.0.dev7" +version = "0.6.0.dev8" authors = [ {name = "The PECOS Developers"}, ] @@ -28,7 +28,7 @@ requires-python = ">=3.10" license = { file = "LICENSE"} keywords = ["quantum", "QEC", "simulation", "PECOS"] dependencies = [ - "pecos-rslib==0.6.0.dev7", + "pecos-rslib==0.6.0.dev8", "phir>=0.3.3", "numpy>=1.15.0; python_version >= '3.13'", "numpy>=1.15.0,<2.0; python_version < '3.13'", @@ -71,6 +71,15 @@ tests = [ "pytest-cov", "hypothesis", ] +simulators = [ + "quantum-pecos[projectq]", + "quantum-pecos[qulacs]; python_version < '3.13'", + "quantum-pecos[pyquest]; python_version < '3.13'", +] +wasm = [ + "quantum-pecos[wasmtime]", + "quantum-pecos[wasmer]", # TODO: avoid installing for 3.13 and adjust tests for this +] all = [ "quantum-pecos[projectq]", "quantum-pecos[wasmtime]",