Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM69092
Volume:
10 |
11 |
Nov 2026
Pages:
1-6
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Department of Computer Science and Engineering
Jawaharlal Nehru New College of Engineering,
Department of Computer Science and Engineering
Jawaharlal Nehru New College of Engineering,
Department of Computer Science and Engineering
Jawaharlal Nehru New College of Engineering,
Department of Computer Science and Engineering
Jawaharlal Nehru New College of Engineering,
Department of Computer Science and Engineering
Jawaharlal Nehru New College of Engineering,
Programs written first are often slow, and the tools that are available either only advise the programmer or change the code without checking it. This paper presents the Quantum Inspired AI Code Optimizer (QIACO), a web platform for Python, C++, C, Java and Go. The platform checks the syntax with the host compiler, derives time and space complexity from the syntax tree, rewrites 100 families of well-known algorithms with a master abstract syntax tree (AST) engine, and searches combinations of rewrite rules with a quantum-inspired evolutionary algorithm that is supported by a neural inefficiency detector and a Q-learning agent. A candidate is accepted only after differential testing against the original in an isolated process, and every request ends in a clear evidence-based state, so that code that is already good, code that cannot be verified and code that fails validation are reported honestly. Of 16 programs sent to the running system, 11 were improved and validated; in a benchmark of 200 requests on 100 programs in two languages, 153 returned a validated optimization. Of 77 automated back-end tests, 73 passed.
KEYWORDS
The Quantum Inspired AI Code Optimizer demonstrates that a master AST engine and a quantum-inspired search over rewrite rules, supported by structural analysis, a neural detector and a Q-learning agent and followed by differential validation in a sandbox, can return optimized programs in several languages and can state honestly when no safe improvement exists. Eleven of 16 measured programs were improved and validated, three were correctly left unchanged, and 153 of 200 benchmark requests returned a validated optimization. Future work includes a hard time limit for every request, an update of the failing tests, deeper deterministic rewrites for Java and Go, a larger and more varied training set for the neural detector, a combination of the static estimate with measured growth, stronger isolation of the sandbox on Windows, and symbolic checks that extend the validation beyond generated inputs.
[1] K.-H. Han and J.-H. Kim, “Quantum-inspired evolutionary algorithm for a class of combinatorial optimization,” IEEE Transactions on Evolutionary Computation, vol. 6, no. 6, pp. 580–593, 2002. [2] C. J. C. H. Watkins and P. Dayan, “Q-learning,” Machine Learning, vol. 8, no. 3–4, pp. 279–292, 1992. [3] R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed. Cambridge, MA, USA: MIT Press, 2018. [4] E. Schkufza, R. Sharma and A. Aiken, “Stochastic superoptimization,” in Proc. ASPLOS, 2013, pp. 305–316. [5] R. Bunel, A. Desmaison, M. P. Kumar, P. H. S. Torr and P. Kohli, “Learning to superoptimize programs,” in Proc. ICLR, 2017. [6] A. Madaan et al., “Learning performance-improving code edits,” in Proc. ICLR, 2024. [7] M. Chen et al., “Evaluating large language models trained on code,” arXiv:2107.03374, 2021. [8] Y. Li et al., “Competition-level code generation with AlphaCode,” Science, vol. 378, no. 6624, pp. 1092–1097, 2022. [9] M.-A. Lachaux, B. Roziere, L. Chanussot and G. Lample, “Unsupervised translation of programming languages,” in Proc. NeurIPS, 2020. [10] A. V. Aho, M. S. Lam, R. Sethi and J. D. Ullman, Compilers: Principles, Techniques, and Tools, 2nd ed. Boston, MA, USA: Addison-Wesley, 2006.
Publication Date
11/17/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
2
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...