Structure of add_pulse_information_transmon should be improved
The add_pulse_information_transmon
of the compiler currently consists of a big switch structure. With the introduction of acquisition protocols, this adds another switch structure nested within. It is obvious that this doesn't scale well if we add more operations and more acquisition protocols, and I fear this will become quite messy soon otherwise.
In OOP generally switch structures are better avoided (except in some cases). We should come up with a way to restructure the compiler. Usually these kind of structures are better done using some kind of mapping or by using polymorphism, but maybe there is a better way in this case by moving part of the code elsewhere.