Skip to content

Commit

Permalink
Version bump to 1.17.0 (#605)
Browse files Browse the repository at this point in the history
* Add compatibility crate

* fix compatibility test

* version bump

* edits to build.rs
  • Loading branch information
rreiner-hqs authored Nov 27, 2024
1 parent bbfa223 commit 7720492
Show file tree
Hide file tree
Showing 31 changed files with 3,392 additions and 3,092 deletions.
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_0/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_0"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -21,7 +21,7 @@ publish = false
[dependencies]
test_roqoqo_1_0 = { package = "roqoqo", version = "=1.0.0" }
test_roqoqo_derive_1_0 = { package = "roqoqo-derive", version = "=1.0.0" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_10/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["HQS Quantum Simulations <[email protected]>"]
name = "compatibility_test_1_10"
version = "1.16.1"
version = "1.17.0"
license = "Apache-2.0"
edition = "2021"
rust-version = "1.70"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_10 = { package = "roqoqo", version = "=1.10.0" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_11/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_11"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_11 = { package = "roqoqo", version = "=1.11.0" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_12/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_12"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_12 = { package = "roqoqo", version = "=1.12.1" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_13/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_13"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_13 = { package = "roqoqo", version = "=1.13.0" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_14/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_14"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_14 = { package = "roqoqo", version = "=1.14.0" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
4 changes: 2 additions & 2 deletions .compatibility_tests/compatibility_test_1_15/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "compatibility_test_1_15"
version = "1.16.1"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand All @@ -20,7 +20,7 @@ publish = false

[dependencies]
test_roqoqo_1_15 = { package = "roqoqo", version = "=1.15.2" }
roqoqo = { version = "~1.16", path = "../../roqoqo", features = [
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,16 @@ use test_roqoqo_1_15;
#[test_case(test_roqoqo_1_15::operations::SqrtPauliY::new(0).into(); "SqrtPauliY")]
#[test_case(test_roqoqo_1_15::operations::InvSqrtPauliY::new(0).into(); "InvSqrtPauliY")]
// Operations from 1.16
// TODO: add the new gates
// #[test_case(test_roqoqo_1_16::operations::InvSGate::new(0).into(); "InvSGate")]
// #[test_case(test_roqoqo_1_16::operations::InvTGate::new(0).into(); "InvTGate")]
// #[test_case(test_roqoqo_1_16::operations::SXGate::new(0).into(); "SXGate")]
// #[test_case(test_roqoqo_1_16::operations::InvSXGate::new(0).into(); "InvSXGate")]
// #[test_case(test_roqoqo_1_16::operations::TripleControlledPauliX::new(0, 1, 2, 3).into(); "TripleControlledPauliX")]
// #[test_case(test_roqoqo_1_16::operations::TripleControlledPauliZ::new(0, 1, 2, 3).into(); "TripleControlledPauliZ")]
// #[test_case(test_roqoqo_1_16::operations::TripleControlledPhaseShift::new(0, 1, 2, 3).into(); "TripleControlledPhaseShift")]
// #[test_case(test_roqoqo_1_16::operations::ControlledSWAP::new(0, 1, 2).into(); "ControlledSWAP")]
// #[test_case(test_roqoqo_1_16::operations::PhaseShiftedControlledControlledZ::new(0, 1, 2, 1.0.into()).into(); "PhaseShiftedControlledControlledZ")]
// #[test_case(test_roqoqo_1_16::operations::PhaseShiftedControlledControlledPhase::new(0, 1, 2, 1.0.into()).into(); "PhaseShiftedControlledControlledPhase")]
fn test_bincode_compatibility_1_15(operation: test_roqoqo_1_15::operations::Operation) {
let mut test_circuit = test_roqoqo_1_15::Circuit::new();
test_circuit += operation;
Expand Down
37 changes: 37 additions & 0 deletions .compatibility_tests/compatibility_test_1_16/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[package]
name = "compatibility_test_1_16"
version = "1.17.0"
authors = ["HQS Quantum Simulations <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
rust-version = "1.70"
categories = ["science", "simulation"]
homepage = "https://github.com/HQSquantumsimulations/qoqo"
repository = "https://github.com/HQSquantumsimulations/qoqo"
documentation = "https://docs.rs/roqoqo/"
readme = "../README.md"
description = "Compatibility tests for roqoqo"
include = ["src*", "build.rs", "LICENSE", "README.md"]
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[workspace]

[dependencies]
test_roqoqo_1_16 = { package = "roqoqo", version = "=1.16.1" }
roqoqo = { version = "~1.17", path = "../../roqoqo", features = [
"serialize",
"overrotate",
] }
struqture = { git = "https://github.com/HQSquantumsimulations/struqture" }
struqture_1_7 = { git = "https://github.com/HQSquantumsimulations/struqture", package = "struqture", tag = "v1.7.1" }
bincode = { version = "1.3" }
ndarray = "0.15"

[patch.crates-io]
struqture = { git = "https://github.com/HQSquantumsimulations/struqture" }
struqture_1_7 = { git = "https://github.com/HQSquantumsimulations/struqture", package = "struqture", tag = "v1.7.1" }

[dev-dependencies]
test-case = "3.0"
14 changes: 14 additions & 0 deletions .compatibility_tests/compatibility_test_1_16/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
Loading

0 comments on commit 7720492

Please sign in to comment.