-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add compatibility crate * fix compatibility test * version bump * edits to build.rs
- Loading branch information
1 parent
bbfa223
commit 7720492
Showing
31 changed files
with
3,392 additions
and
3,092 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -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", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
Oops, something went wrong.