Skip to content

Commit

Permalink
feat: add T, Tdg, X gates (#466)
Browse files Browse the repository at this point in the history
I need these gates to benchmark against Quartz.
  • Loading branch information
lmondada authored Aug 30, 2023
1 parent b58b582 commit d81f724
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/std_extensions/quantum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,30 @@ fn extension() -> Extension {
one_qb_func,
)
.unwrap();
extension
.add_op_custom_sig_simple(
SmolStr::new_inline("T"),
"T gate".into(),
vec![],
one_qb_func,
)
.unwrap();
extension
.add_op_custom_sig_simple(
SmolStr::new_inline("Tdg"),
"T-adjoint gate".into(),
vec![],
one_qb_func,
)
.unwrap();
extension
.add_op_custom_sig_simple(
SmolStr::new_inline("X"),
"X gate".into(),
vec![],
one_qb_func,
)
.unwrap();
extension
.add_op_custom_sig_simple(
SmolStr::new_inline("RzF64"),
Expand Down

0 comments on commit d81f724

Please sign in to comment.