Several research groups are giving special attention to quantum walks recently, because this research area have been used with success in the development of new efficient quantum algorithms. A general simulator of quantum walks is very important for the development of this area, since it allows the researchers to focus on the mathematical and physical aspects of the research instead of deviating the efforts to the implementation of specific numerical simulations. In this paper we present QWalk, a quantum walk simulator for one- and two-dimensional lattices. Finite two-dimensional lattices with generic topologies can be used. Decoherence can be simulated by performing measurements or by breaking links of the lattice. We use examples to explain the usage of the software and to show some recent results of the literature that are easily reproduced by the simulator. Program summary Program title: QWalk Catalogue identifier: AEAX_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEAX_v1_0.html Program obtainable from: CPC Program Library, Queen's University, Belfast, N. Ireland Licensing provisions: GNU General Public Licence No. of lines in distributed program, including test data, etc.: 10 010 No. of bytes in distributed program, including test data, etc.: 172 064 Distribution format: tar.gz Programming language: C Computer: Any computer with a C compiler that accepts ISO C99 complex arithmetic (recent versions of GCC, for instance). Pre-compiled Windows versions are also provided Operating system: The software should run in any operating system with a recent C compiler. Successful tests were performed in Linux and Windows RAM: Less than 10 MB were required for a two-dimensional lattice of size 201 × 201 . About 400 MB, for a two-dimensional lattice of size 1601 × 1601 Classification: 16.5 Nature of problem: Classical simulation of discrete quantum walks in one- and two-dimensional lattices. Solution method: Iterative approach without explicit representation of evolution operator. Restrictions: The available amount of RAM memory imposes a limit on the size of the simulations. Unusual features: The software provides an easy way of simulating decoherence through detectors or random broken links. In the two-dimensional simulations it also allows the definition of permanent broken links, besides calculation of total variation distance (from the uniform and from an approximate stationary distribution) and the choice between two different physical lattices. It also provides an easy way of performing measurements on specific sites of the 2D lattice and the analysis of observation screens. In one-dimensional simulations it allows the choice between three different lattices. Both one- and two-dimensional simulations facilitates the generation of graphics by automatically generating gnuplot scrips. Additional comments: • An earlier version of QWalk was first presented in [1]. • The simulator generates gnuplot scripts that can be used to make graphics of the output data. • Several examples of input files are provided. Running time: The simulation of 100 steps for a two-dimensional lattice of size 201 × 201 took less than 2 seconds on a Pentium IV 2.6 GHz with 512 MB of RAM memory, 512 KB of cache memory and under Linux. It also took about 15 minutes for a lattice of size 1601 × 1601 on the same computer. Optimization option -O2 was used during compilation for these tests.