{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/tensorrl-qas-reinforcement-learning-with","title":"TensorRL-QAS: Reinforcement learning with tensor networks for scalable quantum architecture search","arxiv_id":"2505.09371","date":"2025-05-14","proceeding":null,"authors":["Akash Kundu","Stefano Mangini"],"abstract":"Variational quantum algorithms hold the promise to address meaningful quantum problems already on noisy intermediate-scale quantum hardware, but they face the challenge of designing quantum circuits that both solve the target problem and comply with device limitations. Quantum architecture search (QAS) automates this design process, with reinforcement learning (RL) emerging as a promising approach. Yet, RL-based QAS methods encounter significant scalability issues, as computational and training costs grow rapidly with the number of qubits, circuit depth, and noise, severely impacting performance. To address these challenges, we introduce $\\textit{TensorRL-QAS}$, a scalable framework that combines tensor network (TN) methods with RL for designing quantum circuits. By warm-starting the architecture search with a matrix product state approximation of the target solution, TensorRL-QAS effectively narrows the search space to physically meaningful circuits, accelerating convergence to the desired solution. Tested on several quantum chemistry problems of up to 12-qubit, TensorRL-QAS achieves up to a 10-fold reduction in CNOT count and circuit depth compared to baseline methods, while maintaining or surpassing chemical accuracy. It reduces function evaluations by up to 100-fold, accelerates training episodes by up to $98\\%$, and achieves up to $50\\%$ success probability for 10-qubit systems-far exceeding the $<1\\%$ rates of baseline approaches. Robustness and versatility are demonstrated both in the noiseless and noisy scenarios, where we report a simulation of up to 8-qubit. These advancements establish TensorRL-QAS as a promising candidate for a scalable and efficient quantum circuit discovery protocol on near-term quantum hardware.","url_abs":"https://arxiv.org/abs/2505.09371v1","url_pdf":"https://arxiv.org/pdf/2505.09371v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[],"tasks":[{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"tensor-networks","task_name":"Tensor Networks"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.09371","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.09371"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/Aqasch/TensorRL-QAS","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":1,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":9,"ran":1,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"06734a9e368d830d","entry":"get_config","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"agents/utils.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/agents/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"06734a9e368d830d"}},{"code_sha256_prefix":"ee51836f8c9ff5d8","entry":"agent_test","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"TensorRL_fixed_noise.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/TensorRL_fixed_noise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ee51836f8c9ff5d8"}},{"code_sha256_prefix":"9dda0e3a6359e78d","entry":"construct_hamiltonian","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"dmrg-to-qc/heisenberg_model.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/dmrg-to-qc/heisenberg_model.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9dda0e3a6359e78d"}},{"code_sha256_prefix":"7614cca5343f02e1","entry":"dict_of_actions_revert_q","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"agents/utils.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/agents/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7614cca5343f02e1"}},{"code_sha256_prefix":"fc9e1adba7d8984c","entry":"dictionary_of_actions","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"agents/utils.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/agents/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fc9e1adba7d8984c"}},{"code_sha256_prefix":"34a404cabfabf279","entry":"dictionary_of_actions_hexagon_connectivity","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"agents/utils_topology_restrict.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/agents/utils_topology_restrict.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"34a404cabfabf279"}},{"code_sha256_prefix":"e0b2c4952d67af2a","entry":"dictionary_of_actions_hexagon_connectivity_reverted","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"agents/utils_topology_restrict.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/agents/utils_topology_restrict.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e0b2c4952d67af2a"}},{"code_sha256_prefix":"a291234eaf8b4fb6","entry":"get_args","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"TensorRL_fixed_noise.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/TensorRL_fixed_noise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a291234eaf8b4fb6"}},{"code_sha256_prefix":"178818204848d96a","entry":"modify_state","repo":"Aqasch/TensorRL-QAS","repo_kind":"found_in_text","path":"TensorRL_fixed_noise.py","file_url":"https://github.com/Aqasch/TensorRL-QAS/blob/HEAD/TensorRL_fixed_noise.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"178818204848d96a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}