def size(self):
gate_ops = <NUM_LIT:0><EOL>for instr, _, _ in self.data:<EOL><INDENT>if instr.name not in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>gate_ops += <NUM_LIT:1><EOL><DEDENT><DEDENT>return gate_ops<EOL>
Returns total number of gate operations in circuit.

        Returns:
            int: Total number of gate operations.