Skip to content

Commit

Permalink
Merge pull request #1521 from qiboteam/rbs_compilation
Browse files Browse the repository at this point in the history
`gates.RBS` decomposition with less gates
  • Loading branch information
MatteoRobbiati authored Nov 13, 2024
2 parents a8e7edd + 77f395d commit b4da3bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/qibo/transpiler/decompositions.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,8 @@ def _decomposition_generalized_RBS(ins, outs, theta, phi, controls):
lambda gate: [
gates.H(0),
gates.CNOT(0, 1),
gates.H(1),
gates.RY(0, gate.parameters[0]),
gates.RY(1, -gate.parameters[0]),
gates.H(1),
gates.RY(1, gate.parameters[0]),
gates.CNOT(0, 1),
gates.H(0),
],
Expand Down

0 comments on commit b4da3bf

Please sign in to comment.