QSeqSim: A Symbolic Simulator for Qiskit While Loops Using Sequential Quantum Circuits

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Li, Zihao, Guan, Ji, Ying, Mingsheng
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909043871711232
author Li, Zihao
Guan, Ji
Ying, Mingsheng
author_facet Li, Zihao
Guan, Ji
Ying, Mingsheng
contents We present a tool QSeqSim, a Qiskit-integrated symbolic backend that fills the current gap of having no Qiskit-native support for simulating while-loop quantum programs and their induced sequential quantum circuits. QSeqSim takes Qiskit QuantumCircuit objects, translates them into OpenQASM 3 code, and organises the resulting program into a combination of combinational, dynamic, and sequential circuits, thereby assigning while-loops a precise sequential circuit semantics with explicit internal and external qubits. Building on this semantics, QSeqSim adopts a Binary Decision Diagram (BDD)-based symbolic representation and integrates weighted model counting to compute measurement probabilities efficiently by exploiting sharing in structured and sparse BDDs. On top of this Boolean backbone, it introduces dedicated symbolic operators for state composition and state retention, thereby enabling efficient symbolic execution of sequential quantum circuits. Our experiments demonstrate that QSeqSim scales to substantial while-induced sequential circuits; in particular, in the quantum random walk benchmark we successfully simulate circuits with over 1000 qubits for more than 10 loop iterations. QSeqSim is available at https://github.com/Veri-Q/QSeqSim.
format Preprint
id arxiv_https___arxiv_org_abs_2605_14881
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle QSeqSim: A Symbolic Simulator for Qiskit While Loops Using Sequential Quantum Circuits
Li, Zihao
Guan, Ji
Ying, Mingsheng
Quantum Physics
Logic in Computer Science
81P68, 68Q12, 03B70
F.3.1; F.1.1; D.2.4
We present a tool QSeqSim, a Qiskit-integrated symbolic backend that fills the current gap of having no Qiskit-native support for simulating while-loop quantum programs and their induced sequential quantum circuits. QSeqSim takes Qiskit QuantumCircuit objects, translates them into OpenQASM 3 code, and organises the resulting program into a combination of combinational, dynamic, and sequential circuits, thereby assigning while-loops a precise sequential circuit semantics with explicit internal and external qubits. Building on this semantics, QSeqSim adopts a Binary Decision Diagram (BDD)-based symbolic representation and integrates weighted model counting to compute measurement probabilities efficiently by exploiting sharing in structured and sparse BDDs. On top of this Boolean backbone, it introduces dedicated symbolic operators for state composition and state retention, thereby enabling efficient symbolic execution of sequential quantum circuits. Our experiments demonstrate that QSeqSim scales to substantial while-induced sequential circuits; in particular, in the quantum random walk benchmark we successfully simulate circuits with over 1000 qubits for more than 10 loop iterations. QSeqSim is available at https://github.com/Veri-Q/QSeqSim.
title QSeqSim: A Symbolic Simulator for Qiskit While Loops Using Sequential Quantum Circuits
topic Quantum Physics
Logic in Computer Science
81P68, 68Q12, 03B70
F.3.1; F.1.1; D.2.4
url https://arxiv.org/abs/2605.14881