Research2023IEEE QCE

QWalkVis

Colors positions by quantum-walk probability on a line, grid, or cube, with a slider for comparing distributions across steps.

1 publication

Visualization labels

03 / Visualization
01Publication · 2023

QWalkVis: Quantum Walks Visualization Application

Addie Jordon, Austin Hawkins-Seagram, Samantha Norrie, José Ossorio, Ulrike Stege

Quantum walks (QWs) are the quantum analogue to classical random walks. We present visualizations for quantum walks and show how they can be used to teach quantum concepts such as superposition and interference. Using our Quantum Walks Visualization Application (QWalkVis) for visualizing quantum walks lets the user select the dimensions, number of states, and number of steps in the walk and generates probabilistic plots on-the-fly. Users can view a plot for each step of the walk, allowing them to compare the probability distributions as time progresses. Visualizations share an important space in education; QWalkVis was created to aid students in learning about quantum walks and foundational quantum concepts through an interactive design. We highlight some potential use cases of QWalkVis for both self-directed student learning and the education in a classroom.

From the survey collection

QWalkVis: Quantum Walks Visualization Application

Background and motivation

QWalkVis is an educational visualization application for exploring discrete-time quantum walks on one-, two-, and three-dimensional spaces. A classical random walker chooses an adjacent position according to a probability distribution, whereas a quantum walk evolves a joint direction and position state through unitary operations. Superposition and interference produce position distributions that can differ from classical walks, making quantum walks both an algorithmic subject and a setting for introducing foundational quantum concepts. The paper places this work alongside research on quantum walk search algorithms and hardware implementations, but QWalkVis itself is a classical simulation and visualization tool rather than a new search algorithm or quantum hardware implementation. Figure 1, showing two binary trees joined at their leaves, illustrates an algorithmic application discussed in the background; it is not a graph supported by the application's interface.

The problem is an existing educational challenge: beginners need to connect abstract quantum states and transformations to observable behavior without first mastering extensive mathematical notation or programming. The authors contrast their intended entry point with comprehensive resources such as the Qiskit Textbook, Xanadu Codebook, and Nielsen and Chuang's textbook, whose breadth and prerequisites can make casual exploration difficult. They also discuss the value and limitations of educational visualization, emphasizing that pictures alone do not provide complete understanding and should accompany explanatory material. QWalkVis therefore aims to supplement teaching and textbooks through a small set of controls and immediately interpretable spatial plots.

Related visualizations and the specific gap

The paper discusses Galton's quincunx as a familiar visualization of classical random walks. Figure 2 depicts balls falling through rows of pegs and accumulating in bins, making repeated random choices and their final distribution visible. The authors consider a digitized quantum version in which balls could occupy multiple positions, but identify possible confusion about the meanings of the funnel, multiple balls, and reachable positions, as well as difficulty extending this metaphor to higher dimensions. This figure is a conceptual comparison, not a QWalkVis output.

The authors also examine Wolfram's Quantum Random Walk demonstration, Cirq's quantum walk notebook, and Hiperwalk. In their 2023 comparison, these resources emphasize the resulting probability distribution and require programming knowledge to produce the visualizations, while QWalkVis emphasizes probabilities at spatial positions across individual walk steps. The claimed contribution is an accessible combination of parameter selection, spatial encoding, and temporal inspection rather than the invention of quantum walk simulation or probability plotting. These comparisons describe the resources as characterized in the paper and do not establish their present capabilities.

Walk model and implementation

A discrete-time walk uses a direction or coin space together with a position space, written as H=HD⊗HP\mathcal{H}=\mathcal{H}_D\otimes\mathcal{H}_P. Each step applies a coin operator followed by a direction-dependent shift, summarized in the paper as U=S⋅CU=S\cdot C. Repeating these operations changes the amplitudes of the joint state, from which the simulator obtains the probability of finding the walker at each position. The visualizations display these position probabilities rather than the complex amplitudes or phases themselves, so interference is approached through its effects on the changing distributions.

The application has a React front end written in JavaScript and a Flask back end written in Python. Its single-page interface includes introductory resources, instructions, and the visualization component. After the user submits parameters, the back end selects one of three dimension-specific shift operators, constructs the walk, and uses Qiskit's Statevector class to simulate the probabilities at each step, including step zero before movement begins. Matplotlib generates the plots, which are saved temporarily and returned to the front end as figures. This is a sequence of simulated probability plots controlled by the interface, rather than a visualization of measurements streaming from quantum hardware.

The supported spaces are a line, a square grid, and a cube. Each side length must be a power of two: a line therefore has 2m2^m positions, a grid has 22m2^{2m} positions, and a cube has 23m2^{3m} positions for an appropriate integer mm. The implementation uses periodic boundaries in every supported dimension, so stepping beyond one side returns the walker on the opposite side. The paper calls this a torus and explains that it simplifies the Qiskit implementation. Although the authors discuss extending their approach to other regular graphs under suitable restrictions, arbitrary graph selection is not an implemented interface feature.

