<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">J Med Internet Res</journal-id><journal-id journal-id-type="publisher-id">jmir</journal-id><journal-id journal-id-type="index">1</journal-id><journal-title>Journal of Medical Internet Research</journal-title><abbrev-journal-title>J Med Internet Res</abbrev-journal-title><issn pub-type="epub">1438-8871</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v28i1e91513</article-id><article-id pub-id-type="doi">10.2196/91513</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Anonymization of Portuguese Clinical Notes Using Large Language Models and Quantum-Enhanced Hybrid Architectures: Comparative Evaluation Study</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Rahmeh</surname><given-names>Samer</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Dias</surname><given-names>Felipe Meneguitti</given-names></name><degrees>EE, MSc, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Moreno</surname><given-names>Ramon Alfredo</given-names></name><degrees>EE, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Rebelo</surname><given-names>Marina De Fatima De Sa</given-names></name><degrees>MSc, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Herrmann</surname><given-names>Daniela</given-names></name><degrees>MSc</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Krieger</surname><given-names>Jose Eduardo</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Gutierrez</surname><given-names>Marco Antonio</given-names></name><degrees>EE, MSc, PhD</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib></contrib-group><aff id="aff1"><institution>Quantum Solutions Architecture Dept, Q.Enterprises AG (Dynex)</institution><addr-line>Baar</addr-line><addr-line>Zug</addr-line><country>Switzerland</country></aff><aff id="aff2"><institution>Instituto do Cora&#x00E7;&#x00E3;o, Hospital das Cl&#x00ED;nicas HCFMUSP, Faculdade de Medicina, Universidade de S&#x00E3;o Paulo</institution><addr-line>Av. Dr. En&#x00E9;as de Carvalho Aguiar, 44</addr-line><addr-line>Sao Paulo</addr-line><addr-line>S&#x00E3;o Paulo</addr-line><country>Brazil</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Steenstra</surname><given-names>Ivan</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Sabbineni</surname><given-names>Hemalatha</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Dey</surname><given-names>Sumon Kanti</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Marco Antonio Gutierrez, EE, MSc, PhD, Instituto do Cora&#x00E7;&#x00E3;o, Hospital das Cl&#x00ED;nicas HCFMUSP, Faculdade de Medicina, Universidade de S&#x00E3;o Paulo, Av. Dr. En&#x00E9;as de Carvalho Aguiar, 44, Sao Paulo, S&#x00E3;o Paulo, 05403-000, Brazil, +551126615441; <email>marco.gutierrez@hc.fm.usp.br</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>14</day><month>9</month><year>2026</year></pub-date><volume>28</volume><elocation-id>e91513</elocation-id><history><date date-type="received"><day>15</day><month>01</month><year>2026</year></date><date date-type="rev-recd"><day>16</day><month>07</month><year>2026</year></date><date date-type="accepted"><day>17</day><month>07</month><year>2026</year></date></history><copyright-statement>&#x00A9; Samer Rahmeh, Felipe Meneguitti Dias, Ramon Alfredo Moreno, Marina De Fatima De Sa Rebelo, Daniela Herrmann, Jose Eduardo Krieger, Marco Antonio Gutierrez. Originally published in the Journal of Medical Internet Research (<ext-link ext-link-type="uri" xlink:href="https://www.jmir.org">https://www.jmir.org</ext-link>), 14.9.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.jmir.org/">https://www.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://www.jmir.org/2026/1/e91513"/><abstract><sec><title>Background</title><p>The widespread adoption of electronic health records (EHRs) has generated large-scale repositories of highly sensitive clinical information, emphasizing the need for robust anonymization strategies to enable secondary use for research while safeguarding patient privacy. Conventional rule-based and machine learning approaches for deidentifying medical text face limitations with the linguistic complexity, variability, and context dependence inherent to clinical documentation. Recent advances in large language models (LLMs), combined with emerging quantum computing paradigms, present novel opportunities to enhance the accuracy, scalability, and resilience of health care data anonymization.</p></sec><sec><title>Objective</title><p>This study aims to evaluate the efficacy of LLM-based and quantum-enhanced hybrid architectures for medical text anonymization, assessing the effectiveness and computational efficiency across multiple entity types in Portuguese clinical notes.</p></sec><sec sec-type="methods"><title>Methods</title><p>We constructed a gold-standard corpus of 1000 Portuguese outpatient clinical notes, manually annotated by 5 trained researchers for 5 protected-entity categories: patient names, dates, identifiers, organizations, and geographic locations. Four anonymization strategies were evaluated: 2 stand-alone LLMs (Llama-3.1-8B-instruct and Llama-3.3-70B-instruct) and 2 quantum-enhanced hybrid models (Dynex-QML with 8B and 70B base models) incorporating quantum optimization via Quadratic Unconstrained Binary Optimization (QUBO) formulations. The quantum-enhanced approach transforms the final attention layer of the LLM into a global constraint satisfaction problem solved via neuromorphic quantum annealing. Model performance was measured on a held-out test set of 500 notes using precision, recall, and <italic>F</italic><sub>1</sub>-score metrics. Computational efficiency was quantified through end-to-end processing time.</p></sec><sec sec-type="results"><title>Results</title><p>The quantum-enhanced Dynex-QML-70B model achieved the highest overall performance with a macro<italic>&#x2013;F</italic><sub>1</sub>-score of 0.855 (95% CI 0.823&#x2010;0.880), outperforming the stand-alone Llama-3.3-70B (0.726, 95% CI 0.704&#x2010;0.747), Dynex-QML-8B (0.733, 95% CI 0.709&#x2010;0.756), and Llama-3.1-8B (0.602, 95% CI 0.588&#x2010;0.615). Compared with Llama 3.3 70B, Dynex-QML (Llama 70B) improved macro<italic>&#x2013;F</italic><sub>1</sub>-score by 0.128 (95% CI 0.091&#x2010;0.163; empirical 2-sided bootstrap <italic>P</italic>&#x003C;.001). Most entity-level within-size comparisons favored the Dynex-QML models and were statistically significant, although the ORGANIZATION comparison between Dynex-QML (Llama 8B) and Llama 3.1 8B was not significant. For total elapsed time, Dynex-QML (Llama 70B) was faster than stand-alone Llama 3.3 70B (7.97, 95% CI 7.72&#x2010;8.21 seconds per note vs 8.52, 95% CI 8.23&#x2010;8.81 seconds per note). In a paired note-level bootstrap comparison, this corresponded to a mean reduction of 0.55 (SD 2.36; 95% CI &#x2212;0.75 to &#x2212;0.34 seconds per note; <italic>P</italic>&#x003C;.001).</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>Quantum-enhanced hybrid architectures provide substantial improvements in medical text anonymization accuracy compared to stand-alone LLMs, particularly reductions in false-positive rates while preserving high sensitivity. The Dynex-QML-70B model achieved the best balance between performance and efficiency, suggesting that quantum-enhanced optimization offers a strategy for high-fidelity, scalable, and regulation-compliant deidentification of clinical text. These findings highlight the potential of emerging quantum-AI paradigms to advance the secondary secure use of health care data.</p></sec></abstract><kwd-group><kwd>electronic health record</kwd><kwd>medical text anonymization</kwd><kwd>large language models</kwd><kwd>quantum machine learning</kwd><kwd>natural language processing</kwd><kwd>data privacy</kwd><kwd>HIPAA compliance</kwd><kwd>GDPR compliance</kwd><kwd>LGPD compliance</kwd><kwd>LLMs</kwd><kwd>QML</kwd><kwd>NLP</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><sec id="s1-1"><title>Background</title><p>The widespread adoption of electronic health records (EHRs) has fundamentally transformed how patient information is generated, stored, and accessed in health care systems worldwide [<xref ref-type="bibr" rid="ref1">1</xref>,<xref ref-type="bibr" rid="ref2">2</xref>]. These digital repositories enable comprehensive documentation of medical histories, clinical notes, diagnostic results, and other sensitive data, frequently captured in unstructured textual formats [<xref ref-type="bibr" rid="ref3">3</xref>]. Safeguarding this information is critical not only to preserve patient privacy and confidentiality but also to ensure the integrity and trustworthiness of modern health care systems [<xref ref-type="bibr" rid="ref4">4</xref>,<xref ref-type="bibr" rid="ref5">5</xref>].</p><p>Core principles of medical data governance, including privacy, confidentiality, integrity, and nonrepudiation, guide how patient information is accessed, shared, and protected [<xref ref-type="bibr" rid="ref6">6</xref>]. Anonymization has thus become a vital requirement, enabling secondary uses of health data for research and quality improvement while minimizing the risk of patient reidentification [<xref ref-type="bibr" rid="ref7">7</xref>,<xref ref-type="bibr" rid="ref8">8</xref>]. The challenge of effective anonymization is particularly acute for unstructured clinical text, which contains complex linguistic patterns, domain-specific terminology, and contextually embedded sensitive information [<xref ref-type="bibr" rid="ref9">9</xref>,<xref ref-type="bibr" rid="ref10">10</xref>].</p><p>To address these concerns, comprehensive data protection regulations have been established worldwide. In the United States, the Health Insurance Portability and Accountability Act (HIPAA) mandates the deidentification of Protected Health Information (PHI) before secondary use, specifying either Safe Harbor or Expert Determination methods for compliance [<xref ref-type="bibr" rid="ref11">11</xref>,<xref ref-type="bibr" rid="ref12">12</xref>]. The European General Data Protection Regulation (GDPR) sets rigorous standards for processing health data, emphasizing techniques such as anonymization and pseudonymization with stringent consent requirements [<xref ref-type="bibr" rid="ref13">13</xref>,<xref ref-type="bibr" rid="ref14">14</xref>]. Similarly, Brazil&#x2019;s Lei Geral de Prote&#x00E7;&#x00E3;o de Dados Pessoais (LGPD) aligns with international norms, underscoring the need for robust technical solutions to protect sensitive information in the Brazilian health care context [<xref ref-type="bibr" rid="ref15">15</xref>].</p><p>Over time, various anonymization methods have been developed to address these regulatory requirements [<xref ref-type="bibr" rid="ref16">16</xref>]. Conventional rule-based and pattern-matching techniques, though reliable for structured identifiers such as social security numbers and standardized date formats, often struggle with the linguistic complexity, variability, and context dependence of natural language in medical texts [<xref ref-type="bibr" rid="ref17">17</xref>,<xref ref-type="bibr" rid="ref18">18</xref>]. These approaches typically require extensive manual rule creation and maintenance, limiting their scalability across different health care institutions and documentation styles.</p><p>Machine learning and deep learning models, particularly those developed for Named Entity Recognition (NER), offer greater adaptability and accuracy in identifying sensitive entities within clinical narratives [<xref ref-type="bibr" rid="ref19">19</xref>-<xref ref-type="bibr" rid="ref21">21</xref>]. Transformer-based architectures, including BERT (Bidirectional Encoder Representations from Transformers) and specialized biomedical variants such as BioBERT and ClinicalBERT, have demonstrated strong performance across multiple deidentification benchmarks by effectively capturing contextual and domain-specific linguistic patterns [<xref ref-type="bibr" rid="ref22">22</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. However, these approaches require large annotated corpora, extensive hyperparameter tuning, and considerable computational resources for both training and inference [<xref ref-type="bibr" rid="ref24">24</xref>].</p><p>Most recently, large language models (LLMs) such as GPT-4, Llama, and their instruction-tuned derivatives have emerged as promising alternatives for anonymizing medical texts [<xref ref-type="bibr" rid="ref25">25</xref>,<xref ref-type="bibr" rid="ref26">26</xref>]. These models can capture nuanced context, understand complex semantic relationships, and identify entities that may elude traditional pattern-matching systems [<xref ref-type="bibr" rid="ref27">27</xref>]. Evidence suggests that locally deployable LLMs can achieve competitive performance with state-of-the-art NER systems while offering flexibility in entity categories through prompt engineering [<xref ref-type="bibr" rid="ref28">28</xref>,<xref ref-type="bibr" rid="ref29">29</xref>]. Nevertheless, LLM-based approaches remain at a nascent stage in the clinical deidentification literature, with persistent concerns regarding model interpretability, computational overhead, hallucination phenomena, and potential risks when processing sensitive data through external services [<xref ref-type="bibr" rid="ref30">30</xref>].</p><p>Even more exploratory are efforts in quantum computing paradigms, which have begun to investigate whether quantum algorithms can be applied to tasks such as pattern recognition, optimization, and privacy-preserving computation [<xref ref-type="bibr" rid="ref31">31</xref>,<xref ref-type="bibr" rid="ref32">32</xref>]. Quantum Natural Language Processing (QNLP) represents an emerging field that leverages quantum mechanical principles for linguistic tasks, with theoretical foundations suggesting potential advantages in expressiveness and computational efficiency [<xref ref-type="bibr" rid="ref33">33</xref>,<xref ref-type="bibr" rid="ref34">34</xref>]. The application of quantum machine learning to text processing has been explored through various frameworks, including the translation of classical operations into Quadratic Unconstrained Binary Optimization (QUBO) problems suitable for quantum annealing [<xref ref-type="bibr" rid="ref35">35</xref>,<xref ref-type="bibr" rid="ref36">36</xref>]. Neuromorphic quantum computing platforms have emerged that emulate quantum behavior through memristor-based circuits, enabling practical deployment of quantum-inspired algorithms on classical hardware [<xref ref-type="bibr" rid="ref37">37</xref>]. Despite growing interest, the practical application of quantum-enhanced approaches to clinical machine learning remains largely unexplored, and no systematic evaluations have compared quantum-assisted architectures with contemporary LLM-based or transformer-based methods for clinical text anonymization. The aim of this study is to evaluate the effectiveness and computational efficiency of LLM-based and quantum-enhanced hybrid anonymization architectures on Portuguese clinical notes from a single Brazilian tertiary cardiology hospital, across 5 protected health information entity categories. We hypothesized that integrating a global QUBO-based optimization layer over the final attention layer of an instruction-tuned LLM would yield higher anonymization quality, particularly in precision, than the same LLM operating in stand-alone prompt-based mode, while remaining computationally tractable for routine de-identification workflows.</p></sec><sec id="s1-2"><title>Related Works and Our Contribution</title><p>Recent studies have explored the use of LLMs for clinical text deidentification. Wiest et al [<xref ref-type="bibr" rid="ref28">28</xref>] developed an open-source anonymization framework based on locally deployable LLMs, demonstrating that models such as Llama-3-70B can achieve sensitivity exceeding 0.992 on German clinical letters. Their work emphasized 2 critical aspects: the importance of local deployment for privacy preservation and the flexibility of prompt-based approaches for customizing entity definitions. Similar findings have been reported for English clinical texts, where instruction-tuned LLMs have achieved competitive performance against fine-tuned NER systems [<xref ref-type="bibr" rid="ref26">26</xref>].</p><p>Systematic reviews of deidentification approaches have documented the evolution from rule-based systems to hybrid machine learning methods, with transformer-based models representing the current state of the art [<xref ref-type="bibr" rid="ref19">19</xref>,<xref ref-type="bibr" rid="ref38">38</xref>]. The 2014 i2b2-UTHealth corpus remains the most frequently used benchmark, where top-performing systems achieve a micro-averaged <italic>F</italic><sub>1</sub>-score of 0.940 [<xref ref-type="bibr" rid="ref39">39</xref>]. However, most benchmarks focus on English texts, with limited evaluation of methods for other languages, including Portuguese.</p><p>In the quantum computing domain, research in QNLP has demonstrated theoretical advantages for text classification and semantic analysis tasks [<xref ref-type="bibr" rid="ref33">33</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Hybrid quantum-classical approaches have been proposed that integrate quantum circuit optimization with classical neural network components [<xref ref-type="bibr" rid="ref41">41</xref>]. However, to our knowledge, no prior work has specifically evaluated quantum-enhanced architectures for medical text anonymization.</p><p>In this context, this study makes several contributions. First, we present a comparative evaluation of LLM-based and quantum-enhanced hybrid architectures for medical text anonymization using a purpose-built corpus of Portuguese clinical notes. Second, we demonstrate the application of neuromorphic quantum optimization algorithms to improve anonymization precision while maintaining high recall. Third, we provide a detailed explanation of how transformer attention mechanisms can be reformulated as QUBO problems and solved via quantum annealing. Fourth, we provide a comprehensive assessment of both quality metrics and computational efficiency. Finally, we discuss the implications of our findings for regulatory compliance and practical deployment in health care settings.</p><p>The primary aim of this study was to perform a comparative evaluation of stand-alone LLM anonymization approaches and quantum-enhanced hybrid architectures for the deidentification of Portuguese clinical notes. Specifically, we aimed to determine whether the proposed Dynex-QML framework could improve anonymization performance compared with conventional prompt-based LLM approaches, particularly regarding precision, false-positive (FP) reduction, and overall <italic>F</italic><sub>1</sub>-score, while preserving high sensitivity and practical computational efficiency.</p></sec></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Database Construction and Preparation</title><sec id="s2-1-1"><title>Anonymization Corpus Development</title><p>A dedicated dataset was constructed at the Heart Institute (Instituto do Cora&#x00E7;&#x00E3;o [InCor]), 1 of the 6 specialized institutes within the Hospital das Cl&#x00ED;nicas of the University of S&#x00E3;o Paulo Medical School (HC-FMUSP), the largest academic health care complex in Latin America. Although collected within a single health care system, the dataset reflects substantial heterogeneity due to the large and diverse patient population served by HC-FMUSP and the broad range of clinical documentation practices encountered in this setting. InCor, as a tertiary cardiovascular referral center, receives patients from multiple geographic regions of Brazil and from diverse socioeconomic backgrounds. Furthermore, the Brazilian population is characterized by a high degree of ethnic and cultural admixture, resulting from the historical contributions of European, African, Asian, and Indigenous populations. This diversity is reflected in clinical documentation through a wide variety of personal names, surnames, demographic characteristics, cultural references, and other potentially identifiable entities. Consequently, the dataset captures considerable variability in both patient-related information and physician documentation styles, providing a challenging and representative environment for evaluating anonymization methods. The dataset was specifically developed to validate the anonymization approaches evaluated in this study. This gold-standard corpus comprises 1000 outpatient clinical notes, originally written in Brazilian Portuguese, and reflects a broad range of sensitive information representative of real-world clinical documentation.</p><p>The clinical notes were extracted from the electronic patient record [<xref ref-type="bibr" rid="ref42">42</xref>,<xref ref-type="bibr" rid="ref43">43</xref>], covering encounters recorded between July 2020 and February 2024. Patients in the source dataset had a mean age of 62.5 (SD 18.37) years, with a balanced sex distribution, and the most frequent <italic>ICD-10</italic> (<italic>International Statistical Classification of Diseases, Tenth Revision</italic>) codes were mainly cardiovascular. The notes consisted primarily of patient anamneses from routine clinical care, and had a median length of 1168 (IQR 682.5-1645.5) characters. They included information on personal and family medical history, diagnoses, medications, laboratory and imaging test results, and clinical evolution. The source notes also contained a diverse range of sensitive and potentially identifying information commonly found in routine clinical documentation. All original patient information was replaced with pseudoinformation during the annotation process. In the following, we show an example of a clinical note from the dataset.</p><p>The study protocol was reviewed and approved in accordance with institutional and regulatory requirements by the relevant medical and scientific bodies and by the independent Institutional Review Board (CAPPesq &#x2013; IRB Number 68, Brazilian National Research Ethics System), under registration number CAAE 89528325.8.0000.0068. All patient identifiers were replaced during the annotation process to ensure data protection and confidentiality.</p><p>To construct a reliable ground truth for evaluation, 5 annotators manually identified and replaced sensitive entities using standardized annotation tags. The annotation team consisted of doctor-level researchers with backgrounds in biomedical engineering and experience in natural language processing (NLP) applied to medical texts and clinical data.</p><p>Before the annotation process, all annotators received specific training on the 5 protected-entity categories, entity-boundary definitions, inclusion and exclusion criteria, and the use of standardized annotation tags. The training included the review of representative clinical-note examples and pilot annotation cases. Questions and ambiguous cases identified during this phase were discussed by the annotation team, and the annotation guidelines were refined before the final annotation process.</p><p>The corpus was divided into 5 independent subsets of 200 clinical notes, with each subset annotated by one annotator following predefined annotation guidelines specifying entity boundaries and classification criteria. To improve annotation consistency, the annotators participated in iterative guideline refinement discussions during corpus development. Ambiguous annotation cases and uncertain entity classifications were reviewed collaboratively and resolved through consensus discussion. The complete annotation guidelines are publicly available in the study&#x2019;s GitHub repository.</p><p>To provide an additional assessment of annotation reliability, 100 clinical notes were randomly selected from the 500-note evaluation set. The same 100 original clinical notes were independently reannotated by 3 of the 5 annotators who had participated in the original corpus annotation. Each of the 3 annotators completed the annotation of all 100 notes independently using the same protected-entity definitions, annotation guidelines, and annotation procedures applied during the initial corpus construction.</p><p>The annotators were blinded to the original gold-standard annotations, the annotations produced by the other annotators, the pseudonymized texts subsequently generated from the original annotations, and all model outputs. The 3 reannotation sets were used exclusively for the interannotator agreement analysis and did not replace or modify the original gold-standard annotations used for model evaluation. The entity types and their characteristics are detailed in <xref ref-type="table" rid="table1">Table 1</xref>.</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Protected entity categories used for manual annotation of the gold-standard corpus of 1000 Portuguese outpatient clinical notes collected at a tertiary-care academic hospital in Brazil, including entity tags, semantic definitions, and representative examples used during anonymization benchmarking.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Entity tag</td><td align="left" valign="bottom">Description</td><td align="left" valign="bottom">Examples</td></tr></thead><tbody><tr><td align="left" valign="top">&#x003C;NAME&#x003E;</td><td align="left" valign="top">Person&#x2019;s name</td><td align="left" valign="top">Jessica, Miguel, Maria do Carmo</td></tr><tr><td align="left" valign="top">&#x003C;DATE&#x003E;</td><td align="left" valign="top">Dates in various formats</td><td align="left" valign="top">27/06/2022, Mar&#x00E7;o, 13Fev, 2006</td></tr><tr><td align="left" valign="top">&#x003C;ORGANIZATION&#x003E;</td><td align="left" valign="top">Institution or company</td><td align="left" valign="top">InCor, UBS Perus/Lapa, ICESP</td></tr><tr><td align="left" valign="top">&#x003C;LOCAL&#x003E;</td><td align="left" valign="top">Geographic location</td><td align="left" valign="top">Piraporinha, S&#x00E3;o Paulo, Medina-MG</td></tr><tr><td align="left" valign="top">&#x003C;ID&#x003E;</td><td align="left" valign="top">Identifiers (patient ID, ZIP code, phone, and email)</td><td align="left" valign="top">12312312, XA323423, 04330&#x2010;010, 1198576&#x2010;3122, and maria@hotmail.com</td></tr></tbody></table></table-wrap></sec><sec id="s2-1-2"><title>Pseudonymization for Algorithm Validation</title><p>To avoid exposing real patient information during the algorithm validation process, a pseudonymized version of the texts was generated. In this version, each annotated entity was randomly replaced with a synthetic value drawn from appropriate reference lists:</p><list list-type="order"><list-item><p>&#x003C;DATE<bold>&#x003E;</bold>: Random dates between 1950 and 2024, generated in various formats commonly used in Brazilian clinical documentation (eg, 05/24/1990, 23 de maio de 2025, and 13-Fev-2006).</p></list-item><list-item><p>&#x003C;NAME<bold>&#x003E;</bold>: Brazilian names extracted from publicly available census lists, preserving the distribution of common first and family names.</p></list-item><list-item><p>&#x003C;LOCAL<bold>&#x003E;</bold>: Brazilian municipalities obtained from official geographic repositories maintained by the Instituto Brasileiro de Geografia e Estat&#x00ED;stica (IBGE).</p></list-item><list-item><p>&#x003C;ORGANIZATION<bold>&#x003E;</bold>: Names of Brazilian hospitals and health care facilities, sourced from open datasets of the Sistema &#x00DA;nico de Sa&#x00FA;de (SUS, Brazilian Unified Health System).</p></list-item></list><p>This specially constructed and manually annotated dataset provided a gold-standard benchmark for systematically testing and comparing anonymization algorithms while preserving the confidentiality of authentic clinical information.</p></sec></sec><sec id="s2-2"><title>Anonymization Approaches</title><sec id="s2-2-1"><title>LLM-Based Anonymization Approach</title><p>To establish a performance baseline, we selected 2 publicly available LLMs from the Llama family: Llama-3.1-8B-instruct and Llama-3.3-70B-instruct. These models were chosen for their instruction-following capabilities and their suitability for local deployment, which addresses privacy concerns associated with transmitting clinical data to external services [<xref ref-type="bibr" rid="ref28">28</xref>].</p><p>The methodology used a carefully crafted prompt designed to systematically direct the model to identify and replace all occurrences of each predefined category of sensitive information in the clinical notes. The prompt was developed iteratively, with refinements based on preliminary testing to optimize entity recognition across all categories. All evaluation runs used identical decoding settings across both LLM and Dynex-QML configurations to support a controlled comparison: temperature 0.1, top-p 0.95, maximum output length 4096 tokens, and a fixed random seed of 42. Both Llama models were served locally in 4-bit GPTQ quantization through the Hugging Face transformers and accelerate stack on the H100 SXM hardware described in <xref ref-type="table" rid="table2">Table 2</xref>, without any task-specific fine-tuning, in order to isolate the contribution of the optimization layer rather than the contribution of supervised adaptation. The text shown in <xref ref-type="other" rid="box1">Textbox 1</xref> was supplied to the model as a single user-role message; no separate system prompt was used. The anonymization prompt used in the evaluation is shown in <xref ref-type="other" rid="box2">Textbox 2</xref>.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Hardware configuration of the high-performance computing environment used for evaluating stand-alone LLMs<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup> and quantum-enhanced Dynex-QML anonymization models on Portuguese clinical notes (all evaluation runs reported in this paper were executed on the configuration shown).</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Category</td><td align="left" valign="bottom">Details</td></tr></thead><tbody><tr><td align="left" valign="top">CPU<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="top">Intel Xeon Platinum, 16 cores / 128 threads (258/2064 GB RAM)</td></tr><tr><td align="left" valign="top">GPU<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="top">1 &#x00D7; NVIDIA H100 SXM</td></tr><tr><td align="left" valign="top">GPU memory</td><td align="left" valign="top">80 GB (2507.0 GB/s, 478.1 GB/s)</td></tr><tr><td align="left" valign="top">GPU Performance</td><td align="left" valign="top">53.5 TFLOPS (Max CUDA: 12.6)</td></tr><tr><td align="left" valign="top">Motherboard or Series</td><td align="left" valign="top">The complete annotation guidelines are publicly Z13PN-D32 Series (PCIe 5.0, 16x, 52.7 GB/s)</td></tr><tr><td align="left" valign="top">Storage</td><td align="left" valign="top">Samsung MZQLB3T8HAJD-00007 (34,682 MB/s, 2827.3 GB)</td></tr><tr><td align="left" valign="top">Network</td><td align="left" valign="top">3233 Mbps upload/1298 Mbps download</td></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>LLM: large language model.</p></fn><fn id="table2fn2"><p><sup>b</sup>CPU: central processing unit. </p></fn><fn id="table2fn3"><p><sup>c</sup>GPU: Graphics Processing Unit.</p></fn></table-wrap-foot></table-wrap><boxed-text id="box1"><title> Representative pseudonymized Portuguese outpatient clinical note from the gold-standard corpus used to evaluate the anonymization models.</title><p>SPA - retorno</p><p>&#x003C;NAME&#x003E;, 88 anos natural &#x003C;LOCAL&#x003E; / procedente de &#x003C;LOCAL&#x003E; / vi&#x00FA;va / mora com filho / aposentada (costureira)</p><p>HD: achado incidental em Holter de BAV 2:1 e BAVT assintom&#x00E1;tica</p><p>Holter &#x003C;DATE&#x003E;: apenas BAV2M1 durante per&#x00ED;odo noturno com FC 30</p><p>AP:</p><list list-type="bullet"><list-item><p>HAS (dx: &#x003C;DATE&#x003E;)</p></list-item><list-item><p>DRC</p></list-item><list-item><p>IVP</p></list-item><list-item><p>POT Histerectomia (mioma?)</p></list-item><list-item><p>POT Colecistectomia</p></list-item><list-item><p>G1P1A0C0</p></list-item></list><p>MUC:</p><list list-type="bullet"><list-item><p>HCTZ 25 mg 1-0-0</p></list-item><list-item><p>Anlodipino 5 mg 1-0-0</p></list-item><list-item><p>Captopril 25 mg 1-0-0</p></list-item><list-item><p>Omeprazol 20 mg 1-0-0</p></list-item></list><p>AF:</p><list list-type="bullet"><list-item><p>m&#x00E3;e: j&#x00E1; teve MP</p></list-item></list><p>HMA:</p><list list-type="bullet"><list-item><p>achado incidental em Holter de BAV 2:1 e BAVT externo - sem data - sem tra&#x00E7;ado</p></list-item><list-item><p>atividade f&#x00ED;sica: n&#x00E3;o</p></list-item><list-item><p>dispneia para esfor&#x00E7;o: nega</p></list-item><list-item><p>s&#x00ED;ncope: nega</p></list-item><list-item><p>tontura: nega</p></list-item></list><p>EXAME:</p><list list-type="bullet"><list-item><p>neuro: taquil&#x00E1;lica</p></list-item><list-item><p>acv: PA 220 &#x00D7; 100/ FC 62 - regular com batimento precoce / B1 normo, sopro sist FMi 2+/6+ regurgitativo, B2 normo / sem congest&#x00E3;o</p></list-item></list><p>EXAMES:</p><list list-type="bullet"><list-item><p>Holter &#x003C;DATE&#x003E;: 76,407 batimentos (m&#x00ED;n/med/max - 30/58/132) / ect&#x00F3;picos ventriculars (1136 - isoladas 50, bigeminismo 62 - pares 47 - TVNS 5 (maior 04 batimentos) / ect&#x00F3;picos supra (970 - TANS maior 94 batimentos e 50s / BAV2M1 durante o sono / n&#x00E3;o relatou sintomas / epis&#x00F3;dios de ritmo de escape juncional</p></list-item></list><p>CD:</p><list list-type="bullet"><list-item><p>achados compat&#x00ED;veis com doen&#x00E7;a de condu&#x00E7;&#x00E3;o, por&#x00E9;m sem BAV avan&#x00E7;ado ou pausas - encaminho para Marca-Passo para seguimento</p></list-item></list><p>&#x003C;NAME&#x003E; r1 cardio + Dr &#x003C;NAME&#x003E;</p></boxed-text><boxed-text id="box2"><title> Anonymization prompt used for prompt-based anonymization of Portuguese clinical notes. The prompt instructed the models to identify and replace protected health information entities using predefined anonymization tags.</title><p>Anonymize the following medical text by replacing all Protected Health Information (PHI) with appropriate tags.</p><p>Use the following tags:</p><list list-type="bullet"><list-item><p>&#x003C;NAME&#x003E; for any person names (patients, doctors, etc)</p></list-item><list-item><p>&#x003C;ORGANIZATION&#x003E; for organization names (hospitals, clinics, etc)</p></list-item><list-item><p>&#x003C;LOCAL&#x003E; for location information</p></list-item><list-item><p>&#x003C;ID&#x003E; for any identification numbers</p></list-item><list-item><p>&#x003C;DATE&#x003E; for any dates</p></list-item></list><p>Return only the anonymized text, with no additional explanations or comments.</p><p>Here is the text to anonymize:</p></boxed-text></sec><sec id="s2-2-2"><title>Quantum-Enhanced Hybrid Anonymization Approach (Dynex-QML)</title><p>A quantum machine learning architecture was implemented to evaluate the efficacy of quantum-enhanced text processing for medical anonymization. This approach, designated Dynex-QML, used the same 2 LLMs as foundational components (Llama-3.1-8B-instruct and Llama-3.3-70B-instruct) but integrated neuromorphic quantum optimization algorithms to enhance the anonymization process. A note on terminology is in order before the technical description that follows. Throughout this paper, we use the term quantum-enhanced consistently in preference to quantum-inspired, since the Dynex platform (developed by Dynex Quantum Technologies AG) is a neuromorphic quantum computing platform that emulates the dynamics of quantum annealing through systems of ordinary differential equations integrated on Graphics Processing Unit (GPU) hardware, rather than a heuristic loosely inspired by quantum mechanics. The platform is also not a gate-model quantum computer with physical qubits in superposition; the qubits in our pipeline are algorithmic qubits, that is, mathematical representations of quantum states whose evolution is governed by memristive ordinary differential equation (ODE) dynamics solved within GPU video memory. We therefore make no claim of quantum speedup against classical optimization, and the gains reported in this work should be interpreted as gains from imposing a global QUBO-formulated optimization layer on top of standard LLM token selection, made tractable by the Dynex neuromorphic platform. The following subsections provide a detailed explanation of the quantum-enhanced methodology.</p></sec></sec><sec id="s2-3"><title>Fundamentals of Quantum Annealing and QUBO Formulation</title><p>Quantum annealing is an optimization technique that exploits quantum mechanical phenomena to find the global minimum of an objective function [<xref ref-type="bibr" rid="ref44">44</xref>]. The method is particularly effective for solving combinatorial optimization problems that can be formulated as finding the ground state (lowest energy configuration) of a quantum system.</p><p>The mathematical foundation of quantum annealing rests on the Ising model [<xref ref-type="bibr" rid="ref45">45</xref>,<xref ref-type="bibr" rid="ref46">46</xref>], which describes a system of interacting binary spins. For a system with <inline-formula><mml:math id="ieqn1"><mml:mi>N</mml:mi></mml:math></inline-formula> binary variables <inline-formula><mml:math id="ieqn2"><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mo>{</mml:mo><mml:mo>-</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula>, the energy function (Hamiltonian) is expressed as:</p><disp-formula id="E1"><label>(1)</label><mml:math id="eqn1"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>H</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>s</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow/></mml:munderover><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>s</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x003C;</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mrow/></mml:munderover><mml:msub><mml:mi>J</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>s</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>s</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn3"><mml:msub><mml:mrow><mml:mi>h</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the local field acting on spin <inline-formula><mml:math id="ieqn4"><mml:mi>i</mml:mi></mml:math></inline-formula>, and <inline-formula><mml:math id="ieqn5"><mml:msub><mml:mrow><mml:mi>J</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the interaction strength between spins <inline-formula><mml:math id="ieqn6"><mml:mi>i</mml:mi></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn7"><mml:mi>j</mml:mi></mml:math></inline-formula>. The goal is to find the spin configuration that minimizes this energy function.</p><p>For computational convenience, the Ising model can be reformulated as a QUBO problem by transforming the binary variables from <inline-formula><mml:math id="ieqn8"><mml:mo>{</mml:mo><mml:mo>-</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula> to <inline-formula><mml:math id="ieqn9"><mml:mo>{</mml:mo><mml:mn>0,1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula> domain using the substitution<inline-formula><mml:math id="ieqn10"><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>2</mml:mn><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula>. The resulting QUBO formulation is:</p><disp-formula id="E2"><label>(2)</label><mml:math id="eqn2"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow/></mml:munderover><mml:msub><mml:mi>Q</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>&#x003C;</mml:mo><mml:mi>j</mml:mi></mml:mrow><mml:mrow/></mml:munderover><mml:msub><mml:mi>Q</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn11"><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mo>{</mml:mo><mml:mn>0,1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn12"><mml:mi>Q</mml:mi></mml:math></inline-formula> are real-valued matrices encoding both the linear and quadratic terms of the objective function. This formulation is particularly suitable for representing constraint satisfaction problems and optimization tasks that arise in NLP [<xref ref-type="bibr" rid="ref35">35</xref>,<xref ref-type="bibr" rid="ref47">47</xref>].</p></sec><sec id="s2-4"><title>Transformer Architecture and Attention Mechanism</title><p>Modern LLMs are built on the transformer architecture, which relies fundamentally on the attention mechanism to process sequential data [<xref ref-type="bibr" rid="ref48">48</xref>]. The multihead attention mechanism computes weighted representations of input tokens by learning which parts of the input sequence are most relevant for predicting each output token.</p><p>For a given input sequence, the attention mechanism computes 3 matrices: Query (<inline-formula><mml:math id="ieqn13"><mml:mi>Q</mml:mi></mml:math></inline-formula>), Key (<inline-formula><mml:math id="ieqn14"><mml:mi>K</mml:mi></mml:math></inline-formula>), and Value (<inline-formula><mml:math id="ieqn15"><mml:mi>V</mml:mi></mml:math></inline-formula>), derived from the input embeddings through learned linear transformations. The attention weights are computed as:</p><disp-formula id="E3"><label>(3)</label><mml:math id="eqn3"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>A</mml:mi><mml:mi>t</mml:mi><mml:mi>t</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>Q</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>K</mml:mi><mml:mo>,</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>V</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>s</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mi>m</mml:mi><mml:mi>a</mml:mi><mml:mi>x</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mfrac><mml:mrow><mml:mi>Q</mml:mi><mml:msup><mml:mi>K</mml:mi><mml:mrow><mml:mi>t</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:msqrt><mml:msub><mml:mi>d</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:msqrt></mml:mfrac><mml:mo>)</mml:mo></mml:mrow><mml:mtext>&#x00A0;</mml:mtext><mml:mi>V</mml:mi></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn16"><mml:msub><mml:mrow><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the dimensionality of the key vectors. The softmax operation normalizes the attention scores to create a probability distribution over the input tokens.</p><p>In a typical transformer-based LLM, multiple layers of multihead attention are stacked, with each layer refining the representations. The final layer produces output logits that are passed through a softmax function to generate probability distributions over the vocabulary for each token position. In text generation tasks, including anonymization, these probabilities guide the selection of output tokens.</p></sec><sec id="s2-5"><title>Dynex Neuromorphic Quantum Computing Platform</title><p>The Dynex platform implements neuromorphic quantum computing through an architecture that emulates quantum behavior using memristor-based circuits [<xref ref-type="bibr" rid="ref37">37</xref>]. Unlike gate-based quantum computers that operate on physical qubits in quantum superposition, Dynex uses algorithmic qubits, that is, mathematical representations of quantum states that are simulated within GPU video random access memory (VRAM).</p><p>The core innovation of the Dynex platform lies in its ability to construct problem-specific quantum circuits composed of linear and quadratic quantum gates. These gates are not physical quantum components but rather mathematical models of memristive elements whose behavior is governed by systems of ODEs. The platform solves these ODEs through numerical integration to simulate the quantum annealing process.</p><p>For linear quantum gates representing individual qubits, the voltage dynamics are described by:</p><disp-formula id="E4"><label>(4)</label><mml:math id="eqn4"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>m</mml:mi></mml:mrow><mml:mrow/></mml:munderover><mml:mi>Q</mml:mi><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>W</mml:mi><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mi>p</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mstyle></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn17"><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the qubit voltage (representing the qubit state), <inline-formula><mml:math id="ieqn18"><mml:mi>Q</mml:mi><mml:msub><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the quantum gate state computed as <inline-formula><mml:math id="ieqn19"><mml:mi>Q</mml:mi><mml:msub><mml:mrow><mml:mi>G</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mo>(</mml:mo><mml:mn>1.0</mml:mn><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo><mml:mo>/</mml:mo><mml:mn>2.0</mml:mn></mml:math></inline-formula>, <inline-formula><mml:math id="ieqn20"><mml:msub><mml:mrow><mml:mi>W</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the quantum gate weight (encoding the QUBO coefficients), and <inline-formula><mml:math id="ieqn21"><mml:msub><mml:mrow><mml:mi>p</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> is the polarity indicator (<inline-formula><mml:math id="ieqn22"><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula> for <inline-formula><mml:math id="ieqn23"><mml:mi>i</mml:mi><mml:mo>&#x00A7;amp;gt;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>, <inline-formula><mml:math id="ieqn24"><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula> for <inline-formula><mml:math id="ieqn25"><mml:mi>i</mml:mi><mml:mo>&#x2264;</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>).</p><p>For quadratic quantum gates representing interactions between qubits, more complex dynamics govern the system evolution, incorporating both gradient terms and rigidity constraints that ensure the quantum circuit converges to a stable solution. The platform automatically optimizes the annealing parameters (<inline-formula><mml:math id="ieqn26"><mml:mi>&#x03B1;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B2;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B3;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B4;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03F5;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B5;</mml:mi><mml:mo>,</mml:mo><mml:mi>&#x03B6;</mml:mi></mml:math></inline-formula>) for each problem class to maximize solution quality.</p><p>The use of memristor-based simulation allows the Dynex platform to leverage the massive parallel processing capabilities of modern GPUs while maintaining the mathematical properties of quantum annealing. This approach provides computational efficiency that scales with the number of GPU cores available, enabling practical deployment of quantum-inspired algorithms on existing hardware infrastructure.</p></sec><sec id="s2-6"><title>Quantum-Classical Integration via Dynex-QML</title><sec id="s2-6-1"><title>Overview</title><p>The Dynex-QML architecture integrates the classical transformer-based LLM with quantum optimization through a designed interface that we term &#x201C;Quantum Bridges.&#x201D; These bridges enable integration between popular deep learning frameworks (PyTorch and TensorFlow) and the Dynex quantum computing platform.</p><p>The integration process consists of the following steps:</p></sec><sec id="s2-6-2"><title>Step 1: Extraction of Attention Layer</title><p>Rather than allowing the LLM to generate output tokens through standard sequential sampling, we intercept the model&#x2019;s computation at the final attention layer. Specifically, we extract the attention weight matrices before they are converted to output probabilities. For a sequence of length <inline-formula><mml:math id="ieqn27"><mml:mi>L</mml:mi></mml:math></inline-formula> with vocabulary size <inline-formula><mml:math id="ieqn28"><mml:mi>V</mml:mi></mml:math></inline-formula>, this produces a tensor of shape <inline-formula><mml:math id="ieqn29"><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mo>,</mml:mo><mml:mi>V</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> representing the unnormalized scores for each token at each position.</p></sec><sec id="s2-6-3"><title>Step 2: Reformulation as Global Constraint Satisfaction Problem</title><p>Traditional LLM text generation proceeds left-to-right, selecting each token sequentially based on previously generated tokens. This local decision-making can lead to suboptimal global choices, particularly in constrained generation tasks such as anonymization where maintaining semantic coherence while replacing entities is crucial.</p><p>We reformulate the anonymization task as a Global Constraint Satisfaction Problem (GCSP) where all token decisions across the entire output sequence are optimized simultaneously. The objective is to find a configuration of output tokens that maximizes overall coherence while satisfying the anonymization constraints (correct entity type replacement, preservation of nonsensitive text, and maintenance of grammatical structure).</p></sec><sec id="s2-6-4"><title>Step 3: Transformation to QUBO Formulation</title><p>The GCSP is encoded as a QUBO problem where binary variables represent token selection decisions. For each position <inline-formula><mml:math id="ieqn30"><mml:mi>i</mml:mi></mml:math></inline-formula> in the output sequence and each possible token <inline-formula><mml:math id="ieqn31"><mml:mi>t</mml:mi></mml:math></inline-formula> from the vocabulary, we introduce a binary variable <inline-formula><mml:math id="ieqn32"><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2208;</mml:mo><mml:mo>{</mml:mo><mml:mn>0,1</mml:mn><mml:mo>}</mml:mo></mml:math></inline-formula> indicating whether token <inline-formula><mml:math id="ieqn33"><mml:mi>t</mml:mi></mml:math></inline-formula> is selected at position <inline-formula><mml:math id="ieqn34"><mml:mi>i</mml:mi></mml:math></inline-formula>.</p><p>The QUBO objective function is constructed to incorporate multiple terms:</p><disp-formula id="E5"><label>(5)</label><mml:math id="eqn5"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>E</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>L</mml:mi><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:msub><mml:mi>&#x03BB;</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>h</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>where <inline-formula><mml:math id="ieqn35"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> encodes the negative log-probabilities from the LLM&#x2019;s attention layer, favoring tokens that the base model considers likely; <inline-formula><mml:math id="ieqn36"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> encodes hard constraints (eg, exactly one token selected per position and entity type consistency); <inline-formula><mml:math id="ieqn37"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>h</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>(</mml:mo><mml:mi>x</mml:mi><mml:mo>)</mml:mo></mml:math></inline-formula> encodes soft constraints promoting semantic coherence across the entire output; and <inline-formula><mml:math id="ieqn38"><mml:msub><mml:mrow><mml:mi>&#x03BB;</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn39"><mml:msub><mml:mrow><mml:mi>&#x03BB;</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> are hyperparameters balancing the different objectives. In the evaluation reported in this paper, the constraint-penalty weight was set to a value sufficiently large relative to the LLM energy scale to enforce hard one-token-per-position assignment and tag-schema consistency (specifically, lambda_1 was chosen as approximately 10 times the maximum absolute attention-derived coupling magnitude observed on the development split), while the coherence weight lambda_2 was selected on the development split of 500 notes via grid search over the set {0.1, 0.25, 0.5, 1.0, 2.0} to maximize macro<italic>&#x2013;F</italic><sub>1</sub>-score, with the value 0.5 ultimately retained for the test-set evaluation. The Dynex annealing scheduler parameters &#x03B1;, &#x03B2;, &#x03B3;, &#x03B4;, &#x03B5;, varepsilon, and &#x03B6; were left at the platform&#x2019;s automatic per-problem-class defaults, which the Dynex platform selects by analyzing the structure of the submitted QUBO matrix; we did not override these values.</p><p>The attention weights from the LLM directly influence the  Q matrix coefficients in the QUBO formulation. High attention weights between positions translate to stronger coupling terms  Q<sub>ij</sub> in the QUBO matrix, ensuring that the quantum optimization respects the semantic relationships learned by the LLM.</p></sec><sec id="s2-6-5"><title>Step 4: Quantum Annealing via Dynex Platform</title><p>The QUBO problem is submitted to the Dynex platform, which constructs the corresponding neuromorphic quantum circuit. The circuit is composed of linear quantum gates for each binary variable <inline-formula><mml:math id="ieqn40"><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, encoding the unary terms from <inline-formula><mml:math id="ieqn41"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>L</mml:mi><mml:mi>L</mml:mi><mml:mi>M</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula><mml:math id="ieqn42"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>t</mml:mi><mml:mi>r</mml:mi><mml:mi>a</mml:mi><mml:mi>i</mml:mi><mml:mi>n</mml:mi><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>; and quadratic quantum gates for pairs of variables, encoding the pairwise interaction terms from <inline-formula><mml:math id="ieqn43"><mml:msub><mml:mrow><mml:mi>E</mml:mi></mml:mrow><mml:mrow><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>h</mml:mi><mml:mi>e</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>c</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and the coupling derived from attention weights.</p><p>The platform then performs quantum annealing by numerically integrating the ODEs governing the memristive quantum gates. The annealing process gradually evolves the system from a superposition of all possible configurations toward the ground state (minimum energy configuration), which corresponds to the optimal anonymization.</p></sec><sec id="s2-6-6"><title>Step 5: Solution Extraction and Decoding</title><p>Upon convergence, the final state of the quantum circuit provides the binary values for all variables <inline-formula><mml:math id="ieqn44"><mml:msub><mml:mrow><mml:mi>x</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. These are decoded back to the output token sequence, producing the anonymized text. The quantum optimization ensures that this sequence simultaneously satisfies the anonymization requirements while maintaining maximal coherence with the original clinical meaning.</p><p>The Quantum Bridge implementation handles the technical details of converting PyTorch or TensorFlow tensors into QUBO format, submitting the problem to the Dynex API, and translating the quantum solution back into the framework&#x2019;s native tensor format. This abstraction allows researchers to incorporate quantum optimization into existing LLM pipelines with minimal code modifications.</p><p>Through this Dynex-QML formulation, the quantum machine learning model generates coherent anonymized outputs based on quantum-optimized attention states while maintaining semantic integrity throughout the anonymization process. The global optimization approach addresses the precision issues observed in standard prompt-based LLM anonymization by avoiding the local decision-making that can lead to over-identification of entities.</p></sec></sec><sec id="s2-7"><title>Evaluation Metrics</title><p>To assess the effectiveness and efficiency of the anonymization methods, we evaluated both quality-related and computational performance metrics on 500 of the 1000 clinical texts in the dataset, selected at random to constitute the test set.</p></sec><sec id="s2-8"><title>Quality Metrics</title><p>The quality of anonymization for each method was quantitatively determined based on three main criteria:</p><list list-type="order"><list-item><p>True positives (TP): Terms that should have been anonymized and were correctly anonymized with the appropriate entity tag.</p></list-item><list-item><p>False positives (FP): Items that should not have been anonymized but were erroneously marked for anonymization.</p></list-item><list-item><p>False negatives (FN): Terms that should have been anonymized but were missed by the algorithm.</p></list-item></list><p>These counts served as the basis for calculating the primary quality metrics for each entity type considered (&#x003C;NAME&#x003E;, &#x003C;DATE&#x003E;, &#x003C;LOCAL&#x003E;, &#x003C;ORGANIZATION&#x003E;, and &#x003C;ID&#x003E;):</p><disp-formula id="E6"><label>(6)</label><mml:math id="eqn6"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mfrac><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi><mml:mo>+</mml:mo><mml:mi>F</mml:mi><mml:mi>P</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><disp-formula id="E7"><label>(7)</label><mml:math id="eqn7"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>s</mml:mi><mml:mi>e</mml:mi><mml:mi>n</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi><mml:mi>i</mml:mi><mml:mi>v</mml:mi><mml:mi>i</mml:mi><mml:mi>t</mml:mi><mml:mi>y</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mfrac><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi></mml:mrow><mml:mrow><mml:mi>T</mml:mi><mml:mi>P</mml:mi><mml:mo>+</mml:mo><mml:mi>F</mml:mi><mml:mi>N</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><disp-formula id="E8"><label>(8)</label><mml:math id="eqn8"><mml:mstyle displaystyle="true" scriptlevel="0"><mml:mrow><mml:mstyle displaystyle="true" scriptlevel="0"><mml:msub><mml:mi>F</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mo>&#x2212;</mml:mo><mml:mi>s</mml:mi><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mo>=</mml:mo><mml:mn>2</mml:mn><mml:mtext>&#x00A0;</mml:mtext><mml:mo>&#x00D7;</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mfrac><mml:mrow><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mtext>&#x00A0;</mml:mtext><mml:mo>&#x00D7;</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi></mml:mrow><mml:mrow><mml:mi>P</mml:mi><mml:mi>r</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>i</mml:mi><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>o</mml:mi><mml:mi>n</mml:mi><mml:mo>+</mml:mo><mml:mtext>&#x00A0;</mml:mtext><mml:mi>R</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>a</mml:mi><mml:mi>l</mml:mi><mml:mi>l</mml:mi></mml:mrow></mml:mfrac></mml:mstyle></mml:mrow></mml:mstyle></mml:math></disp-formula><p>The macro<italic>&#x2013;F</italic><sub>1</sub>-score was calculated as the unweighted mean of <italic>F</italic><sub>1</sub>-scores across all entity types to provide an overall performance measure. To estimate statistical uncertainty, 95% CIs for precision, sensitivity (recall), and <italic>F</italic><sub>1</sub>-score were computed using bootstrap resampling based on aggregate multinomial TP, FP, and FN counts for each model and entity category. For each bootstrap iteration, TP, FP, and FN counts were resampled from the observed aggregate count distribution, and the corresponding metrics were recomputed. We used 10,000 bootstrap iterations. Macro-level CIs were calculated by averaging the bootstrapped entity-level metrics across the 5 entity categories.</p><p>Pairwise model comparisons were performed using empirical 2-sided bootstrap tests on the difference in <italic>F</italic><sub>1</sub>-score. Prespecified within-size comparisons were Dynex-QML (Llama 8B) versus stand-alone Llama 3.1 8B and Dynex-QML (Llama 70B) versus stand-alone Llama 3.3 70B. For each comparison, the empirical <italic>P</italic> value was calculated as twice the smaller tail probability of the bootstrap distribution of the <italic>F</italic><sub>1</sub>-score difference. Statistical significance was defined as <italic>P</italic>&#x003C;.05.</p><p>For computational performance, uncertainty in mean internal processing time (TI) and mean total elapsed time (TT) was estimated using note-level bootstrap resampling of the 500 observed per-note timing measurements for each model. Pairwise time comparisons used paired bootstrap resampling by clinical note ID, preserving the matched structure of the timing data across models. Empirical 2-sided <italic>P</italic> values were calculated from the bootstrap distribution of paired mean time differences, with statistical significance defined as <italic>P</italic>&#x003C;.05.</p></sec><sec id="s2-9"><title>Interannotator Agreement Analysis</title><p>Interannotator agreement was evaluated using the 3 independent annotation sets produced by the 3 annotators for the same 100 randomly selected clinical notes. Pairwise comparisons were performed for the 3 possible annotator pairs.</p><p>Agreement was assessed at the entity level for NAME, DATE, ID, LOCAL, and ORGANIZATION. An entity was considered concordant only when both annotators identified the same complete text span and assigned the same protected-entity category.</p><p>Entity-level <italic>F</italic><sub>1</sub>-scores were calculated separately for each protected-entity category and annotator pair. For each category, the mean pairwise <italic>F</italic><sub>1</sub>-score was calculated as the arithmetic mean of the 3 pairwise comparisons. The macro<italic>&#x2013;F</italic><sub>1</sub>-score for each annotator pair was calculated as the unweighted mean of the 5 entity-level <italic>F</italic><sub>1</sub>-scores. The overall mean pairwise macro<italic>&#x2013;F</italic><sub>1</sub>-score was calculated as the arithmetic mean of the 3 pairwise macro<italic>&#x2013;F</italic><sub>1</sub>-scores. Percentile-based 95% CIs were estimated using 1000 note-level bootstrap samples with replacement.</p></sec><sec id="s2-10"><title>Ethical Considerations</title><p>This study was conducted in accordance with the Institutional Review Board (CAPPesq &#x2013; IRB Number 68, Brazilian National Research Ethics System), under registration number CAAE 89528325.8.0000.0068. The clinical notes were retrospectively obtained from routine clinical care. Original notes were accessed only by authorized researchers within a secure institutional environment for the manual annotation procedure. Before model development and evaluation, all annotated identifiers were replaced with synthetic values to generate pseudonymized clinical texts. The ethics committee waived the requirement for individual informed consent because of the retrospective study design and the data-protection measures adopted. All data-handling procedures complied with the Brazilian General Data Protection Law, LGPD.</p></sec><sec id="s2-11"><title>Computational Performance Metrics</title><p>The Heart Institute research team executed all anonymization algorithms on remote high-performance servers to ensure reproducible computational servers provided by Dynex within a Sandbox environment. For each model evaluation, 2 complementary time metrics were recorded to characterize computation performance:</p><list list-type="bullet"><list-item><p>TI: The inference time reported directly by the execution platform reflecting the model&#x2019;s internal computation and excluding any network communication overhead.</p></list-item><list-item><p>TT: The complete time required to process each request, including both model inference and all network-related latency associated with transmitting data to and from the remote servers.</p></list-item></list><p>Both processing time metrics were recorded for each text and aggregated to provide per-text averages (mean and SD) and totals for the complete test set of 500 clinical notes. This dual-metric approach enables a clearer distinction between intrinsic model efficiency and external latency effects introduced by remote execution. TI reflects the intrinsic computational efficiency of the anonymization model itself, whereas TT better approximates the latency experienced in real-world deployment scenarios where remote execution and network communication are required.</p><p>The evaluation framework was assessed using the following standard classification metrics: TP, FP, FN, precision, recall (sensitivity), and <italic>F</italic><sub>1</sub>-score, along with processing time (TI and TT) to capture computational efficiency.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><sec id="s3-1"><title>Computing Environment</title><p><xref ref-type="table" rid="table2">Table 2</xref> summarizes the computing environment used for all model evaluations, including hardware specifications and software configurations that supported the execution of both LLM-based and quantum-enhanced models.</p></sec><sec id="s3-2"><title>Interannotator Agreement</title><p>The same 100 randomly selected clinical notes were independently reannotated by 3 annotators. Pairwise entity-level agreement results and the numbers of entities identified by each annotator are presented in <xref ref-type="table" rid="table3">Table 3</xref>. The overall mean pairwise macro<italic>&#x2013;F</italic><sub>1</sub>-score across the 5 protected-entity categories was 0.786 (SD 0.038; 95% CI 0.700&#x2010;0.869). Pairwise macro<italic>&#x2013;F</italic><sub>1</sub>-scores ranged from 0.744 to 0.816.</p><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Pairwise entity-level interannotator agreement among 3 annotators who independently reannotated the same 100 randomly selected Portuguese clinical notes<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup>.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Entity</td><td align="left" valign="bottom">Entity count (A1/A2/A3)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score (A1 vs A2)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score (A1 vs A3)</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score (A2 vs A3)</td><td align="left" valign="bottom">Mean pairwise <italic>F</italic><sub>1</sub>-score (SD)</td></tr></thead><tbody><tr><td align="left" valign="top">NAME</td><td align="left" valign="top">59/58/57</td><td align="left" valign="top">0.974</td><td align="left" valign="top">0.948</td><td align="left" valign="top">0.974</td><td align="left" valign="top">0.966 (0.015)</td></tr><tr><td align="left" valign="top">DATE</td><td align="left" valign="top">318/323/307</td><td align="left" valign="top">0.958</td><td align="left" valign="top">0.957</td><td align="left" valign="top">0.927</td><td align="left" valign="top">0.947 (0.018)</td></tr><tr><td align="left" valign="top">ID</td><td align="left" valign="top">6/5/1</td><td align="left" valign="top">0.545</td><td align="left" valign="top">0.286</td><td align="left" valign="top">0.333</td><td align="left" valign="top">0.388 (0.138)</td></tr><tr><td align="left" valign="top">LOCAL</td><td align="left" valign="top">30/36/28</td><td align="left" valign="top">0.727</td><td align="left" valign="top">0.931</td><td align="left" valign="top">0.688</td><td align="left" valign="top">0.782 (0.131)</td></tr><tr><td align="left" valign="top">ORGANIZATION</td><td align="left" valign="top">66/71/62</td><td align="left" valign="top">0.876</td><td align="left" valign="top">0.875</td><td align="left" valign="top">0.797</td><td align="left" valign="top">0.849 (0.045)</td></tr><tr><td align="left" valign="top">Macro<italic>&#x2013;F</italic><sub>1</sub>-score</td><td align="left" valign="top">&#x2014;<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup></td><td align="left" valign="top">0.816</td><td align="left" valign="top">0.799</td><td align="left" valign="top">0.744</td><td align="left" valign="top">0.786 (0.038)</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>A1, A2, and A3 represent anonymized annotator identifiers. Entity counts indicate the number of entities identified by each annotator. An entity was considered concordant only when the same complete text span and protected-entity category were assigned by both annotators. Mean pairwise <italic>F</italic><sub>1</sub>-score represents the arithmetic mean of the 3 pairwise comparisons. Macro<italic>&#x2013;F</italic><sub>1</sub>-score represents the unweighted mean across NAME, DATE, ID, LOCAL, and ORGANIZATION.</p></fn><fn id="table3fn2"><p><sup>b</sup>The entity count is not applicable to the macro<italic>&#x2013;F</italic><sub>&#x2081;</sub>-score row.</p></fn></table-wrap-foot></table-wrap><p>Agreement was highest for NAME, with a mean pairwise <italic>F</italic><sub>1</sub>-score of 0.966 (SD 0.015; 95% CI 0.929&#x2010;0.990), followed by DATE at 0.947 (SD 0.018; 95% CI 0.928&#x2010;0.963), ORGANIZATION at 0.849 (SD 0.045; 95% CI 0.793&#x2010;0.897), and LOCAL at 0.782 (SD 0.131; 95% CI 0.649&#x2010;0.895). ID showed the lowest mean pairwise <italic>F</italic><sub>1</sub>-score at 0.388 (SD 0.138; 95% CI 0.000&#x2010;0.778).</p></sec><sec id="s3-3"><title>Anonymization Quality</title><p>The full set of anonymization quality metrics is presented in <xref ref-type="table" rid="table4">Table 4</xref>. Performance varied substantially across entity categories and model architectures. Dynex-QML (Llama 70B) achieved the highest macro<italic>&#x2013;F</italic><sub>1</sub>-score (0.855, 95% CI 0.823&#x2010;0.880), followed by Dynex-QML (Llama 8B; 0.733, 95% CI 0.709&#x2010;0.756), stand-alone Llama 3.3 70B (0.726, 95% CI 0.704&#x2010;0.747), and stand-alone Llama 3.1 8B (0.602, 95% CI 0.588&#x2010;0.615). At the macro level, Dynex-QML (Llama 70B) improved <italic>F</italic><sub>1</sub>-score by 0.128 compared with stand-alone Llama 3.3 70B (95% CI 0.091&#x2010;0.163; empirical 2-sided bootstrap <italic>P</italic>&#x003C;.001). Dynex-QML (Llama 8B) improved macro<italic>&#x2013;F</italic><sub>1</sub>-score by 0.131 compared with stand-alone Llama 3.1 8B (95% CI 0.104&#x2010;0.158; <italic>P</italic>&#x003C;.001).</p><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Entity-level anonymization performance of 4 evaluated models on 500 held-out Portuguese outpatient clinical notes from a tertiary-care academic hospital in Brazil<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup>.</p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Entity and model</td><td align="left" valign="bottom">TP<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup></td><td align="left" valign="bottom">FP<sup><xref ref-type="table-fn" rid="table4fn3">c</xref></sup></td><td align="left" valign="bottom">FN<sup><xref ref-type="table-fn" rid="table4fn4">d</xref></sup></td><td align="left" valign="bottom">Precision</td><td align="left" valign="bottom">Sensitivity</td><td align="left" valign="bottom"><italic>F</italic><sub>1</sub>-score</td><td align="left" valign="bottom">Count</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="8">NAME</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (70B)</td><td align="left" valign="top">329</td><td align="left" valign="top">10</td><td align="left" valign="top">17</td><td align="left" valign="top">0.971</td><td align="left" valign="top">0.951</td><td align="left" valign="top">0.961</td><td align="left" valign="top">346</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (8B)</td><td align="left" valign="top">335</td><td align="left" valign="top">207</td><td align="left" valign="top">11</td><td align="left" valign="top">0.618</td><td align="left" valign="top">0.968</td><td align="left" valign="top">0.755</td><td align="left" valign="top">346</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.3 70B</td><td align="left" valign="top">335</td><td align="left" valign="top">202</td><td align="left" valign="top">11</td><td align="left" valign="top">0.624</td><td align="left" valign="top">0.968</td><td align="left" valign="top">0.759</td><td align="left" valign="top">346</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.1 8B</td><td align="left" valign="top">268</td><td align="left" valign="top">208</td><td align="left" valign="top">78</td><td align="left" valign="top">0.563</td><td align="left" valign="top">0.775</td><td align="left" valign="top">0.652</td><td align="left" valign="top">346</td></tr><tr><td align="left" valign="top" colspan="8">DATE</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (70B)</td><td align="left" valign="top">1624</td><td align="left" valign="top">68</td><td align="left" valign="top">16</td><td align="left" valign="top">0.960</td><td align="left" valign="top">0.990</td><td align="left" valign="top">0.975</td><td align="left" valign="top">1640</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (8B)</td><td align="left" valign="top">1604</td><td align="left" valign="top">132</td><td align="left" valign="top">36</td><td align="left" valign="top">0.924</td><td align="left" valign="top">0.978</td><td align="left" valign="top">0.950</td><td align="left" valign="top">1640</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.3 70B</td><td align="left" valign="top">1606</td><td align="left" valign="top">141</td><td align="left" valign="top">34</td><td align="left" valign="top">0.919</td><td align="left" valign="top">0.979</td><td align="left" valign="top">0.948</td><td align="left" valign="top">1640</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.1 8B</td><td align="left" valign="top">1555</td><td align="left" valign="top">450</td><td align="left" valign="top">85</td><td align="left" valign="top">0.776</td><td align="left" valign="top">0.948</td><td align="left" valign="top">0.853</td><td align="left" valign="top">1640</td></tr><tr><td align="left" valign="top" colspan="8">ID</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (70B)</td><td align="left" valign="top">20</td><td align="left" valign="top">32</td><td align="left" valign="top">1</td><td align="left" valign="top">0.385</td><td align="left" valign="top">0.952</td><td align="left" valign="top">0.548</td><td align="left" valign="top">21</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (8B)</td><td align="left" valign="top">17</td><td align="left" valign="top">81</td><td align="left" valign="top">4</td><td align="left" valign="top">0.173</td><td align="left" valign="top">0.810</td><td align="left" valign="top">0.286</td><td align="left" valign="top">21</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.3 70B</td><td align="left" valign="top">18</td><td align="left" valign="top">107</td><td align="left" valign="top">3</td><td align="left" valign="top">0.144</td><td align="left" valign="top">0.857</td><td align="left" valign="top">0.247</td><td align="left" valign="top">21</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.1 8B</td><td align="left" valign="top">19</td><td align="left" valign="top">645</td><td align="left" valign="top">2</td><td align="left" valign="top">0.029</td><td align="left" valign="top">0.905</td><td align="left" valign="top">0.055</td><td align="left" valign="top">21</td></tr><tr><td align="left" valign="top" colspan="8">LOCAL</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (70B)</td><td align="left" valign="top">273</td><td align="left" valign="top">24</td><td align="left" valign="top">5</td><td align="left" valign="top">0.919</td><td align="left" valign="top">0.982</td><td align="left" valign="top">0.950</td><td align="left" valign="top">278</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (8B)</td><td align="left" valign="top">267</td><td align="left" valign="top">32</td><td align="left" valign="top">11</td><td align="left" valign="top">0.893</td><td align="left" valign="top">0.960</td><td align="left" valign="top">0.925</td><td align="left" valign="top">278</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.3 70B</td><td align="left" valign="top">267</td><td align="left" valign="top">39</td><td align="left" valign="top">11</td><td align="left" valign="top">0.873</td><td align="left" valign="top">0.960</td><td align="left" valign="top">0.914</td><td align="left" valign="top">278</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.1 8B</td><td align="left" valign="top">262</td><td align="left" valign="top">189</td><td align="left" valign="top">16</td><td align="left" valign="top">0.581</td><td align="left" valign="top">0.942</td><td align="left" valign="top">0.719</td><td align="left" valign="top">278</td></tr><tr><td align="left" valign="top" colspan="8">ORGANIZATION</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (70B)</td><td align="left" valign="top">335</td><td align="left" valign="top">122</td><td align="left" valign="top">7</td><td align="left" valign="top">0.733</td><td align="left" valign="top">0.980</td><td align="left" valign="top">0.839</td><td align="left" valign="top">342</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Dynex-QML (8B)</td><td align="left" valign="top">334</td><td align="left" valign="top">215</td><td align="left" valign="top">8</td><td align="left" valign="top">0.608</td><td align="left" valign="top">0.977</td><td align="left" valign="top">0.750</td><td align="left" valign="top">342</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.3 70B</td><td align="left" valign="top">335</td><td align="left" valign="top">203</td><td align="left" valign="top">7</td><td align="left" valign="top">0.623</td><td align="left" valign="top">0.980</td><td align="left" valign="top">0.761</td><td align="left" valign="top">342</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Llama 3.1 8B</td><td align="left" valign="top">286</td><td align="left" valign="top">156</td><td align="left" valign="top">56</td><td align="left" valign="top">0.647</td><td align="left" valign="top">0.836</td><td align="left" valign="top">0.730</td><td align="left" valign="top">342</td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>Results are reported separately for NAME, DATE, ID, LOCAL, and ORGANIZATION entities using true positives (TP), false positives (FP), false negatives (FN), precision, sensitivity, and <italic>F</italic><sub>1</sub>-score. Values are point estimates. The bootstrap 95% CIs and statistical comparisons for <italic>F</italic><sub>1</sub>-score are shown in <xref ref-type="fig" rid="figure1">Figure 1</xref>.</p></fn><fn id="table4fn2"><p><sup>b</sup>TP: true positive.</p></fn><fn id="table4fn3"><p><sup>c</sup>FP: false positive.</p></fn><fn id="table4fn4"><p><sup>d</sup>FN: false negative.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Comparison of entity-level <italic>F</italic><sub>1</sub>-scores across 4 anonymization models, Llama 3.1 8B, Llama 3.3 70B, Dynex-QML 8B, and Dynex-QML 70B, evaluated on 500 held-out Portuguese outpatient clinical notes from a tertiary-care academic hospital in Brazil. The evaluated protected entity categories included DATE, ID, LOCAL, NAME, and ORGANIZATION. Error bars indicate aggregate multinomial bootstrap 95% CIs. Brackets indicate pairwise comparisons. All starred comparisons had <italic>P</italic>&#x003C;.001, except Llama 3.3 70B vs Dynex-QML 70B for LOCAL (<italic>P</italic>=.03).</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e91513_fig01.png"/></fig><p><xref ref-type="fig" rid="figure1">Figure 1</xref> displays the entity-level <italic>F</italic><sub>1</sub>-score comparison across all protected entity categories for the 4 evaluated models. To further characterize model behavior beyond <italic>F</italic><sub>1</sub>-score, <xref ref-type="fig" rid="figure2">Figure 2</xref> shows the macro-sensitivity and macro-precision trade-off across architectures. Dynex-QML (Llama 70B) achieved the most favorable overall balance, combining higher macro-precision with preserved macro-sensitivity compared with the other evaluated models.</p><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Macro-sensitivity (recall) and macro-precision trade-off of 4 anonymization models evaluated on 500 held-out Portuguese outpatient clinical notes from a tertiary-care academic hospital in Brazil. Each point represents one anonymization model (Llama 3.1 8B, Llama 3.3 70B, Dynex-QML 8B, and Dynex-QML 70B), with horizontal and vertical error bars indicating aggregate bootstrap 95% CIs for macro-sensitivity and macro-precision, respectively. Dashed diagonal lines represent iso<italic>&#x2013;F</italic><sub>1</sub>-score contours. Points located toward the upper-right region indicate a more favorable balance between privacy protection, represented by sensitivity, and preservation of clinical utility, represented by precision.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e91513_fig02.png"/></fig><p><xref ref-type="fig" rid="figure3">Figure 3</xref> provides an entity-level error analysis by separating FP and FN counts across protected entity categories. In the context of clinical text anonymization, FNs are particularly important because they represent missed protected health information and therefore potential residual privacy risk, whereas FPs mainly represent overanonymization and potential loss of clinical information utility. Across entity categories, Dynex-QML (Llama 70B) reduced FP counts substantially compared with stand-alone Llama 3.3 70B, especially for NAME, ID, LOCAL, and ORGANIZATION entities. Importantly, this reduction in overanonymization was not accompanied by an increase in FN. The model maintained similarly low FN counts for DATE, NAME, LOCAL, and ORGANIZATION entities, and only one FN for ID entities. These results suggest that the main advantage of Dynex-QML (Llama 70B) was not improved precision alone, but a more favorable privacy-utility trade-off, combining high sensitivity with fewer unnecessary anonymization errors.</p><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Entity-level false-positive and false-negative counts of 4 anonymization models evaluated on 500 held-out Portuguese outpatient clinical notes from a tertiary-care academic hospital in Brazil. Results are shown separately for DATE, ID, LOCAL, NAME, and ORGANIZATION entities. False positives represent overanonymization and potential loss of clinical information utility, whereas false negatives represent missed protected health information entities and potential privacy risk.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e91513_fig03.png"/></fig></sec><sec id="s3-4"><title>Computational Performance</title><sec id="s3-4-1"><title>Overview</title><p>Computational performance is summarized in <xref ref-type="table" rid="table5">Table 5</xref>. For TT, stand-alone Llama 3.1 8B had the shortest mean processing time (5.22, SD 2.12; 95% CI 5.04&#x2010;5.41 seconds per note), followed by Dynex-QML (Llama 70B; 7.97, SD 2.87; 95% CI 7.72&#x2010;8.21 seconds per note), stand-alone Llama 3.3 70B (8.52, SD 3.32; 95% CI 8.23&#x2010;8.81 seconds per note), and Dynex-QML (Llama 8B; 8.59, SD 3.62; 95% CI 8.27&#x2010;8.90 seconds per note). In paired note-level bootstrap comparisons, Dynex-QML (Llama 70B) was significantly faster than stand-alone Llama 3.3 70B for TT, with a mean difference of &#x2212;0.55 (SD 2.36; 95% CI &#x2212;0.75 to &#x2212;0.34 seconds per note; <italic>P</italic>&#x003C;.001). The same pattern was observed for TI, with Dynex-QML (Llama 70B) being faster than stand-alone Llama 3.3 70B by &#x2212;0.32 (SD 2.28; 95% CI &#x2212;0.52 to &#x2212;0.12 seconds per note; <italic>P</italic>=.002).</p><p>From an operational perspective, TT may represent a more clinically relevant metric because it captures effective end-to-end latency, including network communication and remote execution overhead commonly present in distributed health care infrastructures.</p><p>The computational trade-off differed for the 8B models. Dynex-QML (Llama 8B) was significantly slower than stand-alone Llama 3.1 8B for TT (+3.37, SD 2.77; 95% CI 3.13&#x2010;3.61 seconds per note; <italic>P</italic>&#x003C;.001) and TI (+3.52, SD 2.63; 95% CI 3.29&#x2010;3.75 seconds per note; <italic>P</italic>&#x003C;.001). Dynex-QML (Llama 70B) was also faster than Dynex-QML (Llama 8B) for TT (&#x2212;0.62, SD 2.49; 95% CI &#x2212;0.84 to &#x2212;0.40 seconds per note; <italic>P</italic>&#x003C;.001). These results indicate that the time-efficiency benefit was specific to the 70B Dynex-QML configuration and should not be generalized to all hybrid QUBO-optimized configurations.</p><p><xref ref-type="fig" rid="figure4">Figure 4</xref> provides an overall assessment of the efficiency-quality trade-off across models using a scatter plot of macro<italic>&#x2013;F</italic><sub>1</sub>-score versus mean total elapsed time per note.</p><table-wrap id="t5" position="float"><label>Table 5.</label><caption><p>Computational performance of stand-alone LLM<sup><xref ref-type="table-fn" rid="table5fn1">a</xref></sup> and quantum-enhanced Dynex-QML anonymization models evaluated on 500 held-out Portuguese outpatient clinical notes<sup><xref ref-type="table-fn" rid="table5fn2">b</xref></sup>.</p></caption><table id="table5" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">TI<sup><xref ref-type="table-fn" rid="table5fn3">c</xref></sup> (seconds), mean (SD; 95% CI)</td><td align="left" valign="bottom">TT<sup><xref ref-type="table-fn" rid="table5fn4">d</xref></sup> (seconds), mean (SD; 95% CI)</td><td align="left" valign="bottom">Total time (seconds; 500 texts)</td></tr></thead><tbody><tr><td align="left" valign="top">Llama 3.1 8B</td><td align="left" valign="top">3.92 (2.01; 3.75&#x2010;4.11)</td><td align="left" valign="top">5.22 (2.12; 5.04&#x2010;5.41)</td><td align="left" valign="top">2610.25</td></tr><tr><td align="left" valign="top">Llama 3.3 70B</td><td align="left" valign="top">7.22 (3.29; 6.94&#x2010;7.50)</td><td align="left" valign="top">8.52 (3.32; 8.23&#x2010;8.81)</td><td align="left" valign="top">4257.86</td></tr><tr><td align="left" valign="top">Dynex-QML (8B)</td><td align="left" valign="top">7.44 (3.58; 7.13&#x2010;7.75)</td><td align="left" valign="top">8.59 (3.62; 8.27&#x2010;8.90)</td><td align="left" valign="top">4293.27</td></tr><tr><td align="left" valign="top">Dynex-QML (70B)</td><td align="left" valign="top">6.90 (2.86; 6.65&#x2010;7.15)</td><td align="left" valign="top">7.97 (2.87; 7.72&#x2010;8.21)</td><td align="left" valign="top">3983.50</td></tr></tbody></table><table-wrap-foot><fn id="table5fn1"><p><sup>a</sup>LLM: large language model.</p></fn><fn id="table5fn2"><p><sup>b</sup>Values are reported as mean seconds per note, with note-level bootstrap 95% CIs. Total time indicates the observed total elapsed TT for the 500-note test set.</p></fn><fn id="table5fn3"><p><sup>c</sup>TI: internal processing time excluding network communication overhead.</p></fn><fn id="table5fn4"><p><sup>d</sup>TT: total elapsed time, including remote execution, and network latency. Lower TT values may better reflect practical deployment performance in distributed health care infrastructures.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Efficiency-quality trade-off of the 4 anonymization models evaluated in this study: Llama 3.1 8B, Llama 3.3 70B, Dynex-QML 8B, and Dynex-QML 70B. The evaluation used 500 held-out Portuguese outpatient clinical notes from a single tertiary-care institution. The <italic>x</italic>-axis shows mean total elapsed time per note (TT, seconds), and the <italic>y</italic>-axis shows macro<italic>&#x2013;F</italic><sub>1</sub>-score across the 5 protected entity categories. Vertical error bars show bootstrap 95% CIs for macro<italic>&#x2013;F</italic><sub>1</sub>-score.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e91513_fig04.png"/></fig></sec><sec id="s3-4-2"><title>Representative Error Analysis</title><p>To support qualitative interpretation of the aggregate error counts reported in <xref ref-type="table" rid="table4">Table 4</xref>, <xref ref-type="fig" rid="figure3">Figure 3</xref>, and <xref ref-type="table" rid="table6">Table 6</xref> presents representative pseudonymized error examples from the held-out test set. These examples are illustrative and are not intended to quantify error frequency. They show that errors occurred through different mechanisms, including overanonymization of non-PHI text, misclassification of entity categories, and missed protected entities.</p><table-wrap id="t6" position="float"><label>Table 6.</label><caption><p>Representative pseudonymized error examples from the held-out test set of 500 Portuguese outpatient clinical notes<sup><xref ref-type="table-fn" rid="table6fn1">a</xref></sup>.</p></caption><table id="table6" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Model</td><td align="left" valign="bottom">Error type</td><td align="left" valign="bottom">Example</td><td align="left" valign="bottom">Gold standard</td><td align="left" valign="bottom">Model output</td><td align="left" valign="bottom">Comments</td></tr></thead><tbody><tr><td align="left" valign="top">Llama 3.3 70B</td><td align="left" valign="top">False positive, NAME</td><td align="left" valign="top">&#x201C;Profiss&#x00E3;o: gerente de oficina. Religi&#x00E3;o: protestante. Escolaridade: segundo grau completo...&#x201D;</td><td align="left" valign="top">Sociodemographic terms should remain unchanged.</td><td align="left" valign="top">&#x201C;Profiss&#x00E3;o: &#x003C;NAME&#x003E;. Religi&#x00E3;o: &#x003C;NAME&#x003E;. Escolaridade: &#x003C;NAME&#x003E;.&#x201D;</td><td align="left" valign="top">The stand-alone model overanonymized non-PHI<sup><xref ref-type="table-fn" rid="table6fn2">b</xref></sup> sociodemographic information as person names.</td></tr><tr><td align="left" valign="top">Llama 3.3 70B</td><td align="left" valign="top">False positive, DATE</td><td align="left" valign="top">&#x201C;Queima&#x00E7;&#x00E3;o no peito h&#x00E1; 10 anos... queima&#x00E7;&#x00E3;o no t&#x00F3;rax h&#x00E1; 10 anos.&#x201D;</td><td align="left" valign="top">Clinical durations should remain unchanged.</td><td align="left" valign="top">&#x201C;Queima&#x00E7;&#x00E3;o no peito h&#x00E1; &#x003C;DATE&#x003E;... queima&#x00E7;&#x00E3;o no t&#x00F3;rax h&#x00E1; &#x003C;DATE&#x003E;.&#x201D;</td><td align="left" valign="top">The stand-alone model incorrectly treated symptom duration as a calendar date.</td></tr><tr><td align="left" valign="top">Llama 3.3 70B</td><td align="left" valign="top">False negative, NAME</td><td align="left" valign="top">&#x201C;ID: S&#x00E1;lvio, 15...&#x201D;</td><td align="left" valign="top">&#x201C;ID: &#x003C;NAME&#x003E;, 15...&#x201D;</td><td align="left" valign="top">&#x201C;ID: &#x003C;ID&#x003E;, 15...&#x201D;</td><td align="left" valign="top">The patient name was detected as sensitive text but assigned to the wrong entity class.</td></tr><tr><td align="left" valign="top">Llama 3.3 70B</td><td align="left" valign="top">False negative, ID</td><td align="left" valign="top">&#x201C;1&#x00B0; atendimento - 30-09-1987 Lubomira 34636-SP.&#x201D;</td><td align="left" valign="top">&#x201C;1&#x00B0; atendimento - &#x003C;DATE&#x003E; &#x003C;NAME&#x003E; &#x003C;ID&#x003E;.&#x201D;</td><td align="left" valign="top">&#x201C;1&#x00B0; atendimento - &#x003C;DATE&#x003E; &#x003C;NAME&#x003E; &#x003C;LOCAL&#x003E;.&#x201D;</td><td align="left" valign="top">The identifier was detected but misclassified as a location, producing an ID false negative.</td></tr><tr><td align="left" valign="top">Dynex-QML 70B</td><td align="left" valign="top">False positive, LOCAL</td><td align="left" valign="top">&#x201C;...procurou servi&#x00E7;o m&#x00E9;dico no S&#x00E3;o Jos&#x00E9; de Piranhas...&#x201D;</td><td align="left" valign="top">&#x201C;...servi&#x00E7;o m&#x00E9;dico no &#x003C;LOCAL&#x003E;...&#x201D;</td><td align="left" valign="top">&#x201C;...servi&#x00E7;o m&#x00E9;dico no &#x003C;ORGANIZATION&#x003E;...&#x201D;</td><td align="left" valign="top">Dynex-QML 70B misclassified a municipality as an organization.</td></tr><tr><td align="left" valign="top">Dynex-QML 70B</td><td align="left" valign="top">False positive, ORGANIZATION</td><td align="left" valign="top">&#x201C;pedido de consulta da PNEUMOLOGIA - A2MP - AMBULATORIO...&#x201D;</td><td align="left" valign="top">This service-header phrase was not tagged in the gold standard.</td><td align="left" valign="top">&#x201C;pedido de consulta da &#x003C;ORGANIZATION&#x003E; - &#x003C;ORGANIZATION&#x003E; - &#x003C;ORGANIZATION&#x003E;...&#x201D;</td><td align="left" valign="top">Dynex-QML 70B produced repeated organization tags in a header that was not annotated as PHI.</td></tr><tr><td align="left" valign="top">Dynex-QML 70B</td><td align="left" valign="top">False negative, NAME</td><td align="left" valign="top">&#x201C;Gladyr, 96 anos, natural e procedente de Ibitiara...&#x201D;</td><td align="left" valign="top">&#x201C;&#x003C;NAME&#x003E;, 96 anos, natural e procedente de &#x003C;LOCAL&#x003E;...&#x201D;</td><td align="left" valign="top">&#x201C;Gladyr, 96 anos, natural e procedente de &#x003C;LOCAL&#x003E;...&#x201D;</td><td align="left" valign="top">Dynex-QML 70B left the patient name visible.</td></tr><tr><td align="left" valign="top">Dynex-QML 70B</td><td align="left" valign="top">False negative, ORGANIZATION</td><td align="left" valign="top">&#x201C;Encaminhado do PS valore day hospital.&#x201D;</td><td align="left" valign="top">&#x201C;Encaminhado do PS &#x003C;ORGANIZATION&#x003E;.&#x201D;</td><td align="left" valign="top">&#x201C;Encaminhado do PS valore day hospital.&#x201D;</td><td align="left" valign="top">Dynex-QML 70B missed the referring hospital name.</td></tr></tbody></table><table-wrap-foot><fn id="table6fn1"><p><sup>a</sup>The table compares selected gold-standard annotations with model outputs for stand-alone Llama 3.3 70B and Dynex-QML 70B. Error types were assigned by the authors after manual review. The examples are intended to illustrate qualitative error modes, not to quantify their frequency.</p></fn><fn id="table6fn2"><p><sup>b</sup>PHI:  Protected Health Information.</p></fn></table-wrap-foot></table-wrap><p>For stand-alone Llama 3.3 70B, common qualitative errors included FP anonymization of sociodemographic or clinical expressions, such as occupation, religion, schooling, and symptom duration, as well as wrong entity assignment when sensitive spans were detected but mapped to an incorrect category. For Dynex-QML 70B, the selected examples show residual errors despite the overall reduction in FP, including organization-location ambiguity, repeated organization tagging in service-header text, missed patient names, and missed organization mentions.</p><p>These examples are consistent with the quantitative results in <xref ref-type="table" rid="table4">Table 4</xref> and <xref ref-type="fig" rid="figure3">Figure 3</xref>: Dynex-QML 70B reduced several overanonymization patterns compared with stand-alone Llama 3.3 70B, but it did not eliminate all clinically relevant errors. Therefore, the qualitative analysis supports the interpretation that the main benefit of Dynex-QML 70B was an improved privacy-utility trade-off rather than error-free anonymization.</p></sec></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Principal Findings</title><p>This study presents a comparative assessment of anonymization performance using both conventional LLMs and a quantum-enhanced hybrid architecture (Dynex-QML). Based on the primary macro<italic>&#x2013;F</italic><sub>1</sub>-score metric, Dynex-QML-70B achieved the best overall performance (0.855, 95% CI 0.823&#x2010;0.880), followed by Dynex-QML-8B, Llama-3.3-70B, and Llama-3.1-8B. The observed macro<italic>&#x2013;F</italic><sub>1</sub>-score improvement of Dynex-QML (Llama 70B) over stand-alone Llama-3.3-70B was supported by bootstrap analysis (mean difference +0.128, 95% CI 0.091&#x2010;0.163; <italic>P</italic>&#x003C;.001). Entity-level analyses showed statistically significant improvements for most categories, with the strongest gains for ID and NAME entities. Computationally, Dynex-QML (Llama 70B) also showed a statistically significant reduction in total elapsed time compared with stand-alone Llama 3.3 70B (mean paired difference &#x2212;0.55, SD 2.36; 95% CI &#x2212;0.75 to &#x2212;0.34 seconds per note; <italic>P</italic>&#x003C;.001). These findings demonstrate that quantum-enhanced optimization provides substantial improvements in anonymization quality, particularly reducing FP rates and improving entity-level predictions.</p><p>One of the important observations is the precision improvement achieved by quantum-enhanced models. For the NAME entity, Dynex-QML-70B achieved a precision of 0.971 compared to 0.624 for the stand-alone Llama-70B, driven primarily by reduction in FP (10 vs 202). Similar trends were observed for DATE (precision 0.960 vs 0.919) and LOCAL (precision 0.919 vs 0.873). These improvements suggest that the QUBO-based optimization layer acts as an effective corrective mechanism constraining the model&#x2019;s tendency to overidentify borderline entities, a known limitation of prompt-driven LLM anonymization approaches [<xref ref-type="bibr" rid="ref28">28</xref>]. By imposing structured optimization criteria, the quantum-enhanced framework appears to reduce overgeneralization while preserving high recall.</p><p>A key consideration in clinical anonymization is that sensitivity and precision do not have equivalent practical implications. FN correspond to missed protected health information and therefore represent the primary privacy and regulatory risk. In contrast, FP correspond to overanonymization, which may reduce the clinical interpretability and downstream research utility of the resulting text. For this reason, the performance gain observed with Dynex-QML (Llama 70B) should not be interpreted as a simple precision improvement. Rather, the relevant finding is that the model achieved higher precision while preserving high sensitivity across most entity categories. This pattern is illustrated in <xref ref-type="fig" rid="figure2">Figure 2</xref>, where Dynex-QML (Llama 70B) occupies the most favorable region of the macro-sensitivity and macro-precision space, and in <xref ref-type="fig" rid="figure3">Figure 3</xref>, where the reduction in FP is not accompanied by a meaningful increase in FN.</p><p>Relative performance across entity categories also highlights persistent challenges in clinical text anonymization. All models achieved their strongest results on DATE entities, which is expected given their relatively standardized formats and limited contextual ambiguity in clinical narratives. In contrast, the ID category remained the most difficult to anonymize reliably; even the highest-performing model (Dynex-QML-70B) reached only a 0.548 <italic>F</italic><sub>1</sub>-score. This limitation likely reflects the substantial variability in identifier formats across institutions, specialties, and documentation contexts, as well as the inherent difficulty in distinguishing clinically relevant numerical values from patient-specific identifiers.</p><p>The interannotator agreement analysis provides important context for interpreting the model results. The overall mean pairwise entity-level macro<italic>&#x2013;F</italic><sub>1</sub>-score of 0.786 (SD 0.038) indicates generally consistent application of the annotation guidelines, although agreement varied across entity categories. This variability suggests that some model errors may reflect both model limitations and uncertainty in the reference annotations. However, all models were evaluated against the same operational gold standard, and the improvements achieved by Dynex-QML 70B were observed across multiple entity categories. The lower and less precise agreement observed for ID should be interpreted cautiously because this category was represented by very few entities in the reannotated subset.</p></sec><sec id="s4-2"><title>Comparison With Prior Work</title><p>Our findings align with extended recent work on LLM-based deidentification. Previous work [<xref ref-type="bibr" rid="ref28">28</xref>] reported that Llama-3-70B achieved over 0.992 sensitivity on German clinical letters, consistent with our observation of high sensitivity rates (0.951&#x2010;0.990) for the larger models. However, their work did not address FP problems that we found to be substantially mitigated by quantum-enhanced optimization.</p><p>The performance levels achieved in our study are somewhat lower than those reported on the English i2b2 benchmarks, where top systems achieve a micro-averaged <italic>F</italic><sub>1</sub>-score of 0.940 [<xref ref-type="bibr" rid="ref39">39</xref>]. This difference reflects several factors: the Portuguese language context introduces different linguistic challenges; our entity definitions may be broader than i2b2 categories; and prompt-based approaches generally show lower performance than fine-tuned models [<xref ref-type="bibr" rid="ref26">26</xref>]. Nevertheless, relative improvements from quantum enhancement should generalize across contexts.</p><p>In the quantum computing domain, our work represents one of the first practical applications of quantum-enhanced methods to clinical NLP tasks. Prior work on QNLP has focused primarily on theoretical analyses and simple classification tasks [<xref ref-type="bibr" rid="ref33">33</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. The success of our QUBO-based approach suggests that quantum optimization can provide practical benefits even with current hybrid quantum-classical architectures.</p></sec><sec id="s4-3"><title>Computational Efficiency Considerations</title><p>From an operational standpoint, Dynex-QML-70B showed a lower total elapsed time than Llama-70B (7.97, SD 2.87 seconds per note vs 8.52, SD 3.32 seconds per note). This finding is notable because a quantum-enhanced approach involves additional optimization steps that might be expected to increase computational overhead. The efficiency gains may result from the global optimization reducing the need for multiple inference passes or from the QUBO solver converging faster than iterative token generation in challenging cases.</p><p>For smaller models, computational trade-offs are less favorable for the quantum-enhanced approach. Dynex-QML-8B requires substantially more processing time than Llama-8B (8.59, SD 3.62 seconds per note vs 5.22, SD 2.12 seconds per note), suggesting that the overhead of quantum optimization may be more significant relative to the faster base model inference. This makes the 70B configuration more suitable for production deployment where quality is prioritized over raw speed.</p></sec><sec id="s4-4"><title>Regulatory Compliance Implications</title><p>Improvements in precision achieved by quantum-enhanced approaches have important implications for regulatory compliance. Under HIPAA Safe Harbor provisions, all 18 categories of identifiers must be removed with no residual information that could enable reidentification [<xref ref-type="bibr" rid="ref11">11</xref>]. High FN rates (missed entities) create direct compliance risks, while high FP rates (overanonymization) can degrade data utility for research purposes.</p><p>The Dynex-QML-70B model&#x2019;s combination of high recall (minimizing compliance risk) and high precision (preserving data utility) represents an optimal balance for health care applications. For sensitive entity types such as names, the model&#x2019;s 0.951 recall ensures that very few identifying names remain in anonymized output, while the 0.971 precision ensures that clinical terms are not erroneously removed.</p></sec><sec id="s4-5"><title>Limitations</title><p>Several limitations of this study should be acknowledged. First, our evaluation was conducted using Portuguese outpatient clinical notes obtained within a single health care system. InCor is part of HC-FMUSP, the largest academic health care complex in Latin America, serving a large and diverse patient population through multiple clinical pathways, different documentation styles, clinical specialties, and languages. Institutional differences in writing patterns, abbreviation usage, entity distributions, and documentation workflows may substantially affect anonymization performance in external settings. Second, the dataset size of 1000 texts, while sufficient for comparative evaluation, may not capture the full variability of clinical documentation. Third, although the same 100 randomly selected notes were independently reannotated by 3 annotators, the agreement analysis covered only 20% of the evaluation set and 10% of the complete corpus. It also included 3 of the 5 original annotators rather than the complete annotation team. Fourth, our implementation of quantum-enhanced optimization uses simulated quantum annealing on GPU hardware rather than actual quantum processors, though this reflects the current state of accessible quantum computing resources and the practical deployment model of the Dynex platform.</p><p>Additionally, we did not conduct systematic hyperparameter optimization for either the prompt design or the QUBO formulation parameters, suggesting that further improvements may be achievable. Energy consumption measurements were not included in this study due to methodological challenges in accurately comparing energy usage between classical LLM inference and hybrid quantum-classical systems. The Dynex platform&#x2019;s use of algorithmic qubits emulated in GPU VRAM introduces complexity in energy accounting, as the quantum annealing process involves intricate patterns of memory access and computation that are not straightforwardly comparable to standard neural network inference. Specifically, the algorithmic qubits are not isolated physical devices whose draw can be metered, but mathematical state variables coresident in GPU video memory alongside the classical LLM inference workload, and the Dynex platform operates on a distributed GPU network where node-level power readings are confounded by other tenant workloads sharing the same hardware. We therefore took the methodologically conservative position of removing the energy comparison from this paper rather than reporting a comparison whose denominator is not well defined. Future work should develop standardized methodologies for energy measurement in neuromorphic quantum computing systems to enable fair comparisons with classical approaches.</p></sec><sec id="s4-6"><title>Future Directions</title><p>Future research should extend this evaluation to additional languages and clinical domains, including radiology reports, pathology notes, and nursing documentation. Systematic benchmarking against fine-tuned NER models and other state-of-the-art systems would provide additional context for the quantum-enhanced approach. As quantum hardware continues to evolve, evaluation on alternative quantum computing platforms would help characterize the generalizability of the QUBO-based anonymization approach.</p><p>The QUBO formulation approach may also be applicable to other clinical NLP tasks where global optimization could improve upon sequential processing, such as relation extraction, temporal reasoning, and clinical summarization. Exploring these applications represents a promising direction for quantum-enhanced health care AI. Additionally, investigating the interpretability of the quantum optimization process could provide insights into which linguistic features most strongly influence anonymization decisions.</p></sec><sec id="s4-7"><title>Conclusions</title><p>This study demonstrates that quantum-enhanced hybrid architectures can achieve substantial improvements in medical text anonymization compared to stand-alone LLMs. The Dynex-QML-70B model achieved the highest overall performance (macro<italic>&#x2013;F</italic><sub>1</sub>-score 0.855, macro-precision 0.794, and macro-sensitivity 0.971) while slightly reducing processing time compared to Llama-3.3-70B (7.97, SD 2.87 seconds per note vs 8.52 SD 3.32 seconds per note). The primary advantage of quantum enhancement lies in substantially improved precision by 25% (0.794 for Dynex-QML-70B vs 0.636 for Llama-3.3-70B) while maintaining high sensitivity with a 2% increase (0.971 for Dynex-QML-70B vs 0.949 for Llama-3.3-70B).</p><p>The detailed exposition of the quantum-enhanced methodology demonstrates how transformer attention mechanisms can be reformulated as QUBO problems and solved via neuromorphic quantum annealing. This approach leverages the global optimization capabilities of quantum computing to address the precision challenges inherent in prompt-based LLM anonymization.</p><p>These findings highlight the growing maturity of hybrid quantum-classical architectures and their promise for accurate and scalable anonymization in real-world health care applications. As regulatory requirements for health data protection continue to evolve and the volume of clinical text data grows, quantum-enhanced approaches may represent a viable path toward sustainable solutions for clinical text anonymization that balance quality, efficiency, and compliance.</p></sec></sec></body><back><ack><p>We thank Dynex for providing access to their quantum computing platform and computational resources. We also thank Heart Institute, Clinics Hospital, University of S&#x00E3;o Paulo Medical School for the research infrastructure.</p><p>The authors declare the use of generative AI (GenAI) only during the writing process. According to the GAIDeT (Generative AI Delegation Taxonomy; 2025), the following tasks were delegated to GenAI tools under full human supervision: proofreading and editing, translation, reformatting, and rephrasing. The GenAI tool used was Grammarly. Responsibility for the final manuscript lies entirely with the authors. GenAI tools are not listed as authors and do not bear responsibility for the final outcomes. The declaration was submitted by all authors.</p></ack><notes><sec><title>Funding</title><p>This study was supported by S&#x00E3;o Paulo Research Foundation (FAPESP grants # 2024/13328- 9 and 2025/27076-4) and FOXCONN Brazil as part of the research project &#x201C;Natural Language Processing in Cardiovascular Medicine.&#x201D; Computational resources were provided by Dynex and Heart Institute.</p></sec><sec><title>Data Availability</title><p>The dataset analyzed during this study is not publicly available due to privacy, ethical, and institutional restrictions governing sensitive health data under Brazil&#x2019;s Lei Geral de Prote&#x00E7;&#x00E3;o de Dados Pessoais (LGPD). Requests for access to InCor-derived data for noncommercial research or educational purposes may be submitted to Prof Jose Eduardo Krieger (j.krieger@hc.fm.usp.br) and will be evaluated on a case-by-case basis by the Heart Institute and the University of S&#x00E3;o Paulo Medical School. Requests must include (1) the study protocol, (2) the investigators&#x2019; institutional affiliations, (3) ethics approval or waiver, when applicable, (4) a data protection plan, and (5) a detailed description of the requested variables and intended analyses. Approved applicants may receive access under a formal Data Use Agreement prohibiting redistribution, commercial use, reidentification attempts, and unauthorized linkage with external datasets.</p><p>Selected nonproprietary methodological materials related to this study are available in a public GitHub repository [<xref ref-type="bibr" rid="ref49">49</xref>]. Additional nonproprietary materials, including the protected entity annotation schema, anonymization prompt, evaluation scripts used to compute precision, recall, <italic>F</italic><sub>1</sub>-score, and error counts, and bootstrap analysis scripts used to estimate CIs and empirical P values, are available from the corresponding author upon reasonable request.</p><p>The complete Dynex-QML anonymization pipeline is not publicly available because it includes proprietary infrastructure components. Researchers interested in reproducing or extending the quantum-enhanced workflow may request sandbox access to the Dynex neuromorphic platform directly, subject to Dynex approval and platform-specific terms.</p></sec></notes><fn-group><fn fn-type="con"><p>Conceptualization: SR, FMD, MG</p><p>Data curation: SR</p><p>Formal analysis: SR, FMD</p><p>Investigation: SR, FMD</p><p>Methodology: SR, FMD, RAM, MSR, DH, JEK</p><p>Project administration: DH, JEK, MG</p><p>Resources: RAM, MSR, DH, JEK, MG</p><p>Software: SR, FMD</p><p>Supervision: RAM, MSR, DH, JEK, MG</p><p>Validation: FMD</p><p>Visualization: SR</p><p>Writing &#x2013; original draft: SR</p><p>Writing &#x2013; review &#x0026; editing: SR, FMD, RAM, MSR, DH, JEK, MG</p></fn><fn fn-type="conflict"><p>SR and DH are engaged as independent consultants to Q.Enterprises AG (Dynex), the developer of the neuromorphic quantum computing platform evaluated in this study, which provided access to the Dynex-QML platform and computational resources used in this study. The other authors declare no other competing interests.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">BERT</term><def><p>Bidirectional Encoder Representations from Transformers</p></def></def-item><def-item><term id="abb2">EHR</term><def><p>electronic health record</p></def></def-item><def-item><term id="abb3">FN</term><def><p>false negative</p></def></def-item><def-item><term id="abb4">FP</term><def><p>false positive</p></def></def-item><def-item><term id="abb5">GCSP</term><def><p>Global Constraint Satisfaction Problem</p></def></def-item><def-item><term id="abb6">GDPR</term><def><p>General Data Protection Regulation</p></def></def-item><def-item><term id="abb7">GPU</term><def><p>Graphics Processing Unit</p></def></def-item><def-item><term id="abb8">HC-FMUSP</term><def><p> Hospital das Cl&#x00ED;nicas of the University of S&#x00E3;o Paulo Medical School</p></def></def-item><def-item><term id="abb9">HIPAA</term><def><p>Health Insurance Portability and Accountability Act</p></def></def-item><def-item><term id="abb10">IBGE</term><def><p> Instituto Brasileiro de Geografia e Estat&#x00ED;stica</p></def></def-item><def-item><term id="abb11"><italic>ICD-10</italic></term><def><p><italic>International Statistical Classification of Diseases, Tenth Revision</italic></p></def></def-item><def-item><term id="abb12">InCor</term><def><p>Instituto do Cora&#x00E7;&#x00E3;o</p></def></def-item><def-item><term id="abb13">LGPD</term><def><p>Lei Geral de Prote&#x00E7;&#x00E3;o de Dados Pessoais</p></def></def-item><def-item><term id="abb14">LLM</term><def><p>large language model</p></def></def-item><def-item><term id="abb15">NER</term><def><p>Named Entity Recognition</p></def></def-item><def-item><term id="abb16">NLP</term><def><p>natural language processing</p></def></def-item><def-item><term id="abb17">ODE</term><def><p>ordinary differential equation</p></def></def-item><def-item><term id="abb18">PHI</term><def><p>Protected Health Information</p></def></def-item><def-item><term id="abb19">QNLP</term><def><p>Quantum Natural Language Processing</p></def></def-item><def-item><term id="abb20">QUBO</term><def><p>Quadratic Unconstrained Binary Optimization</p></def></def-item><def-item><term id="abb21">SUS</term><def><p>Sistema &#x00DA;nico de Sa&#x00FA;de</p></def></def-item><def-item><term id="abb22">TI</term><def><p>internal processing time</p></def></def-item><def-item><term id="abb23">TP</term><def><p>true positive</p></def></def-item><def-item><term id="abb24">TT</term><def><p>total elapsed time</p></def></def-item><def-item><term id="abb25">VRAM</term><def><p>video random access memory</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>H&#x00E4;yrinen</surname><given-names>K</given-names> </name><name name-style="western"><surname>Saranto</surname><given-names>K</given-names> </name><name name-style="western"><surname>Nyk&#x00E4;nen</surname><given-names>P</given-names> </name></person-group><article-title>Definition, structure, content, use and impacts of electronic health records: a review of the research literature</article-title><source>Int J Med Inform</source><year>2008</year><month>05</month><volume>77</volume><issue>5</issue><fpage>291</fpage><lpage>304</lpage><pub-id pub-id-type="doi">10.1016/j.ijmedinf.2007.09.001</pub-id><pub-id pub-id-type="medline">17951106</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hripcsak</surname><given-names>G</given-names> </name><name name-style="western"><surname>Albers</surname><given-names>DJ</given-names> </name></person-group><article-title>Next-generation phenotyping of electronic health records</article-title><source>J Am Med Inform Assoc</source><year>2013</year><month>01</month><day>1</day><volume>20</volume><issue>1</issue><fpage>117</fpage><lpage>121</lpage><pub-id pub-id-type="doi">10.1136/amiajnl-2012-001145</pub-id><pub-id pub-id-type="medline">22955496</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Murdoch</surname><given-names>TB</given-names> </name><name name-style="western"><surname>Detsky</surname><given-names>AS</given-names> </name></person-group><article-title>The inevitable application of big data to health care</article-title><source>JAMA</source><year>2013</year><month>04</month><day>3</day><volume>309</volume><issue>13</issue><fpage>1351</fpage><lpage>1352</lpage><pub-id pub-id-type="doi">10.1001/jama.2013.393</pub-id><pub-id pub-id-type="medline">23549579</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Tanwar</surname><given-names>S</given-names> </name><name name-style="western"><surname>Parekh</surname><given-names>K</given-names> </name><name name-style="western"><surname>Evans</surname><given-names>R</given-names> </name></person-group><article-title>Blockchain-based electronic healthcare record system for healthcare 4.0 applications</article-title><source>J Inf Secur Appl</source><year>2020</year><month>02</month><volume>50</volume><fpage>102407</fpage><pub-id pub-id-type="doi">10.1016/j.jisa.2019.102407</pub-id></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zhang</surname><given-names>A</given-names> </name><name name-style="western"><surname>Lin</surname><given-names>X</given-names> </name></person-group><article-title>Towards secure and privacy-preserving data sharing in e-Health systems via consortium blockchain</article-title><source>J Med Syst</source><year>2018</year><month>06</month><day>28</day><volume>42</volume><issue>8</issue><fpage>140</fpage><pub-id pub-id-type="doi">10.1007/s10916-018-0995-5</pub-id><pub-id pub-id-type="medline">29956061</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Fern&#x00E1;ndez-Alem&#x00E1;n</surname><given-names>JL</given-names> </name><name name-style="western"><surname>Se&#x00F1;or</surname><given-names>IC</given-names> </name><name name-style="western"><surname>Lozoya</surname><given-names>P&#x00C1;O</given-names> </name><name name-style="western"><surname>Toval</surname><given-names>A</given-names> </name></person-group><article-title>Security and privacy in electronic health records: a systematic literature review</article-title><source>J Biomed Inform</source><year>2013</year><month>06</month><volume>46</volume><issue>3</issue><fpage>541</fpage><lpage>562</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2012.12.003</pub-id><pub-id pub-id-type="medline">23305810</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zuo</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Watson</surname><given-names>M</given-names> </name><name name-style="western"><surname>Budgen</surname><given-names>D</given-names> </name><name name-style="western"><surname>Hall</surname><given-names>R</given-names> </name><name name-style="western"><surname>Kennelly</surname><given-names>C</given-names> </name><name name-style="western"><surname>Al Moubayed</surname><given-names>N</given-names> </name></person-group><article-title>Data anonymization for pervasive health care: systematic literature mapping study</article-title><source>JMIR Med Inform</source><year>2021</year><month>10</month><day>15</day><volume>9</volume><issue>10</issue><fpage>e29871</fpage><pub-id pub-id-type="doi">10.2196/29871</pub-id><pub-id pub-id-type="medline">34652278</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>El Emam</surname><given-names>K</given-names> </name><name name-style="western"><surname>Jonker</surname><given-names>E</given-names> </name><name name-style="western"><surname>Arbuckle</surname><given-names>L</given-names> </name><name name-style="western"><surname>Malin</surname><given-names>B</given-names> </name></person-group><article-title>A systematic review of re-identification attacks on health data</article-title><source>PLoS One</source><year>2011</year><volume>6</volume><issue>12</issue><fpage>e28071</fpage><pub-id pub-id-type="doi">10.1371/journal.pone.0028071</pub-id><pub-id pub-id-type="medline">22164229</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meystre</surname><given-names>SM</given-names> </name><name name-style="western"><surname>Friedlin</surname><given-names>FJ</given-names> </name><name name-style="western"><surname>South</surname><given-names>BR</given-names> </name><name name-style="western"><surname>Shen</surname><given-names>S</given-names> </name><name name-style="western"><surname>Samore</surname><given-names>MH</given-names> </name></person-group><article-title>Automatic de-identification of textual documents in the electronic health record: a review of recent research</article-title><source>BMC Med Res Methodol</source><year>2010</year><month>08</month><day>2</day><volume>10</volume><fpage>70</fpage><pub-id pub-id-type="doi">10.1186/1471-2288-10-70</pub-id><pub-id pub-id-type="medline">20678228</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stubbs</surname><given-names>A</given-names> </name><name name-style="western"><surname>Uzuner</surname><given-names>&#x00D6;</given-names> </name></person-group><article-title>Annotating longitudinal clinical narratives for de-identification: the 2014 i2b2/UTHealth corpus</article-title><source>J Biomed Inform</source><year>2015</year><month>12</month><volume>58 Suppl</volume><issue>Suppl</issue><fpage>S20</fpage><lpage>S29</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2015.07.020</pub-id><pub-id pub-id-type="medline">26319540</pub-id></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="web"><article-title>Guidance regarding methods for de-identification of protected health information in accordance with the Health Insurance Portability and Accountability Act (HIPAA) privacy rule</article-title><source>US Department of Health and Human Services</source><year>2012</year><access-date>2026-08-08</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/">https://www.hhs.gov/hipaa/for-professionals/privacy/special-topics/de-identification/</ext-link></comment></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kushida</surname><given-names>CA</given-names> </name><name name-style="western"><surname>Nichols</surname><given-names>DA</given-names> </name><name name-style="western"><surname>Jadrnicek</surname><given-names>R</given-names> </name><name name-style="western"><surname>Miller</surname><given-names>R</given-names> </name><name name-style="western"><surname>Walsh</surname><given-names>JK</given-names> </name><name name-style="western"><surname>Griffin</surname><given-names>K</given-names> </name></person-group><article-title>Strategies for de-identification and anonymization of electronic health record data for use in multicenter research studies</article-title><source>Med Care</source><year>2012</year><month>07</month><volume>50 Suppl</volume><issue>Suppl</issue><fpage>S82</fpage><lpage>101</lpage><pub-id pub-id-type="doi">10.1097/MLR.0b013e3182585355</pub-id><pub-id pub-id-type="medline">22692265</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Voigt</surname><given-names>P</given-names> </name><name name-style="western"><surname>Von dem Bussche</surname><given-names>A</given-names> </name></person-group><source>The EU General Data Protection Regulation (GDPR): A Practical Guide</source><year>2017</year><publisher-name>Springer International Publishing</publisher-name><pub-id pub-id-type="doi">10.1007/978-3-319-57959-7</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><collab>European Commission</collab></person-group><article-title>Regulation (EU) 2016/679 of the European Parliament and of the Council (General Data Protection Regulation)</article-title><source>Off J Eur Union</source><year>2016</year><access-date>2026-08-14</access-date><volume>L119</volume><fpage>1</fpage><lpage>88</lpage><comment><ext-link ext-link-type="uri" xlink:href="https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX%3A32016R0679">https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX%3A32016R0679</ext-link></comment></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Bioni</surname><given-names>BR</given-names> </name></person-group><source>Prote&#x00E7;&#x00E3;o de Dados Pessoais: A Fun&#x00E7;&#x00E3;o e Os Limites Do Consentimento [Book in Portuguese]</source><year>2019</year><publisher-name>Forense</publisher-name><pub-id pub-id-type="other">978-85-309-8168-6</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dernoncourt</surname><given-names>F</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>JY</given-names> </name><name name-style="western"><surname>Uzuner</surname><given-names>O</given-names> </name><name name-style="western"><surname>Szolovits</surname><given-names>P</given-names> </name></person-group><article-title>De-identification of patient notes with recurrent neural networks</article-title><source>J Am Med Inform Assoc</source><year>2017</year><month>05</month><day>1</day><volume>24</volume><issue>3</issue><fpage>596</fpage><lpage>606</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocw156</pub-id><pub-id pub-id-type="medline">28040687</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Szarvas</surname><given-names>G</given-names> </name><name name-style="western"><surname>Farkas</surname><given-names>R</given-names> </name><name name-style="western"><surname>Busa-Fekete</surname><given-names>R</given-names> </name></person-group><article-title>State-of-the-art anonymisation of medical records using an iterative machine learning framework</article-title><source>J Am Med Inform Assoc</source><year>2007</year><volume>14</volume><issue>5</issue><fpage>574</fpage><lpage>580</lpage><pub-id pub-id-type="doi">10.1197/jamia.M2441</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ferr&#x00E1;ndez</surname><given-names>O</given-names> </name><name name-style="western"><surname>South</surname><given-names>BR</given-names> </name><name name-style="western"><surname>Shen</surname><given-names>S</given-names> </name><name name-style="western"><surname>Friedlin</surname><given-names>FJ</given-names> </name><name name-style="western"><surname>Samore</surname><given-names>MH</given-names> </name><name name-style="western"><surname>Meystre</surname><given-names>SM</given-names> </name></person-group><article-title>Evaluating current automatic de-identification methods with Veteran&#x2019;s health administration clinical documents</article-title><source>BMC Med Res Methodol</source><year>2012</year><month>07</month><day>27</day><volume>12</volume><fpage>109</fpage><pub-id pub-id-type="doi">10.1186/1471-2288-12-109</pub-id><pub-id pub-id-type="medline">22839356</pub-id></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Catelli</surname><given-names>R</given-names> </name><name name-style="western"><surname>Casola</surname><given-names>V</given-names> </name><name name-style="western"><surname>De Pietro</surname><given-names>G</given-names> </name><name name-style="western"><surname>Fujita</surname><given-names>H</given-names> </name><name name-style="western"><surname>Esposito</surname><given-names>M</given-names> </name></person-group><article-title>De-identification of clinical free text using natural language processing: A systematic review of current approaches</article-title><source>Artif Intell Med</source><year>2024</year><month>04</month><volume>149</volume><fpage>102786</fpage><pub-id pub-id-type="doi">10.1016/j.artmed.2024.102786</pub-id><pub-id pub-id-type="medline">38462286</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Tang</surname><given-names>B</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>Q</given-names> </name></person-group><article-title>De-identification of clinical notes via recurrent neural network and conditional random field</article-title><source>J Biomed Inform</source><year>2017</year><month>11</month><volume>75S</volume><fpage>S34</fpage><lpage>S42</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2017.05.023</pub-id><pub-id pub-id-type="medline">28579533</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Lyu</surname><given-names>T</given-names> </name><name name-style="western"><surname>Li</surname><given-names>Q</given-names> </name><etal/></person-group><article-title>A study of deep learning methods for de-identification of clinical notes in cross-institute settings</article-title><source>BMC Med Inform Decis Mak</source><year>2019</year><month>12</month><day>5</day><volume>19</volume><issue>Suppl 5</issue><fpage>232</fpage><pub-id pub-id-type="doi">10.1186/s12911-019-0935-4</pub-id><pub-id pub-id-type="medline">31801524</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Devlin</surname><given-names>J</given-names> </name><name name-style="western"><surname>Chang</surname><given-names>MW</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>K</given-names> </name><name name-style="western"><surname>Toutanova</surname><given-names>K</given-names> </name></person-group><article-title>BERT: pre-training of deep bidirectional transformers for language understanding</article-title><conf-name>Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)</conf-name><conf-date>Jun 2-7, 2019</conf-date><conf-loc>Minneapolis, Minnesota</conf-loc><fpage>4171</fpage><lpage>4186</lpage><pub-id pub-id-type="doi">10.18653/v1/N19-1423</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lee</surname><given-names>J</given-names> </name><name name-style="western"><surname>Yoon</surname><given-names>W</given-names> </name><name name-style="western"><surname>Kim</surname><given-names>S</given-names> </name><etal/></person-group><article-title>BioBERT: a pre-trained biomedical language representation model for biomedical text mining</article-title><source>Bioinformatics</source><year>2020</year><month>02</month><day>15</day><volume>36</volume><issue>4</issue><fpage>1234</fpage><lpage>1240</lpage><pub-id pub-id-type="doi">10.1093/bioinformatics/btz682</pub-id><pub-id pub-id-type="medline">31501885</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Johnson</surname><given-names>AEW</given-names> </name><name name-style="western"><surname>Pollard</surname><given-names>TJ</given-names> </name><name name-style="western"><surname>Shen</surname><given-names>L</given-names> </name><etal/></person-group><article-title>MIMIC-III, a freely accessible critical care database</article-title><source>Sci Data</source><year>2016</year><month>05</month><day>24</day><volume>3</volume><fpage>160035</fpage><pub-id pub-id-type="doi">10.1038/sdata.2016.35</pub-id><pub-id pub-id-type="medline">27219127</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Achiam</surname><given-names>J</given-names> </name><name name-style="western"><surname>Adler</surname><given-names>S</given-names> </name><name name-style="western"><surname>Agarwal</surname><given-names>S</given-names> </name><etal/></person-group><article-title>GPT-4 technical report</article-title><source>arXiv</source><comment>Preprint posted online on  Mar 15, 2023</comment><pub-id pub-id-type="doi">10.48550/arXiv.2303.08774</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Giorgi</surname><given-names>JM</given-names> </name><name name-style="western"><surname>Bader</surname><given-names>GD</given-names> </name></person-group><article-title>Towards reliable named entity recognition in the biomedical domain</article-title><source>Bioinformatics</source><year>2020</year><month>01</month><day>1</day><volume>36</volume><issue>1</issue><fpage>280</fpage><lpage>286</lpage><pub-id pub-id-type="doi">10.1093/bioinformatics/btz504</pub-id><pub-id pub-id-type="medline">31218364</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lee</surname><given-names>YQ</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>CT</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>CC</given-names> </name><etal/></person-group><article-title>Unlocking the secrets behind advanced artificial intelligence language models in deidentifying Chinese-English mixed clinical text: development and validation study</article-title><source>J Med Internet Res</source><year>2024</year><month>01</month><day>25</day><volume>26</volume><fpage>e48443</fpage><pub-id pub-id-type="doi">10.2196/48443</pub-id><pub-id pub-id-type="medline">38271060</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wiest</surname><given-names>IC</given-names> </name><name name-style="western"><surname>Le&#x00DF;mann</surname><given-names>ME</given-names> </name><name name-style="western"><surname>Wolf</surname><given-names>F</given-names> </name><etal/></person-group><article-title>Deidentifying medical documents with local, privacy-preserving large language models: the LLM-anonymizer</article-title><source>NEJM AI</source><year>2025</year><month>03</month><day>27</day><volume>2</volume><issue>4</issue><pub-id pub-id-type="doi">10.1056/AIdbp2400537</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hu</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Du</surname><given-names>J</given-names> </name><etal/></person-group><article-title>Improving large language models for clinical named entity recognition via prompt engineering</article-title><source>J Am Med Inform Assoc</source><year>2024</year><month>09</month><day>1</day><volume>31</volume><issue>9</issue><fpage>1812</fpage><lpage>1820</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocad259</pub-id><pub-id pub-id-type="medline">38281112</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Brown</surname><given-names>T</given-names> </name><name name-style="western"><surname>Mann</surname><given-names>B</given-names> </name><name name-style="western"><surname>Ryder</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Language models are few-shot learners</article-title><access-date>2026-08-14</access-date><conf-name>34th Annual Conference on Neural Information Processing Systems (NeurIPS 2020)</conf-name><conf-date>Dec 6-12, 2020</conf-date><fpage>1877</fpage><lpage>1901</lpage><comment><ext-link ext-link-type="uri" xlink:href="https://proceedings.neurips.cc/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html">https://proceedings.neurips.cc/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html</ext-link></comment></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Schuld</surname><given-names>M</given-names> </name><name name-style="western"><surname>Petruccione</surname><given-names>F</given-names> </name></person-group><source>Supervised Learning with Quantum Computers</source><year>2018</year><publisher-name>Springer</publisher-name><pub-id pub-id-type="doi">10.1007/978-3-319-96424-9</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Biamonte</surname><given-names>J</given-names> </name><name name-style="western"><surname>Wittek</surname><given-names>P</given-names> </name><name name-style="western"><surname>Pancotti</surname><given-names>N</given-names> </name><name name-style="western"><surname>Rebentrost</surname><given-names>P</given-names> </name><name name-style="western"><surname>Wiebe</surname><given-names>N</given-names> </name><name name-style="western"><surname>Lloyd</surname><given-names>S</given-names> </name></person-group><article-title>Quantum machine learning</article-title><source>Nature</source><year>2017</year><month>09</month><day>13</day><volume>549</volume><issue>7671</issue><fpage>195</fpage><lpage>202</lpage><pub-id pub-id-type="doi">10.1038/nature23474</pub-id><pub-id pub-id-type="medline">28905917</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Widdows</surname><given-names>D</given-names> </name><name name-style="western"><surname>Kitto</surname><given-names>K</given-names> </name><name name-style="western"><surname>Cohen</surname><given-names>T</given-names> </name></person-group><article-title>Quantum natural language processing</article-title><source>arXiv</source><comment>Preprint posted online on 2024</comment><comment>arXiv:2403.19758</comment></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Lorenz</surname><given-names>R</given-names> </name><name name-style="western"><surname>Pearson</surname><given-names>A</given-names> </name><name name-style="western"><surname>Meichanetzidis</surname><given-names>K</given-names> </name><name name-style="western"><surname>Kartsaklis</surname><given-names>D</given-names> </name><name name-style="western"><surname>Coecke</surname><given-names>B</given-names> </name></person-group><article-title>QNLP in practice: running compositional models of meaning on a quantum computer</article-title><source>arXiv</source><comment>Preprint posted online on  Feb 25, 2021</comment><comment>arXiv:2102.12846</comment></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Glover</surname><given-names>F</given-names> </name><name name-style="western"><surname>Kochenberger</surname><given-names>G</given-names> </name><name name-style="western"><surname>Du</surname><given-names>Y</given-names> </name></person-group><article-title>Quantum Bridge Analytics I: a tutorial on formulating and using QUBO models</article-title><source>4OR-Q J Oper Res</source><year>2019</year><month>12</month><volume>17</volume><issue>4</issue><fpage>335</fpage><lpage>371</lpage><pub-id pub-id-type="doi">10.1007/s10288-019-00424-y</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yadav</surname><given-names>P</given-names> </name><name name-style="western"><surname>Kumar</surname><given-names>S</given-names> </name><name name-style="western"><surname>Singh</surname><given-names>S</given-names> </name></person-group><article-title>Quantum machine learning for natural language processing application</article-title><source>Physica A</source><year>2023</year><month>10</month><volume>624</volume><fpage>128986</fpage><pub-id pub-id-type="doi">10.1016/j.physa.2023.129123</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Ahmadi</surname><given-names>S</given-names> </name><name name-style="western"><surname>Zomorodi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Mahdavi</surname><given-names>M</given-names> </name><name name-style="western"><surname>Pazoki</surname><given-names>M</given-names> </name></person-group><article-title>Large language model-based quantum computing integration with real-world workflow execution</article-title><source>arXiv</source><comment>Preprint posted online on 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2407.21783</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>X</given-names> </name><name name-style="western"><surname>Renard</surname><given-names>S</given-names> </name><name name-style="western"><surname>Guo</surname><given-names>Y</given-names> </name></person-group><article-title>Automatic de-identification of electronic medical records: a survey</article-title><source>J Biomed Inform</source><year>2021</year><month>11</month><volume>123</volume><fpage>103914</fpage><pub-id pub-id-type="doi">10.1016/j.jbi.2021.103914</pub-id></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Stubbs</surname><given-names>A</given-names> </name><name name-style="western"><surname>Kotfila</surname><given-names>C</given-names> </name><name name-style="western"><surname>Uzuner</surname><given-names>&#x00D6;</given-names> </name></person-group><article-title>Automated systems for the de-identification of longitudinal clinical narratives: overview of 2014 i2b2/UTHealth shared task Track 1</article-title><source>J Biomed Inform</source><year>2015</year><month>12</month><volume>58 Suppl</volume><issue>Suppl</issue><fpage>S11</fpage><lpage>S19</lpage><pub-id pub-id-type="doi">10.1016/j.jbi.2015.06.007</pub-id><pub-id pub-id-type="medline">26225918</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Di Sipio</surname><given-names>R</given-names> </name><name name-style="western"><surname>Huang</surname><given-names>JH</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>SYC</given-names> </name><name name-style="western"><surname>Mangini</surname><given-names>S</given-names> </name><name name-style="western"><surname>Worring</surname><given-names>M</given-names> </name></person-group><article-title>The dawn of quantum natural language processing</article-title><conf-name>ICASSP 2022 - 2022 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP)</conf-name><conf-date>May 23-27, 2022</conf-date><conf-loc>Singapore, Singapore</conf-loc><fpage>8612</fpage><lpage>8616</lpage><pub-id pub-id-type="doi">10.1109/ICASSP43922.2022.9747675</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Meichanetzidis</surname><given-names>K</given-names> </name><name name-style="western"><surname>Toumi</surname><given-names>A</given-names> </name><name name-style="western"><surname>de Felice</surname><given-names>G</given-names> </name><name name-style="western"><surname>Coecke</surname><given-names>B</given-names> </name></person-group><article-title>Grammar-aware question-answering on quantum computers</article-title><source>arXiv</source><comment>Preprint posted online on  Dec 7, 2020</comment><pub-id pub-id-type="doi">10.48550/arXiv.2012.03756</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Gutierrez</surname><given-names>MA</given-names> </name><name name-style="western"><surname>Furuie</surname><given-names>SS</given-names> </name><name name-style="western"><surname>Rebelo</surname><given-names>MS</given-names> </name><name name-style="western"><surname>Pires</surname><given-names>FA</given-names> </name><name name-style="western"><surname>Moreno</surname><given-names>RA</given-names> </name><name name-style="western"><surname>dos Santos</surname><given-names>M</given-names> </name></person-group><article-title>Implementation of an integrated hospital information system using an open-source three-tier architecture</article-title><conf-name>Medical Imaging 2004</conf-name><conf-date>Apr 19, 2004</conf-date><conf-loc>San Diego, CA</conf-loc><fpage>16</fpage><lpage>22</lpage><pub-id pub-id-type="doi">10.1117/12.535286</pub-id></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Furuie</surname><given-names>SS</given-names> </name><name name-style="western"><surname>Rebelo</surname><given-names>MS</given-names> </name><name name-style="western"><surname>Moreno</surname><given-names>RA</given-names> </name><etal/></person-group><article-title>Managing medical images and clinical information: InCor&#x2019;s experience</article-title><source>IEEE Trans Inf Technol Biomed</source><year>2007</year><month>01</month><volume>11</volume><issue>1</issue><fpage>17</fpage><lpage>24</lpage><pub-id pub-id-type="doi">10.1109/titb.2006.879588</pub-id><pub-id pub-id-type="medline">17249400</pub-id></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kadowaki</surname><given-names>T</given-names> </name><name name-style="western"><surname>Nishimori</surname><given-names>H</given-names> </name></person-group><article-title>Quantum annealing in the transverse Ising model</article-title><source>Phys Rev E</source><year>1998</year><month>11</month><volume>58</volume><issue>5</issue><fpage>5355</fpage><lpage>5363</lpage><pub-id pub-id-type="doi">10.1103/PhysRevE.58.5355</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ising</surname><given-names>E</given-names> </name></person-group><article-title>Beitrag zur Theorie des Ferromagnetismus</article-title><source>Z Physik</source><year>1925</year><month>02</month><volume>31</volume><issue>1</issue><fpage>253</fpage><lpage>258</lpage><pub-id pub-id-type="doi">10.1007/BF02980577</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Onsager</surname><given-names>L</given-names> </name></person-group><article-title>Crystal statistics. I. A two-dimensional model with an order-disorder transition</article-title><source>Phys Rev</source><year>1944</year><month>02</month><volume>65</volume><issue>3-4</issue><fpage>117</fpage><lpage>149</lpage><pub-id pub-id-type="doi">10.1103/PhysRev.65.117</pub-id></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lucas</surname><given-names>A</given-names> </name></person-group><article-title>Ising formulations of many NP problems</article-title><source>Front Physics</source><year>2014</year><volume>2</volume><fpage>5</fpage><pub-id pub-id-type="doi">10.3389/fphy.2014.00005</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Vaswani</surname><given-names>A</given-names> </name><name name-style="western"><surname>Shazeer</surname><given-names>N</given-names> </name><name name-style="western"><surname>Parmar</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Attention is all you need</article-title><access-date>2026-08-14</access-date><conf-name>Advances in Neural Information Processing Systems 30 (NIPS 2017)</conf-name><conf-date>2017</conf-date><conf-loc>Long Beach, CA</conf-loc><fpage>5998</fpage><lpage>6008</lpage><comment><ext-link ext-link-type="uri" xlink:href="https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html">https://proceedings.neurips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html</ext-link></comment></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="web"><article-title>Anonymization-of-PHI-in-portuguese-quantum-enhancedarchitecture</article-title><source>GitHub</source><access-date>2026-08-27</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://github.com/ramonmorenohc/Anonymization-of-PHI-in-Portuguese-Quantum-EnhancedArchitecture">https://github.com/ramonmorenohc/Anonymization-of-PHI-in-Portuguese-Quantum-EnhancedArchitecture</ext-link></comment></nlm-citation></ref></ref-list></back></article>