{
  "abstract": "Recursive quantum control allows for simple and concise descriptions of algorithms. However, a naive circuit compilation sequentializes the different branches of the quantum if-statement and results in an exponential increase in circuit depth. Existing techniques can parallelize these branches, but do so at the cost of an exponential number of ancillary qubits. We present pfoqcompiler, a compiler targeting Qiskit for the first-order quantum programming language FOQ that exploits program structure to merge compatible recursive procedure calls across quantum branches. We introduce weaker syntactically-checkable conditions for well-foundedness, recursive halving, and uniformity, while preserving previously demonstrated complexity characterizations. For weakly well-founded bounded-width programs, the compiler produces polynomial-size circuits; weakly recursively halving programs additionally yield polylogarithmic depth, while weak uniformity removes the asymptotic overhead of branch sequentialization.",
  "abstract_shown": true,
  "affiliations": [],
  "article_type": null,
  "arxiv": null,
  "author_total": 3,
  "authors": [
    {
      "name": "Mário Silva"
    },
    {
      "name": "Alexandre Guernut"
    },
    {
      "name": "Marco Lewis"
    }
  ],
  "bibtex": "https://research.draconitic.com/paper/dzrhyppqsfdfk.bib",
  "cited_by": 0,
  "doi": null,
  "fulltext_url": null,
  "id": "dzrhyppqsfdfk",
  "issns": [],
  "landing_url": "https://inria.hal.science/hal-05738864v1",
  "language": "en",
  "licence": "CC-BY-4.0",
  "licence_label": "CC BY 4.0",
  "licence_source": "article",
  "licence_url": "https://creativecommons.org/licenses/by/4.0/",
  "metadata_licence": null,
  "native_subjects": [
    [
      "hal",
      "0.info"
    ],
    [
      "hal",
      "0.phys"
    ],
    [
      "hal",
      "1.info.info-cc"
    ],
    [
      "hal",
      "1.info.info-lo"
    ],
    [
      "hal",
      "1.info.info-pl"
    ],
    [
      "hal",
      "1.phys.qphy"
    ]
  ],
  "openalex": null,
  "pdf_url": "https://inria.hal.science/hal-05738864/document",
  "pmcid": null,
  "pmid": null,
  "published": "2026-09-04",
  "publisher": null,
  "ris": "https://research.draconitic.com/paper/dzrhyppqsfdfk.ris",
  "sources": [
    {
      "first_seen": "2026-10-30T12:17:29Z",
      "native_id": "hal-05738864",
      "source": "hal",
      "url": "https://inria.hal.science/hal-05738864v1"
    }
  ],
  "subjects": [
    {
      "field": "physics",
      "origin": "hal:1.phys.qphy",
      "subfield": "quantum"
    }
  ],
  "title": "pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs",
  "title_text": "pfoqcompiler: Efficient Compilation of Quantum Control in Recursive First-Order Quantum Programs",
  "type": "preprint",
  "updated_at": "2026-10-30T12:17:29Z",
  "url": "https://research.draconitic.com/paper/dzrhyppqsfdfk",
  "venue": "HAL",
  "versions": []
}