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

fix: Don't convert tket2 measurements into tket1 ops #331

Merged
merged 1 commit into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tket2/src/json/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,11 @@ impl TryFrom<&OpType> for JsonOp {
Tk2Op::Tdg => JsonOpType::Tdg,
Tk2Op::Sdg => JsonOpType::Sdg,
Tk2Op::ZZMax => JsonOpType::ZZMax,
Tk2Op::Measure => JsonOpType::Measure,
Tk2Op::Measure => {
unimplemented!(
"Cannot convert TKET2 Measure to TKET1 due to mismatching semantics."
)
}
Tk2Op::RzF64 => JsonOpType::Rz,
Tk2Op::RxF64 => JsonOpType::Rx,
// TODO: Use a TK2 opaque op once we update the tket-json-rs dependency.
Expand Down
Loading