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 cb70e583..f96741c7 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.11
+
+* Fixed nalgebra version to 0.30
+
 ## 1.1.0-beta.10
 
 * Temporarily removed compatibility tests in order to release
diff --git a/Cargo.lock b/Cargo.lock
index 89c4d133..d50c22fb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -294,9 +294,9 @@ dependencies = [
 
 [[package]]
 name = "nalgebra"
-version = "0.31.1"
+version = "0.30.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9e0a04ce089f9401aac565c740ed30c46291260f27d4911fdbaa6ca65fa3044"
+checksum = "4fb2d0de08694bed883320212c18ee3008576bfe8c306f4c3c4a58b4876998be"
 dependencies = [
  "approx",
  "matrixmultiply",
diff --git a/qoqo/Cargo.toml b/qoqo/Cargo.toml
index 8826a10a..e70d9156 100644
--- a/qoqo/Cargo.toml
+++ b/qoqo/Cargo.toml
@@ -40,7 +40,7 @@ serde_json = "1.0"
 
 [dev-dependencies]
 test-case = "2.0"
-nalgebra = "0.31"
+nalgebra = "=0.30"
 
 [build-dependencies]
 quote = "1.0"
diff --git a/qoqo/qoqo/DEPENDENCIES b/qoqo/qoqo/DEPENDENCIES
index 55da07c0..666dc85a 100644
--- a/qoqo/qoqo/DEPENDENCIES
+++ b/qoqo/qoqo/DEPENDENCIES
@@ -3728,7 +3728,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
 
 ====================================================
-nalgebra 0.31.1
+nalgebra 0.30.1
 https://nalgebra.org
 by Sébastien Crozet <developer@crozet.re>
 General-purpose linear algebra library with transformations and statically-sized or dynamically-sized matrices.
diff --git a/roqoqo/Cargo.toml b/roqoqo/Cargo.toml
index a298e28f..7c6abff8 100644
--- a/roqoqo/Cargo.toml
+++ b/roqoqo/Cargo.toml
@@ -30,7 +30,7 @@ dyn-clone = {version="1.0", optional=true}
 qoqo_calculator = { version="1.1"}
 roqoqo-derive = {version="1.1.0-beta.10", path="../roqoqo-derive"}
 typetag = {version="0.2", optional=true}
-nalgebra = "0.31"
+nalgebra = "=0.30"
 # schemars = { version="0.8", features = ["num-complex", "ndarray"], optional=true }
 bincode = {version="1.3", optional=true}
 rand_distr = {version="0.4", optional=true}


Test patch:
diff --git a/roqoqo-test/Cargo.toml b/roqoqo-test/Cargo.toml
index 288fa3a8..dcdc556e 100644
--- a/roqoqo-test/Cargo.toml
+++ b/roqoqo-test/Cargo.toml
@@ -21,7 +21,7 @@ crate-type = ["rlib"]
 qoqo_calculator = { version="1.1" }
 roqoqo = {version="1.1.0-beta.10", path="../roqoqo", features=["serialize"]}
 rand = "0.8"
-nalgebra = "0.31"
+nalgebra = "=0.30"
 ndarray = { version = "0.15" }
 
 [build-dependencies]