Skip to content

Commit

Permalink
doc: Add comment about global phase difference
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Feb 20, 2024
1 parent eed9857 commit 16e375d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/qibolab/compilers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ def gpi_rule(gate, platform):
qubit = gate.target_qubits[0]
theta = gate.parameters[0]
sequence = PulseSequence()
# the following definition has a global phase difference compare to
# to the matrix representation. See
# https://github.com/qiboteam/qibolab/pull/804#pullrequestreview-1890205509
# for more detail.
pulse = platform.create_RX_pulse(qubit, start=0, relative_phase=theta)
sequence.add(pulse)
return sequence, {}
Expand Down

0 comments on commit 16e375d

Please sign in to comment.