{"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/q-maml-quantum-model-agnostic-meta-learning","title":"Q-MAML: Quantum Model-Agnostic Meta-Learning for Variational Quantum Algorithms","arxiv_id":"2501.05906","date":"2025-01-10","proceeding":null,"authors":["Junyong Lee","Jeihee Cho","Shiho Kim"],"abstract":"In the Noisy Intermediate-Scale Quantum (NISQ) era, using variational quantum algorithms (VQAs) to solve optimization problems has become a key application. However, these algorithms face significant challenges, such as choosing an effective initial set of parameters and the limited quantum processing time that restricts the number of optimization iterations. In this study, we introduce a new framework for optimizing parameterized quantum circuits (PQCs) that employs a classical optimizer, inspired by Model-Agnostic Meta-Learning (MAML) technique. This approach aim to achieve better parameter initialization that ensures fast convergence. Our framework features a classical neural network, called Learner}, which interacts with a PQC using the output of Learner as an initial parameter. During the pre-training phase, Learner is trained with a meta-objective based on the quantum circuit cost function. In the adaptation phase, the framework requires only a few PQC updates to converge to a more accurate value, while the learner remains unchanged. This method is highly adaptable and is effectively extended to various Hamiltonian optimization problems. We validate our approach through experiments, including distribution function mapping and optimization of the Heisenberg XYZ Hamiltonian. The result implies that the Learner successfully estimates initial parameters that generalize across the problem space, enabling fast adaptation.","url_abs":"https://arxiv.org/abs/2501.05906v1","url_pdf":"https://arxiv.org/pdf/2501.05906v1.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":[{"paper_slug":"q-maml-quantum-model-agnostic-meta-learning","repo_url":"https://github.com/JayC1208/Q-MAML","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"meta-learning","task_name":"Meta-Learning"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2501.05906","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2501.05906"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/JayC1208/Q-MAML","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"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":"d7eaf327f929283a","entry":"convert_array","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"data.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d7eaf327f929283a"}},{"code_sha256_prefix":"7d54b1291e82c7e8","entry":"convert_molecule","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"data.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7d54b1291e82c7e8"}},{"code_sha256_prefix":"128ac60541bfa75b","entry":"cost","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"mol_adaptation.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/mol_adaptation.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"128ac60541bfa75b"}},{"code_sha256_prefix":"1096ab8cd530b599","entry":"create_neel_st","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"circuit.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/circuit.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1096ab8cd530b599"}},{"code_sha256_prefix":"3a9e71d41d2c1664","entry":"create_neel_st_2d","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"utils.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3a9e71d41d2c1664"}},{"code_sha256_prefix":"a4c964558c5b148c","entry":"custom_collate_fn","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"data.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a4c964558c5b148c"}},{"code_sha256_prefix":"a1df49500665d958","entry":"train","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"mol_pretrain.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/mol_pretrain.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1df49500665d958"}},{"code_sha256_prefix":"2d25e9e17df1e84f","entry":"train","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"xyz_pretrain.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/xyz_pretrain.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d25e9e17df1e84f"}},{"code_sha256_prefix":"ff838c924b39c15f","entry":"validation","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"mol_pretrain.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/mol_pretrain.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ff838c924b39c15f"}},{"code_sha256_prefix":"7e39ffd238e68366","entry":"validation","repo":"JayC1208/Q-MAML","repo_kind":"official","path":"xyz_pretrain.py","file_url":"https://github.com/JayC1208/Q-MAML/blob/HEAD/xyz_pretrain.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7e39ffd238e68366"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}