Skip to content

Commit 482e7a7

Browse files
authored
Remove old, unused selene interface code (#220)
* Remove old, unused selene interface code * Toml cleanup
1 parent 320b146 commit 482e7a7

File tree

9 files changed

+100
-775
lines changed

9 files changed

+100
-775
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
11
[workspace]
22
resolver = "2"
33
members = [
4-
"python/pecos-rslib",
5-
"python/selene-plugins/pecos-selene-sparsestab",
6-
"python/selene-plugins/pecos-selene-statevec",
7-
"python/selene-plugins/pecos-selene-quest",
8-
"python/selene-plugins/pecos-selene-qulacs",
9-
"julia/pecos-julia-ffi",
10-
"go/pecos-go-ffi",
11-
"crates/pecos*",
12-
"crates/benchmarks",
4+
"python/pecos-rslib",
5+
"python/selene-plugins/pecos-selene-sparsestab",
6+
"python/selene-plugins/pecos-selene-statevec",
7+
"python/selene-plugins/pecos-selene-quest",
8+
"python/selene-plugins/pecos-selene-qulacs",
9+
"julia/pecos-julia-ffi",
10+
"go/pecos-go-ffi",
11+
"crates/pecos*",
12+
"crates/benchmarks",
1313
]
1414

1515
[workspace.package]
1616
version = "0.1.1"
1717
edition = "2024"
1818
readme = "README.md"
19-
authors = [
20-
"The PECOS Developers",
21-
"Ciaran Ryan-Anderson<ciaranra@gmail.com>",
22-
]
19+
authors = ["The PECOS Developers", "Ciaran Ryan-Anderson<ciaranra@gmail.com>"]
2320
homepage = "https://pecos.io"
2421
repository = "https://github.com/PECOS-packages/PECOS"
2522
license = "Apache-2.0"
@@ -37,28 +34,35 @@ parking_lot = "0.12"
3734
criterion = "0.8"
3835
libloading = "0.9"
3936
libc = "0.2"
40-
bytemuck = { version = "1", features = ["derive"] }
37+
bytemuck = { version = "1", features = ["derive"] }
4138
bitflags = "2"
4239
dyn-clone = "1"
4340
regex = "1"
4441
pest = "2"
4542
pest_derive = "2"
4643
tempfile = "3"
4744
assert_cmd = "2"
48-
wasmtime = { version = "39", default-features = false, features = ["cranelift", "runtime", "wat", "std"] }
45+
wasmtime = { version = "40", default-features = false, features = [
46+
"cranelift",
47+
"runtime",
48+
"wat",
49+
"std",
50+
] }
4951
wat = "1"
5052
ron = "0.12"
5153
tket = "0.16"
5254
tket-qsystem = { version = "0.22", default-features = false }
5355
cc = "1"
5456
cxx = "1.0.187"
5557
cxx-build = "1.0.187"
56-
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls"] }
58+
reqwest = { version = "0.12", default-features = false, features = [
59+
"blocking",
60+
"rustls-tls",
61+
] }
5762
flate2 = "1"
5863
sha2 = "0.10"
5964
dirs = "6"
6065
inkwell = "0.7"
61-
bincode = { version = "2", features = ["derive"] }
6266
cargo_metadata = "0.23"
6367
random_tester = "0.1"
6468
toml = "0.9"
@@ -157,23 +161,23 @@ pecos-cppsparsesim = { version = "0.1.1", path = "crates/pecos-cppsparsesim" }
157161

158162
# Optimize build times
159163
[profile.dev]
160-
opt-level = 0 # No optimization for faster compilation
161-
debug = true # Include debug info
162-
incremental = true # Enable incremental compilation
163-
split-debuginfo = "unpacked" # Faster linking on supported platforms
164+
opt-level = 0 # No optimization for faster compilation
165+
debug = true # Include debug info
166+
incremental = true # Enable incremental compilation
167+
split-debuginfo = "unpacked" # Faster linking on supported platforms
164168

165169
# For tests, use no optimization for the fastest compilation
166170
[profile.test]
167-
opt-level = 0 # No optimization for the fastest compilation
168-
debug = true # Include debug info
169-
incremental = true # Enable incremental compilation
170-
split-debuginfo = "unpacked" # Faster linking on supported platforms
171+
opt-level = 0 # No optimization for the fastest compilation
172+
debug = true # Include debug info
173+
incremental = true # Enable incremental compilation
174+
split-debuginfo = "unpacked" # Faster linking on supported platforms
171175

172176
# The release profile
173177
[profile.release]
174-
opt-level = 3 # Maximum optimization
175-
lto = true # Link-time optimization (same as "fat")
176-
codegen-units = 1 # Single codegen unit for better optimization
178+
opt-level = 3 # Maximum optimization
179+
lto = true # Link-time optimization (same as "fat")
180+
codegen-units = 1 # Single codegen unit for better optimization
177181

178182
# Native profile: release + CPU-specific optimizations
179183
# Use with: cargo build --profile native
@@ -190,6 +194,6 @@ style = { level = "warn", priority = -1 }
190194
pedantic = { level = "warn", priority = -1 }
191195
# restriction = "warn"
192196
cargo = { level = "warn", priority = -1 }
193-
multiple-crate-versions = "allow" # TODO: remove when possible
197+
multiple-crate-versions = "allow" # TODO: remove when possible
194198
# Allow more function arguments for PyO3 bindings (many parameters needed for Python interop)
195199
too-many-arguments = "allow"

crates/pecos-qis-ffi-types/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ crate-type = ["rlib"]
1818
[dependencies]
1919
# Minimal dependencies for data structures
2020
serde = { workspace = true, features = ["derive"] }
21-
bincode.workspace = true
2221

2322
[lints]
2423
workspace = true

crates/pecos-qis-ffi-types/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ pub use operations::{Operation, QuantumOp};
1515
///
1616
/// This struct is used to collect quantum operations during FFI execution.
1717
/// It's referenced through thread-local storage by the FFI functions.
18-
#[derive(
19-
Debug, Clone, Default, serde::Serialize, serde::Deserialize, bincode::Encode, bincode::Decode,
20-
)]
18+
#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)]
2119
pub struct OperationCollector {
2220
/// Collected quantum operations in order
2321
pub operations: Vec<Operation>,

crates/pecos-qis-ffi-types/src/operations.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
//! and later executed by a runtime.
55
66
/// High-level quantum operations that include both QIS and control flow
7-
#[derive(
8-
Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, bincode::Encode, bincode::Decode,
9-
)]
7+
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
108
pub enum Operation {
119
/// Quantum gate operation
1210
Quantum(QuantumOp),
@@ -31,9 +29,7 @@ pub enum Operation {
3129
}
3230

3331
/// Quantum operations that can be executed
34-
#[derive(
35-
Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, bincode::Encode, bincode::Decode,
36-
)]
32+
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
3733
pub enum QuantumOp {
3834
// Single-qubit gates
3935
H(usize),

crates/pecos-qis-selene/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ pecos-hugr-qis = { workspace = true, optional = true }
3232
log.workspace = true
3333
libloading.workspace = true
3434
tempfile.workspace = true
35-
bincode.workspace = true
3635
# Selene runtime crates - these build the .so files we need
3736
selene-simple-runtime = { git = "https://github.com/CQCL/selene.git", rev = "1794e8d1dba26120a18e904940c014f4e034bed6", optional = true }
3837
selene-soft-rz-runtime = { git = "https://github.com/CQCL/selene.git", rev = "1794e8d1dba26120a18e904940c014f4e034bed6", optional = true }

crates/pecos-qis-selene/src/lib.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,12 @@
3232
pub mod builder;
3333
pub mod executor;
3434
pub mod prelude;
35-
pub mod selene_library_runtime;
3635
pub mod selene_runtime;
3736
pub mod selene_runtimes;
3837
pub mod shim;
3938

4039
pub use builder::{HeliosInterfaceBuilder, helios_interface_builder};
4140
pub use executor::QisHeliosInterface;
42-
pub use selene_library_runtime::{
43-
QisSeleneLibraryRuntime, QisSeleneSimpleRuntime, SeleneRuntimeConfig, selene_library_runtime,
44-
selene_simple_runtime as selene_simple_runtime_v2, selene_simple_runtime_from_path,
45-
};
4641
pub use selene_runtime::SeleneRuntime;
4742
pub use selene_runtimes::{
4843
RuntimeFetchError, find_selene_runtime, selene_runtime_auto, selene_simple_runtime,

crates/pecos-qis-selene/src/prelude.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ pub use crate::builder::{HeliosInterfaceBuilder, helios_interface_builder};
2222
pub use crate::executor::QisHeliosInterface;
2323

2424
// Re-export runtime types
25-
pub use crate::selene_library_runtime::{
26-
QisSeleneLibraryRuntime, QisSeleneSimpleRuntime, SeleneRuntimeConfig, selene_library_runtime,
27-
selene_simple_runtime as selene_simple_runtime_v2, selene_simple_runtime_from_path,
28-
};
2925
pub use crate::selene_runtime::SeleneRuntime;
3026
pub use crate::selene_runtimes::{
3127
RuntimeFetchError, find_selene_runtime, selene_runtime_auto, selene_simple_runtime,

0 commit comments

Comments
 (0)