TimeSegment

class TimeSegment(start, end, pulses)

Represents a time segment associated with a list of pulses.

A TimeSegment is a time interval and includes all pulses that are active in the interval. It based on the PulseList and 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

Duration of the time segment.

end

End time of the segment.

is_all_constant_envelope

Check if all pulses have a constant envelope.

max_frequency

Maximal frequency of the time segment's pulses.

n_pulses

Number of pulses.

plot_ps

Values for plotting.

plot_ts

Time points for plotting.

simulation_max_dt

Maximal step size for the Qiskit Dynamics's expm solver.

simulation_signals

qiskit_dynamics.Signal for Qiskit Dynamics's expm solver.

simulation_t_eval

Evaluation time points for Qiskit Dynamics's expm solver.

simulation_t_span

Time interval for Qiskit Dynamics's expm solver.

simulation_type

Type of the simulation.

start

Start time of the segment.