Skip to content

Commit

Permalink
Added comment for jasp measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
renezander90 committed Mar 1, 2025
1 parent 6337b1b commit c187a94
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qrisp/operators/qubit/jasp_measurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ def get_jasp_measurement(

for index, group in enumerate(groups):

# Warning: This works only for diagonalization_method='commuting_qw'.
# For 'commuting' serialized terms of meas_op and group may differ.

def new_state_prep(state_args):
qv = state_prep(*state_args)
meas_op = group.change_of_basis(qv, diagonalisation_method)
Expand Down

0 comments on commit c187a94

Please sign in to comment.