TimeSegment
- class TimeSegment(start, end, pulses)
Represents a time segment associated with a list of pulses.
A
TimeSegmentis a time interval and includes all pulses that are active in the interval. It based on thePulseListand provides additional metadata relevant for plotting and simulation.Initialize a time segment.
- Parameters:
start – Start time of the segment.
end – End time of the segment.
pulses – Active pulses corresponding to the segment.
Methods
append(new_pulse)Appending a pulse is disabled for TimeSegment instances.
convert_to_time_segment_sequence([start, end])Convert the to
TimeSegmentSequence.discretize_plot(function)Discretize the time segment for plotting.
discretize_simulation(...[, n_eval, n_split])Discretize the time segment for simulation.
signal([driving_field_name])Return the signal to be used in simulation.
Attributes
Duration of the time segment.
End time of the segment.
Check if all pulses have a constant envelope.
Maximal frequency of the time segment's pulses.
Number of pulses.
Values for plotting.
Time points for plotting.
Maximal step size for the Qiskit Dynamics's
expmsolver.qiskit_dynamics.Signalfor Qiskit Dynamics'sexpmsolver.Evaluation time points for Qiskit Dynamics's
expmsolver.Time interval for Qiskit Dynamics's
expmsolver.Type of the simulation.
Start time of the segment.