Skip to content

Commit

Permalink
chore: Update hugr (#131)
Browse files Browse the repository at this point in the history
`Port::index()` now requires importing a trait
  • Loading branch information
aborgna-q authored Sep 22, 2023
1 parent 6378d33 commit 0a000e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ members = ["pyrs", "compile-matcher", "taso-optimiser"]

[workspace.dependencies]

quantinuum-hugr = { git = "https://github.com/CQCL-DEV/hugr", rev = "981f4f9" }
quantinuum-hugr = { git = "https://github.com/CQCL-DEV/hugr", rev = "19ed0fc" }
portgraph = { version = "0.9", features = ["serde"] }
pyo3 = { version = "0.19" }
itertools = { version = "0.11.0" }
Expand Down
2 changes: 1 addition & 1 deletion src/circuit/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use std::collections::{HashMap, HashSet};
use std::iter::FusedIterator;

use hugr::hugr::NodeType;
use hugr::hugr::{NodeType, PortIndex};
use hugr::ops::{OpTag, OpTrait};
use petgraph::visit as pv;

Expand Down
4 changes: 3 additions & 1 deletion src/optimiser/taso.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ mod worker;
use crossbeam_channel::select;
pub use eq_circ_class::{load_eccs_json_file, EqCircClass};

use std::io;
use std::num::NonZeroUsize;
use std::time::{Duration, Instant};

Expand All @@ -37,6 +36,9 @@ use crate::rewrite::Rewriter;

use self::log::TasoLogger;

#[cfg(feature = "portmatching")]
use std::io;

/// The TASO optimiser.
///
/// Adapted from [Quartz][], and originally [TASO][].
Expand Down
1 change: 1 addition & 0 deletions src/portmatching/matcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use std::{

use super::{CircuitPattern, NodeID, PEdge, PNode};
use hugr::hugr::views::sibling_subgraph::{ConvexChecker, InvalidReplacement, InvalidSubgraph};
use hugr::hugr::PortIndex;
use hugr::{hugr::views::SiblingSubgraph, ops::OpType, Hugr, Node, Port};
use itertools::Itertools;
use portmatching::{
Expand Down

0 comments on commit 0a000e0

Please sign in to comment.