Автора пока нетВзять себе
- Языки
- English
- Темы
- ОбразованиеНаука
Quantum circuit simulators today are dominated by text-based frameworks such as Qiskit and Cirq, while drag-and-drop web tools generally lack robust classical control. A new paper proposes QuVI (Quantum Virtual Instrument), an open-source toolkit built inside NI LabVIEW, where a quantum circuit is a block diagram and the wires carry a reference to the shared quantum state.
Why LabVIEW
The author argues that LabVIEW's graphical language, which is inherently parallel, mirrors circuit diagrams, with wires carrying state information and nodes performing operations. Web simulators like IBM Quantum Composer and Quirk are intuitive but are generally limited to static circuits or simple visualizations, which makes hybrid quantum-classical workflows with branching or loops hard. In QuVI, circuits can be wrapped in For Loops, While Loops and Case Structures, so classical logic can steer the quantum run. QuVI is available through the VI Package Manager.
How it works
- Shared state. Wires do not carry the state vector, to avoid copying large data at every node. A LabVIEW queue of size 1 holds the state vector and parameters such as the qubit count, and the wire passes a reference so gates update the state in place.
- Circuit layout. Qubits start in the |0> state on stacked "QuVI Wire" subVIs, with the topmost wire as q0, flowing left to right inside a Flat Sequence Structure. Gates on different wires run independently in parallel.
- Synchronization. Controlled gates create dependencies. A "Watch List" of bits, kept in a size-1 queue, and LabVIEW Notifiers make sure gates on dependent wires wait until the update is done.
- Update engine. For a single-qubit gate, every element of the state vector is updated independently by mixing it with a "partner" element at a stride set by the target qubit, which maps onto LabVIEW's Parallel For loops. Two bitmasks, one for which qubits are controls and one for the required control values (1 for a control, 0 for an anti-control), handle arbitrary control setups. This avoids building the full operator, which for n qubits would need memory growing as 4 to the power n; the gate itself needs constant memory beyond the state vector. SWAP gates use a similar per-element mapping.

QuVI architecture. Top wire: independent operations run in parallel. Bottom wires: entangling gates such as CNOT use Notifiers to handle dependencies between control and target qubits. Figure from the paper, CC BY 4.0.
Two tests
Quantum teleportation. Measurement results on Alice's qubits travel along standard LabVIEW data wires, drawn as green dashed lines for the classical channel, to Case Structures that apply X and Z corrections to Bob's qubit. This shows the hybrid nature of the toolkit without a separate classical simulator.

Quantum teleportation in QuVI. Figure from the paper, CC BY 4.0.
Grover's search. A 4-qubit search over 16 items places the oracle and diffusion steps in a For Loop, run 3 times, and a Case Structure selects the oracle for a chosen target state, here |0110>. The simulator amplified the probability of measuring the target to more than 96%, consistent with theoretical predictions.

4-qubit Grover search in QuVI: (a) the block diagram, (b) the result, peaking above 96% at 0110. Figure from the paper, CC BY 4.0.
What comes next
The author plans to support mixed states through the density-matrix formalism, which would allow noisy systems and decoherence channels to be simulated, and to add tools to quantify entanglement, such as von Neumann entropy and concurrence, and to compute reduced density matrices through partial traces.
Sources
- Murtaza Vefadar, “From Block Diagrams to Bloch Spheres: Graphical Quantum Circuit Simulation in LabVIEW,” arXiv:2602.00643, licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/): https://arxiv.org/abs/2602.00643. Figures from the paper, CC BY 4.0. Changed here: the algorithms, equations, one figure adapted from another work and the references left out; rewritten in hubnx's own words.
Комментарии



