Inverter for an electric machine, comprising a first power unit and a second power unit being parallelly connected and each configured to provide a multiphase AC output (7, 9) to stator windings (4, 5) of the electric machine and a control unit configured to provide a set of pulse sequences to each power unit (6, 8), phase positions of the sets of pulse sequences being interleaved to each other, the control unit being further configured to vary a pulsing frequency of the sets of pulse sequences and to adjust the mutual phase position of each set of pulse sequences to the interleaved phase positions when varying the pulsing frequency; the control unit comprising - a feedforward unit for the second power unit, - a modulation unit configured to provide the sets of pulse sequences by pulse width modulation, to modulate a basic signal and to provide the set of pulse sequences obtained by modulating the basic signal to the first power unit, - a PLL unit assigned to the feedforward unit and - a main unit configured to provide the basic signal to the feedforward unit, to vary a frequency of the basic signal with respect to an implemented control strategy and to provide an actual phase position and a predefined phase setpoint to the PLL unit; wherein the feedforward unit has a finite impulse response and is configured to adjust a phase position of the basic signal to the interleaved phase position of the set of pulse sequences for the second power unit within one period after varying the frequency; wherein the PLL unit is configured to correct the phase position depending on the actual phase position and the predefined phase setpoint, the PLL unit and the feedforward unit being connected to correct the phase position of the basic signal adjusted by the feedforward unit and to provide an adjusted and corrected basic signal, the basic signal and the adjusted and corrected basic signal having a mutual phase offset; wherein the modulation unit is further configured to obtain the adjusted and corrected basic signal, to modulate it and to provide the set of pulse sequences to the second power unit. the control unit comprising - a feedforward unit for the second power unit, - a modulation unit configured to provide the sets of pulse sequences by pulse width modulation, to modulate a basic signal and to provide the set of pulse sequences obtained by modulating the basic signal to the first power unit, - a PLL unit assigned to the feedforward unit and - a main unit configured to provide the basic signal to the feedforward unit, to vary a frequency of the basic signal with respect to an implemented control strategy and to provide an actual phase position and a predefined phase setpoint to the PLL unit; wherein - a feedforward unit for the second power unit, - a modulation unit configured to provide the sets of pulse sequences by pulse width modulation, to modulate a basic signal and to provide the set of pulse sequences obtained by modulating the basic signal to the first power unit, - a PLL unit assigned to the feedforward unit and - a main unit configured to provide the basic signal to the feedforward unit, to vary a frequency of the basic signal with respect to an implemented control strategy and to provide an actual phase position and a predefined phase setpoint to the PLL unit; wherein the feedforward unit has a finite impulse response and is configured to adjust a phase position of the basic signal to the interleaved phase position of the set of pulse sequences for the second power unit within one period after varying the frequency; wherein the PLL unit is configured to correct the phase position depending on the actual phase position and the predefined phase setpoint, the PLL unit and the feedforward unit being connected to correct the phase position of the basic signal adjusted by the feedforward unit and to provide an adjusted and corrected basic signal, the basic signal and the adjusted and corrected basic signal having a mutual phase offset; wherein the modulation unit is further configured to obtain the adjusted and corrected basic signal, to modulate it and to provide the set of pulse sequences to the second power unit.