Skip to content

Commit

Permalink
chore: Bump Hugr to 0.4.0 (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-koch authored May 22, 2024
1 parent 937260a commit 8022377
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 39 deletions.
2 changes: 1 addition & 1 deletion guppylang/compiler/expr_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def python_value_to_hugr(v: Any, exp_ty: Type) -> ops.Value | None:
Tk2Circuit,
)

hugr = json.loads(Tk2Circuit(v).to_hugr_json()) # type: ignore[attr-defined]
hugr = json.loads(Tk2Circuit(v).to_hugr_json()) # type: ignore[attr-defined, unused-ignore]
return ops.Value(ops.FunctionValue(hugr=hugr))
except ImportError:
pass
Expand Down
59 changes: 30 additions & 29 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ graphviz = "^0.20.1"
networkx = "^3.2.1"
pydantic = "^2.7.0b1"
typing-extensions = "^4.9.0"
hugr = "~0.2.0a1"
hugr = "~0.2.1"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
Expand All @@ -36,7 +36,7 @@ optional = true

[tool.poetry.group.pytket.dependencies]
pytket = { version = "^1.24.0" }
tket2-py = { git = "https://github.com/CQCL/tket2.git", rev = "9f0de7bdecf8958f2ec3b42cf49ce79c4da605c9" }
tket2-py = { git = "https://github.com/CQCL/tket2.git", rev = "8aff57a65d42aae631c89ee86f6f1fc7bb1b4da8" }


[tool.poetry.group.docs]
Expand Down
19 changes: 14 additions & 5 deletions validator/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions validator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ crate-type = ["cdylib"]

[dependencies]
pyo3 = "0.19.0"
hugr = "0.4.0-alpha.1"
hugr = "0.4.0"
lazy_static = "1.4.0"
serde_json = "1.0.111"
tket2 = { git = "https://github.com/CQCL/tket2.git", rev = "9f0de7bdecf8958f2ec3b42cf49ce79c4da605c9" }
tket2 = { git = "https://github.com/CQCL/tket2.git", rev = "8aff57a65d42aae631c89ee86f6f1fc7bb1b4da8" }

0 comments on commit 8022377

Please sign in to comment.