Repository: HQSquantumsimulations/qoqo (language: python)

Issue:
qoqo Circuit from_ methods are not classmethods
from_json and from_bincode in qoqo.Circuit are not implemeted as classmethods.

We need to change that so we can call `Circuit.from_json(...)` directly


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e24b0ac..cb70e583 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
 
 This changelog track changes to the qoqo project starting at version v0.5.0
 
+## 1.1.0-beta.10
+
+* Temporarily removed compatibility tests in order to release
+
 ## 1.1.0-beta.9
 
 * Fixed github pipeline deploy
diff --git a/Cargo.lock b/Cargo.lock
index b98dcc8b..89c4d133 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -242,9 +242,9 @@ dependencies = [
 
 [[package]]
 name = "itoa"
-version = "1.0.3"
+version = "1.0.4"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754"
+checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc"
 
 [[package]]
 name = "libc"
@@ -550,7 +550,7 @@ dependencies = [
 
 [[package]]
 name = "qoqo"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
  "bincode",
  "nalgebra",
@@ -564,7 +564,7 @@ dependencies = [
  "qoqo_calculator",
  "qoqo_calculator_pyo3",
  "quote",
- "roqoqo 1.1.0-beta.9",
+ "roqoqo",
  "serde",
  "serde_json",
  "syn",
@@ -574,7 +574,7 @@ dependencies = [
 
 [[package]]
 name = "qoqo-macros"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -672,26 +672,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo"
-version = "1.0.0"
-source = "git+https://github.com/HQSquantumsimulations/qoqo.git?tag=v1.0.0#b76d8e0796c922c6280bb7ff3cebfc7e243977e3"
-dependencies = [
- "bincode",
- "nalgebra",
- "ndarray",
- "num-complex",
- "proc-macro2",
- "qoqo_calculator",
- "quote",
- "rand",
- "roqoqo-derive 1.0.0",
- "serde",
- "syn",
- "thiserror",
-]
-
-[[package]]
-name = "roqoqo"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
  "async-trait",
  "bincode",
@@ -706,8 +687,7 @@ dependencies = [
  "quote",
  "rand",
  "rand_distr",
- "roqoqo 1.0.0",
- "roqoqo-derive 1.1.0-beta.9",
+ "roqoqo-derive",
  "serde",
  "serde_json",
  "serde_test",
@@ -719,17 +699,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo-derive"
-version = "1.0.0"
-source = "git+https://github.com/HQSquantumsimulations/qoqo.git?tag=v1.0.0#b76d8e0796c922c6280bb7ff3cebfc7e243977e3"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "roqoqo-derive"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -738,7 +708,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo-test"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
  "nalgebra",
  "ndarray",
@@ -746,7 +716,7 @@ dependencies = [
  "qoqo_calculator",
  "quote",
  "rand",
- "roqoqo 1.1.0-beta.9",
+ "roqoqo",
  "syn",
 ]
 
@@ -841,9 +811,9 @@ checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
 
 [[package]]
 name = "syn"
-version = "1.0.101"
+version = "1.0.102"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e90cde112c4b9690b8cbe810cba9ddd8bc1d7472e2cae317b69e9438c1cba7d2"
+checksum = "3fcd952facd492f9be3ef0d0b7032a6e442ee9b361d4acc2b1d0c4aaa5f613a1"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -954,9 +924,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
 
 [[package]]
 name = "wide"
-version = "0.7.4"
+version = "0.7.5"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b3aba2d1dac31ac7cae82847ac5b8be822aee8f99a4e100f279605016b185c5f"
+checksum = "ae41ecad2489a1655c8ef8489444b0b113c0a0c795944a3572a0931cf7d2525c"
 dependencies = [
  "bytemuck",
  "safe_arch",
diff --git a/qoqo-macros/Cargo.toml b/qoqo-macros/Cargo.toml
index 36300f59..8e555ac3 100644
--- a/qoqo-macros/Cargo.toml
+++ b/qoqo-macros/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "qoqo-macros"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 readme = "../README.md"
diff --git a/qoqo/Cargo.toml b/qoqo/Cargo.toml
index 2d120fc1..8826a10a 100644
--- a/qoqo/Cargo.toml
+++ b/qoqo/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "qoqo"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 homepage = "https://github.com/HQSquantumsimulations/qoqo"
@@ -32,8 +32,8 @@ num-complex = "0.4"
 thiserror = "1.0"
 qoqo_calculator = { version="1.1" }
 qoqo_calculator_pyo3 = {version="1.1", default-features=false}
-qoqo-macros = {version="1.1.0-beta.9", path="../qoqo-macros"}
-roqoqo = {version="1.1.0-beta.9", path="../roqoqo", features=["serialize", "overrotate"]}
+qoqo-macros = {version="1.1.0-beta.10", path="../qoqo-macros"}
+roqoqo = {version="1.1.0-beta.10", path="../roqoqo", features=["serialize", "overrotate"]}
 numpy = "0.17"
 bincode = "1.3"
 serde_json = "1.0"
diff --git a/qoqo/pyproject.toml b/qoqo/pyproject.toml
index 2ae19ecc..e3af6e97 100644
--- a/qoqo/pyproject.toml
+++ b/qoqo/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "qoqo"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 dependencies = [
   'numpy',
   'qoqo_calculator_pyo3>=1.1.0',
diff --git a/qoqo/qoqo/DEPENDENCIES b/qoqo/qoqo/DEPENDENCIES
index 8409de99..55da07c0 100644
--- a/qoqo/qoqo/DEPENDENCIES
+++ b/qoqo/qoqo/DEPENDENCIES
@@ -2516,7 +2516,7 @@ limitations under the License.
 
 
 ====================================================
-itoa 1.0.3
+itoa 1.0.4
 https://github.com/dtolnay/itoa
 by David Tolnay <dtolnay@gmail.com>
 Fast integer primitive to string conversion
@@ -8777,7 +8777,7 @@ LICENSE:
 
 
 ====================================================
-qoqo 1.1.0-beta.9
+qoqo 1.1.0-beta.10
 https://github.com/HQSquantumsimulations/qoqo
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Quantum computing circuit toolkit. Python interface of roqoqo
@@ -8989,7 +8989,7 @@ LICENSE:
 
 
 ====================================================
-qoqo-macros 1.1.0-beta.9
+qoqo-macros 1.1.0-beta.10
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Macros for the qoqo crate
 License: Apache-2.0
@@ -11061,7 +11061,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 
 ====================================================
-roqoqo 1.1.0-beta.9
+roqoqo 1.1.0-beta.10
 https://github.com/HQSquantumsimulations/qoqo
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Rust Quantum Computing Toolkit by HQS
@@ -11273,7 +11273,7 @@ LICENSE:
 
 
 ====================================================
-roqoqo-derive 1.1.0-beta.9
+roqoqo-derive 1.1.0-beta.10
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Macros for the roqoqo crate
 License: Apache-2.0
@@ -11484,7 +11484,7 @@ LICENSE:
 
 
 ====================================================
-roqoqo-test 1.1.0-beta.9
+roqoqo-test 1.1.0-beta.10
 https://github.com/HQSquantumsimulations/qoqo
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Testing helper functions for roqoqo toolkit
@@ -13612,7 +13612,7 @@ limitations under the License.
 
 
 ====================================================
-syn 1.0.101
+syn 1.0.102
 https://github.com/dtolnay/syn
 by David Tolnay <dtolnay@gmail.com>
 Parser for Rust source code
@@ -16068,7 +16068,7 @@ limitations under the License.
 
 
 ====================================================
-wide 0.7.4
+wide 0.7.5
 https://github.com/Lokathor/wide
 by Lokathor <zefria@gmail.com>
 A crate to help you go wide.
diff --git a/roqoqo-derive/Cargo.toml b/roqoqo-derive/Cargo.toml
index e3354dde..0accebeb 100644
--- a/roqoqo-derive/Cargo.toml
+++ b/roqoqo-derive/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo-derive"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 edition = "2021"
diff --git a/roqoqo/Cargo.toml b/roqoqo/Cargo.toml
index e5ccbf9e..a298e28f 100644
--- a/roqoqo/Cargo.toml
+++ b/roqoqo/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 edition = "2021"
@@ -28,7 +28,7 @@ num-complex = { version = "0.4"}
 thiserror = "1.0"
 dyn-clone = {version="1.0", optional=true}
 qoqo_calculator = { version="1.1"}
-roqoqo-derive = {version="1.1.0-beta.9", path="../roqoqo-derive"}
+roqoqo-derive = {version="1.1.0-beta.10", path="../roqoqo-derive"}
 typetag = {version="0.2", optional=true}
 nalgebra = "0.31"
 # schemars = { version="0.8", features = ["num-complex", "ndarray"], optional=true }
@@ -38,7 +38,7 @@ rand = { version = "0.8.4"}
 async-trait = {version = "0.1", optional = true}
 futures ={version = "0.3", optional=true}
 petgraph = {version = "0.6.2", optional=true}
-test_roqoqo_1_0 = {package = "roqoqo", version="=1.0.0", optional=true, git="https://github.com/HQSquantumsimulations/qoqo.git", tag="v1.0.0"}
+# test_roqoqo_1_0 = {package = "roqoqo", version="=1.0.0", optional=true, git="https://github.com/HQSquantumsimulations/qoqo.git", tag="v1.0.0"}
 # test_roqoqo_derive_1_0 = {package= "roqoqo-derive", version="=1.0.0", optional=true}
 
 [dev-dependencies]
@@ -63,4 +63,4 @@ overrotate = [ "rand_distr", "roqoqo-derive/overrotate"]
 async = ["async-trait", "futures"]
 # json_schema=["schemars", "serialize", "qoqo_calculator/json_schema"]
 circuitdag = ["petgraph"]
-compatibility = ["test_roqoqo_1_0"]
+# compatibility = ["test_roqoqo_1_0"]


Test patch:
diff --git a/roqoqo-test/Cargo.toml b/roqoqo-test/Cargo.toml
index fd775573..288fa3a8 100644
--- a/roqoqo-test/Cargo.toml
+++ b/roqoqo-test/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo-test"
-version = "1.1.0-beta.9"
+version = "1.1.0-beta.10"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 edition = "2021"
@@ -19,7 +19,7 @@ crate-type = ["rlib"]
 
 [dependencies]
 qoqo_calculator = { version="1.1" }
-roqoqo = {version="1.1.0-beta.9", path="../roqoqo", features=["serialize"]}
+roqoqo = {version="1.1.0-beta.10", path="../roqoqo", features=["serialize"]}
 rand = "0.8"
 nalgebra = "0.31"
 ndarray = { version = "0.15" }
diff --git a/roqoqo/tests/integration/main.rs b/roqoqo/tests/integration/main.rs
index c98b9196..31fc69c7 100644
--- a/roqoqo/tests/integration/main.rs
+++ b/roqoqo/tests/integration/main.rs
@@ -25,9 +25,9 @@ mod devices;
 #[cfg(test)]
 mod quantum_program;
 
-#[cfg(feature = "compatibility")]
-#[cfg(test)]
-mod compatibility;
+// #[cfg(feature = "compatibility")]
+// #[cfg(test)]
+// mod compatibility;
 
 #[cfg(test)]
 #[cfg(feature = "circuitdag")]