Skip to content

Commit

Permalink
feat: Lazify more flavours of measure ops.
Browse files Browse the repository at this point in the history
Closes #740
  • Loading branch information
doug-q committed Jan 8, 2025
1 parent 981742c commit 6319278
Show file tree
Hide file tree
Showing 2 changed files with 227 additions and 156 deletions.
6 changes: 5 additions & 1 deletion tket2-hseries/src/extension/qsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ use hugr::{
Extension, Wire,
};

use derive_more::Display;
use lazy_static::lazy_static;
use strum_macros::{EnumIter, EnumString, IntoStaticStr};

Expand Down Expand Up @@ -76,6 +77,7 @@ lazy_static! {
EnumIter,
IntoStaticStr,
EnumString,
Display,
)]
#[allow(missing_docs)]
#[non_exhaustive]
Expand Down Expand Up @@ -138,7 +140,9 @@ impl MakeOpDef for QSystemOp {
QSystemOp::QFree => "Free a qubit (lose track of it).",
QSystemOp::Reset => "Reset a qubit to the Z |0> eigenstate.",
QSystemOp::MeasureReset => "Measure a qubit and reset it to the Z |0> eigenstate.",
QSystemOp::LazyMeasureReset => "Lazily measure a qubit and reset it to the Z |0> eigenstate.",
QSystemOp::LazyMeasureReset => {
"Lazily measure a qubit and reset it to the Z |0> eigenstate."
}
}
.to_string()
}
Expand Down
Loading

0 comments on commit 6319278

Please sign in to comment.