Skip to content

Commit 109880a

Browse files
committed
Fix bug where spectrum was not broadcast
1 parent 4798d39 commit 109880a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

filter_functions/numeric.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,17 +342,17 @@ def _get_integrand(
342342
# R is not None
343343
if which_pulse == 'correlations':
344344
if which_FF == 'fidelity':
345-
einsum_str = 'gako,ao,hako->ghao'
345+
einsum_str = 'g...ko,...o,h...ko->gh...o'
346346
else:
347347
# which_FF == 'generalized'
348-
einsum_str = 'gako,ao,halo->ghaklo'
348+
einsum_str = 'g...ko,...o,h...lo->gh...klo'
349349
else:
350350
# which_pulse == 'total'
351351
if which_FF == 'fidelity':
352-
einsum_str = 'ako,ao,ako->ao'
352+
einsum_str = '...ko,...o,...ko->...o'
353353
else:
354354
# which_FF == 'generalized'
355-
einsum_str = 'ako,ao,alo->aklo'
355+
einsum_str = '...ko,...o,...lo->...klo'
356356

357357
integrand = np.einsum(einsum_str,
358358
ctrl_left[..., idx, :, :], spectrum, ctrl_right[..., idx, :, :])

0 commit comments

Comments
 (0)