File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff 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 -------
You can’t perform that action at this time.
0 commit comments