Inverter Multilevel

this is my inverter circuit for 11 levels

and i want to the output like this, how to generate the pulse and PWM?

This is an idea to generate the pattern according to your table. If I have misunderstood something, you may still be able to easily figure out the fix from this basic PWM generation concept.

S1-S8-Pattern.qsch (17.5 KB)

this is my circuit and then i want the output of V(x,y) have 11 levels according to the circuit and the output table

You very naively believe to make your circuit work using a capacitive divider. Usually several voltage sources are used.
Don’t you notice that the amplitude of the pulses gradually decreases over time as the capacitors discharge?
You were shown a different, workable way.