def _define(self):
definition = []<EOL>q = QuantumRegister(<NUM_LIT:2>, "<STR_LIT:q>")<EOL>rule = [<EOL>(HGate(), [q[<NUM_LIT:1>]], []),<EOL>(CnotGate(), [q[<NUM_LIT:0>], q[<NUM_LIT:1>]], []),<EOL>(HGate(), [q[<NUM_LIT:1>]], [])<EOL>]<EOL>for inst in rule:<EOL><INDENT>definition.append(inst)<EOL><DEDENT>self.definition = definition<EOL>
gate cz a,b { h b; cx a,b; h b; }