Skip to content

Commit dd5400b

Browse files
committed
Add doc
1 parent 6a47c52 commit dd5400b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

filter_functions/pulse_sequence.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,20 @@ def get_filter_function(
720720
required by other computations.
721721
cache_second_order_cumulative: bool, optional
722722
Also cache the accumulated filter function for each time
723-
step. Only if order is 2.
723+
step. Only if order is 2. This can take up a lot of memory,
724+
but is useful when interested in the time evolution. In that
725+
case, compute the filter function for the entire pulse and
726+
slice it afterwards::
727+
728+
pulse.cache_filter_function(
729+
omega, order=2, cache_second_order_cumulative=True
730+
)
731+
pulses_t = []
732+
for i in range(len(pulse)):
733+
pulses_t.append(pulse[:i])
734+
735+
``pulses_t`` will contain the filter functions for each time
736+
step.
724737
725738
Returns
726739
-------

0 commit comments

Comments
 (0)