Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add tket2 feature and lowerings for tket2.rotation extension #100

Merged
merged 16 commits into from
Sep 16, 2024
439 changes: 429 additions & 10 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ keywords = ["Quantum", "Quantinuum"]
categories = ["compilers"]

[features]
default = ["llvm14-0"]
default = ["llvm14-0", "tket2"]
llvm14-0 = ["dep:llvm-sys-140", "inkwell/llvm14-0"]
tket2 = ["dep:tket2"]

[dependencies]
inkwell = { version = "0.4.0", default-features=false }
llvm-sys-140 = { package = "llvm-sys", version = "140.1.3", optional = true}
hugr = "0.12.0"
tket2 = { version = "0.4.0", optional = true }
anyhow = "1.0.83"
itertools = "0.12.1"
delegate = "0.12.0"
Expand All @@ -36,6 +38,8 @@ rstest = "0.19.0"
portgraph = "0.12.1"
pathsearch = "0.2.0"
serde_json = "1.0.117"
serde = "*"
typetag = "*"

[profile.dev.package]
insta.opt-level = 3
Expand Down
1 change: 1 addition & 0 deletions src/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ pub mod float;
pub mod int;
pub mod logic;
pub mod prelude;
pub mod rotation;

/// The extension point for lowering HUGR Extensions to LLVM.
pub trait CodegenExtension<'c, H> {
Expand Down
Loading