@@ -193,7 +193,7 @@ QCQASMListener.prototype.enterStatement = function(ctx) {
193193 case "CX" : gateName = "cx" ; break ;
194194 case "U" : gateName = "u3" ; break ;
195195 }
196-
196+ /*
197197 if(!self.compatibilityMode) {
198198 switch(gateName) {
199199 case "rz": {
@@ -205,7 +205,7 @@ QCQASMListener.prototype.enterStatement = function(ctx) {
205205 }; break;
206206 }
207207 }
208-
208+ */
209209 var external = self . circuit . customGates [ gateName ] ;
210210 if ( external ) {
211211 customGate . registerGate ( gateName , JSON . parse ( JSON . stringify ( external ) ) ) ;
@@ -420,7 +420,7 @@ QCQASMListener.prototype.enterQop = function(ctx) {
420420 args . map ( function ( a ) {
421421 wires . push ( a . bit + self . qregBase ( a . reg ) ) ;
422422 } ) ;
423-
423+ /*
424424 if(!self.compatibilityMode) {
425425 switch(gateName) {
426426 case "rz": {
@@ -432,7 +432,7 @@ QCQASMListener.prototype.enterQop = function(ctx) {
432432 }; break;
433433 }
434434 }
435-
435+ */
436436 self . circuit . addGate ( gateName , - 1 , wires , options ) ;
437437 }
438438 }
@@ -458,7 +458,7 @@ QCQASMListener.prototype.enterQop = function(ctx) {
458458 args . map ( function ( a ) {
459459 wires . push ( a . bit + self . qregBase ( a . reg ) ) ;
460460 } ) ;
461-
461+ /*
462462 if(!self.compatibilityMode) {
463463 switch(gateName) {
464464 case "rz": {
@@ -470,7 +470,7 @@ QCQASMListener.prototype.enterQop = function(ctx) {
470470 }; break;
471471 }
472472 }
473-
473+ */
474474 self . circuit . addGate ( gateName , - 1 , wires , options ) ;
475475 }
476476 }
0 commit comments