Visual encoding and interaction

Figure 3 shows the options panel, with radio buttons for line, grid, or cube, text fields for the total number of states and the number of steps, and a “Load Quantum Walk” button. The application validates inputs and displays errors as the user enters them. Figure 4 illustrates this behavior with the value nine entered for a line, triggering a message that the state count must be a power of two. These constraints are part of the actual interface and reflect the simulation's qubit encoding requirements.

The graph display maps spatial positions to squares in lower-dimensional views and cubes in the three-dimensional view, with color indicating the probability of the walker occupying each position. A numerical colorbar accompanies the plot, while a slider below it selects the step to display, allowing users to move backward and forward through the walk and compare distributions. Figure 5 shows step two of a walk on a 4×4×44\times4\times4 cube with 64 possible positions. The screenshot uses a yellow-to-red probability scale and places colored cubes within a three-dimensional coordinate frame, preserving the positions' spatial arrangement instead of flattening the result into a conventional distribution chart. The slider exposes successive snapshots; the paper does not demonstrate direct manipulation of individual amplitudes, phase inspection, or simultaneous comparison panels.

The reproduced Figure 5 is an application output screenshot from the paper. It illustrates the principal spatial encoding and step-selection interaction.

Educational scenarios, evidence, and contributions

The paper proposes two teaching scenarios rather than reporting a user evaluation. In “blind usage,” students explore the controls alone or in groups, infer how dimension and position count affect the plot, and then examine why particular positions are colored. The authors suggest starting with the initial plot, which contains one occupied position, before introducing the colorbar, probabilities, and formal notation. They acknowledge that the probability display may be the most difficult part for beginners and recommend supporting it with instruction either before or after exploratory use.

For classroom demonstration, an educator can configure a four-position line and a two-step walk, show the initial occupied position, and then show the two adjacent positions with equal probability after the first step. The intended use is to connect the visible spread of position probability with a discussion of superposition and subsequently with the changes caused by interference. The paper supplies screenshots and an implementation description, but no controlled learner study, participant sample, measured learning gain, accessibility evaluation, comparative usability experiment, or quantitative runtime benchmark. Consequently, its educational benefits are design intentions and plausible use cases, not experimentally established outcomes.

The main contribution is the implemented integration of constrained walk configuration, a spatial probability representation, and access to every simulated step through a simple graphical interface. Its accompanying pedagogical contribution is an explanation of how instructors might connect these views to foundational quantum concepts. The authors explicitly position the application as a supplement to deeper explanations, which limits how strongly the interface alone can be credited with teaching the underlying theory.

Limitations and future directions

The authors report that large numbers of states or steps can take multiple minutes to load and state a maximum of 32 qubits for the simulator used in their implementation. This is a reported limitation of the 2023 system, not a demonstrated performance threshold for current simulators. The paper also explains why simulated state access is useful for displaying intermediate probabilities; it does not implement a hardware-based procedure for estimating those distributions. At publication, the application was available through its GitHub repositories but had not yet been deployed as the public website the authors envisaged. The intended programming-free learner experience therefore depended on completing that deployment or arranging access to the running application.

The three-dimensional walk has a specific directional bias. Six spatial directions must be represented using a direction register with eight basis states, and the implementation maps the two extra states to left and right again. This increases the probabilities associated with those directions; the instructions panel informs users of the behavior. The cubic display should therefore not be interpreted as a demonstration of an unbiased six-direction coin.

Future extensions discussed in the paper include another boundary rule under which a walker attempting to leave the space stays at its current position, rather than wrapping around. The authors suggest implementing this with additional Toffoli gates and potentially more qubits. They also discuss non-regular graphs, which require direction operators adapted to varying vertex degrees, particularly when the degree is not a power of two. These are proposed extensions with implementation challenges, not completed features. The paper's broader open issue is establishing how effectively its visual exploration supports learning, since the presented educational scenarios have not been empirically evaluated.

Download .bib
@inproceedings{jordon_qwalkvis_2023,
  author = {Jordon, Addie and others},
  publisher = {IEEE},
  booktitle = {2023 {IEEE} {International} {Conference} on {Quantum} {Computing} and {Engineering} ({QCE})},
  doi = {10.1109/QCE57702.2023.20328},
  isbn = {979-8-3503-4323-6},
  month = sep,
  pages = {87--93},
  shorttitle = {{QWalkVis}},
  title = {{QWalkVis}: {Quantum} {Walks} {Visualization} {Application}},
  urldate = {2025-10-29},
  year = {2023},
}