Skip to content

Commit

Permalink
wrong definition
Browse files Browse the repository at this point in the history
  • Loading branch information
dberthault committed Jul 24, 2024
1 parent 302593b commit 53e7cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roqoqo-qasm/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1397,10 +1397,10 @@ pub fn gate_definition(
Ok(definition_str)
}
Operation::SqrtPauliY(_) => Ok(String::from(
"gate sy a { u3(pi/2,-pi/2,pi/2) a; }"
"gate sy a { u3(pi/2,0,0) a; }"
)),
Operation::InvSqrtPauliY(_) => Ok(String::from(
"gate sydg a { u3(-pi/2,-pi/2,pi/2) a; }"
"gate sydg a { u3(-pi/2,0,0) a; }"
)),
_ => {
if NO_DEFINITION_REQUIRED_OPERATIONS.contains(&operation.hqslang()) || ALLOWED_OPERATIONS.contains(&operation.hqslang()) {
Expand Down

0 comments on commit 53e7cad

Please sign in to comment.