Skip to content

Commit

Permalink
fix: Use csr_matrix.getH() instead of H (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
speller26 committed Jun 26, 2024
1 parent 1fb70a7 commit 1454fb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ def _apply_hamiltonian(
rabi_ops, rabi_coefs, detuning_ops, detuning_coefs
):
output_register += (rabi_coef[index_time] / 2) * rabi_op.dot(input_register)
output_register += (np.conj(rabi_coef[index_time]) / 2) * rabi_op.H.dot(input_register)
output_register += (np.conj(rabi_coef[index_time]) / 2) * rabi_op.getH().dot(input_register)
output_register -= detuning_coef[index_time] * detuning_op.dot(input_register)

# Add local detuning
Expand Down

0 comments on commit 1454fb9

Please sign in to comment.