Still not clear... are you designing a specific signal called '2' or is is a number?
If it's a number, how do you represent it, does your encoder have a logic level to represent '2' ?
OK, so this is not arithmetic addition of binary digits at all. It seems you want to add the binary levels to produce an analog result. Binary can only have two levels, 0 and 1 but the diagram shows a third higher level. What you need is an analog adder not a binary one.
This is an encoding scheme. The diagram dies not show a discrete binary value, but the values of the encoding over time. So two is just a value in time. This is not an addition problem, it's a decoding problem.