Control not also tested using the N qbit gate
Measurement part almost completely written. The code compiles