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/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml
index 56d4c12c..601384b4 100644
--- a/.github/workflows/build_and_deploy.yml
+++ b/.github/workflows/build_and_deploy.yml
@@ -231,6 +231,7 @@ jobs:
       - uses: taiki-e/install-action@cargo-llvm-cov
       - run: |
           cd qoqo
+          pip install numpy
           cargo llvm-cov --no-default-features --lcov --output-path lcov_qoqo.info
       - name: Upload coverage to Codecov
         uses: codecov/codecov-action@v3
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 40e73339..42daeb51 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.5
+
+* Fixed github pipelines
+
 ## 1.1.0-beta.4
 
 * Fixed compatibility tests
diff --git a/Cargo.lock b/Cargo.lock
index eaedc40d..22ccd230 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -550,7 +550,7 @@ dependencies = [
 
 [[package]]
 name = "qoqo"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
  "bincode",
  "nalgebra",
@@ -564,7 +564,7 @@ dependencies = [
  "qoqo_calculator",
  "qoqo_calculator_pyo3",
  "quote",
- "roqoqo 1.1.0-beta.4",
+ "roqoqo 1.1.0-beta.5",
  "serde",
  "serde_json",
  "syn",
@@ -574,7 +574,7 @@ dependencies = [
 
 [[package]]
 name = "qoqo-macros"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -692,7 +692,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
  "async-trait",
  "bincode",
@@ -708,7 +708,8 @@ dependencies = [
  "rand",
  "rand_distr",
  "roqoqo 1.0.0",
- "roqoqo-derive 1.1.0-beta.4",
+ "roqoqo-derive 1.0.0",
+ "roqoqo-derive 1.1.0-beta.5",
  "serde",
  "serde_json",
  "serde_test",
@@ -731,7 +732,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo-derive"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -740,7 +741,7 @@ dependencies = [
 
 [[package]]
 name = "roqoqo-test"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
  "nalgebra",
  "ndarray",
@@ -748,7 +749,7 @@ dependencies = [
  "qoqo_calculator",
  "quote",
  "rand",
- "roqoqo 1.1.0-beta.4",
+ "roqoqo 1.1.0-beta.5",
  "syn",
 ]
 
diff --git a/qoqo-macros/Cargo.toml b/qoqo-macros/Cargo.toml
index 66609cae..dac5cc2a 100644
--- a/qoqo-macros/Cargo.toml
+++ b/qoqo-macros/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "qoqo-macros"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 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 4f953711..c1c0b574 100644
--- a/qoqo/Cargo.toml
+++ b/qoqo/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "qoqo"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 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.4", path="../qoqo-macros"}
-roqoqo = {version="1.1.0-beta.4", path="../roqoqo", features=["serialize", "overrotate"]}
+qoqo-macros = {version="1.1.0-beta.5", path="../qoqo-macros"}
+roqoqo = {version="1.1.0-beta.5", 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 9f86caeb..85d17f7b 100644
--- a/qoqo/pyproject.toml
+++ b/qoqo/pyproject.toml
@@ -1,6 +1,6 @@
 [project]
 name = "qoqo"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 dependencies = [
   'numpy',
   'qoqo_calculator_pyo3>=1.1.0',
diff --git a/qoqo/qoqo/DEPENDENCIES b/qoqo/qoqo/DEPENDENCIES
index 8ef72d13..6478302f 100644
--- a/qoqo/qoqo/DEPENDENCIES
+++ b/qoqo/qoqo/DEPENDENCIES
@@ -8777,7 +8777,7 @@ LICENSE:
 
 
 ====================================================
-qoqo 1.1.0-beta.4
+qoqo 1.1.0-beta.5
 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.4
+qoqo-macros 1.1.0-beta.5
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Macros for the qoqo crate
 License: Apache-2.0
@@ -11273,7 +11273,7 @@ LICENSE:
 
 
 ====================================================
-roqoqo 1.1.0-beta.4
+roqoqo 1.1.0-beta.5
 https://github.com/HQSquantumsimulations/qoqo
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Rust Quantum Computing Toolkit by HQS
@@ -11696,7 +11696,7 @@ LICENSE:
 
 
 ====================================================
-roqoqo-derive 1.1.0-beta.4
+roqoqo-derive 1.1.0-beta.5
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Macros for the roqoqo crate
 License: Apache-2.0
@@ -11907,7 +11907,7 @@ LICENSE:
 
 
 ====================================================
-roqoqo-test 1.1.0-beta.4
+roqoqo-test 1.1.0-beta.5
 https://github.com/HQSquantumsimulations/qoqo
 by HQS Quantum Simulations <info@quantumsimulations.de>
 Testing helper functions for roqoqo toolkit
diff --git a/roqoqo-derive/Cargo.toml b/roqoqo-derive/Cargo.toml
index f4323d11..345f3011 100644
--- a/roqoqo-derive/Cargo.toml
+++ b/roqoqo-derive/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo-derive"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 authors = ["HQS Quantum Simulations <info@quantumsimulations.de>"]
 license = "Apache-2.0"
 edition = "2021"
diff --git a/roqoqo/Cargo.toml b/roqoqo/Cargo.toml
index 57f12fbc..8da6e82c 100644
--- a/roqoqo/Cargo.toml
+++ b/roqoqo/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 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.4", path="../roqoqo-derive"}
+roqoqo-derive = {version="1.1.0-beta.5", path="../roqoqo-derive"}
 typetag = {version="0.2", optional=true}
 nalgebra = "0.31"
 # schemars = { version="0.8", features = ["num-complex", "ndarray"], optional=true }
@@ -43,6 +43,7 @@ petgraph = {version = "0.6.2", optional=true}
 serde_test = "1.0"
 test-case = "2.0"
 serde_json = "1.0"
+test_roqoqo_derive_1_0 = {package= "roqoqo-derive", version="1.0.0"}
 test_qoqo_1_0 = {package= "roqoqo", version="1.0.0"}
 bincode = {version="1.3", optional=false}
 


Test patch:
diff --git a/roqoqo-test/Cargo.toml b/roqoqo-test/Cargo.toml
index 2c6a905b..dfa4225c 100644
--- a/roqoqo-test/Cargo.toml
+++ b/roqoqo-test/Cargo.toml
@@ -1,6 +1,6 @@
 [package]
 name = "roqoqo-test"
-version = "1.1.0-beta.4"
+version = "1.1.0-beta.5"
 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.4", path="../roqoqo", features=["serialize"]}
+roqoqo = {version="1.1.0-beta.5", path="../roqoqo", features=["serialize"]}
 rand = "0.8"
 nalgebra = "0.31"
 ndarray = { version = "0.15" }