From 12fac458915723dd5453ac4bc2db5dd7beb5fe3c Mon Sep 17 00:00:00 2001 From: Cobord Date: Thu, 14 Mar 2024 17:08:38 -0400 Subject: [PATCH] doc:update comment about stability of RPITIT --- tket2/src/passes/commutation.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tket2/src/passes/commutation.rs b/tket2/src/passes/commutation.rs index c493a015..df058017 100644 --- a/tket2/src/passes/commutation.rs +++ b/tket2/src/passes/commutation.rs @@ -281,6 +281,8 @@ impl Rewrite for PullForward { fn invalidation_set(&self) -> Self::InvalidationSet<'_> { // TODO: This could avoid creating a vec, but it'll be easier to do once // return position impl trait is available. + // RPITIT requires 1.75 stable in December 2023 + // could change Rewrite trait to take that into account if using that version let mut nodes = vec![self.command.node()]; let next_nodes = self.new_nexts.values().map(|c| c.node()); nodes.extend(next_nodes);