Skip to content

Commit

Permalink
Fix gate ordering for Y-basis measurement (#1856)
Browse files Browse the repository at this point in the history
Fixes #1855
  • Loading branch information
frankharkins authored Aug 21, 2024
1 parent 7864ff5 commit 173da7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/specify-observables-pauli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ circuit.barrier()
circuit.h(0)

# diagonalize Y with Hadamard as S^\dagger
circuit.h(1)
circuit.sdg(1)
circuit.h(1)

# the Z basis is the default, no action required here

Expand Down

0 comments on commit 173da7e

Please sign in to comment.