Qulacs: a fast and versatile quantum circuit simulator for research purpose
Paper · 2021 · Yasunari Suzuki, Yoshiaki Kawase, Yuya Masumura et al.
Summary
Quantum computing research depends on classical simulation. Researchers need ideal answers against which to check experiments, access to quantum states that devices cannot directly reveal, and a way to study errors under controlled conditions. The obstacle is cost: a general quantum circuit becomes exponentially harder to simulate as its qubit count grows. Qulacs addresses the practical side of that problem. It does not remove exponential scaling; it makes the work inside that scaling substantially more efficient while supporting the operations researchers need.
The paper presents a quantum circuit simulator built around explicit state evolution. Qulacs stores a quantum state as either a state vector or a density matrix, then updates it as operations are applied. Its scope extends beyond ideal, reversible gates. It also handles noisy transformations, measurements, recorded classical outcomes, and operations whose execution depends on those outcomes. This combination matters because research workloads differ: some repeatedly evaluate small circuits while varying parameters, whereas others push a single simulation towards the available memory limit.
The central engineering argument is that different workloads encounter different bottlenecks. Small simulations can spend much of their time crossing an interface or launching a function. Larger simulations can be limited by arithmetic throughput or by the rate at which state data moves through memory. Qulacs addresses these regimes separately: it keeps core calls lightweight, exploits the mathematical structure of gates, uses vector instructions and multiple CPU threads, supports GPU execution, and combines suitable gates to reduce repeated passes over a state.
The experiments connect those design choices to observable behavior. Calling the C++ implementation through Python adds about 0.3 μs, enough to matter below 10 qubits; direct C++ use can be about seven times faster for small cases. GPU execution has an overhead of about 10 μs, so its advantage emerges on larger workloads. Circuit optimization helps when its preparation cost is recovered during execution, and the best strategy depends on circuit structure and hardware. Comparisons with other simulators place Qulacs among the fastest packages in several tested settings, particularly for small circuits, while also showing conditions in which competitors perform better. The result is a case for a versatile, carefully optimized research backend, supported by conditional benchmark findings rather than a claim of universal superiority.
Interesting ideas
Preserve structure through execution. A diagonal gate, a controlled transformation, and an arbitrary dense matrix can all describe valid state updates, but they offer different computational opportunities. Qulacs retains those distinctions and supplies specialized execution paths. This avoids paying for generality when the operation already contains useful restrictions. The broader lesson applies to numerical software and compilers: an intermediate representation should keep information that can reduce work later. Converting everything immediately into the most general representation can erase the very properties an optimizer needs.
Treat overhead as a workload property. The authors regard repeated small simulations as a central use case, so fixed costs receive explicit attention. A fast numerical kernel does not guarantee a fast application when each invocation performs little work. This principle transfers to systems that repeatedly score small objects, traverse short structures, or execute compact transformations. Measure the complete call path, including language boundaries and temporary allocation. Then decide whether the important improvement belongs inside the arithmetic loop, around the interface, or in the way operations are grouped.
Trade arithmetic for fewer memory passes. Qulacs can multiply neighboring gate matrices together before touching the full state. The combined operation may require more arithmetic, yet finish sooner because it avoids moving the large state repeatedly. This is useful whenever the main data structure is much larger than the instructions applied to it. The important decision is not simply whether fusion reduces operation count. It is whether the extra computation costs less than the memory traffic it removes on the hardware that will run the workload.
Choose parallelism by workload size. Qulacs does not assume that more threads always help. It disables multithreading for sufficiently small updates because coordination can exceed the work saved. The threshold depends on the gate category and the number of affected qubits. A reusable design principle follows: parallel execution should be an implementation choice informed by task size, not an unconditional feature switch. Systems with both tiny requests and large batches can benefit from keeping a cheap sequential path alongside a parallel path.
Account for preparation separately. The circuit experiments distinguish execution after optimization from execution including optimization. That distinction changes which strategy looks attractive. Heavy optimization can improve a circuit’s eventual execution while failing to repay its own cost when the circuit is used only briefly. This lesson applies to compilation, indexing, caching, and other forms of preprocessing. Report both the prepared workload’s speed and the cost of preparing it, then relate the tradeoff to expected reuse.
Keep a narrow core beneath expressive interfaces. Qulacs separates low-level state operations, object-oriented circuit construction, and support for parameterized circuits. This lets researchers express varied experiments while the central numerical routines remain focused. The same architecture can help software that needs both understandable interfaces and predictable execution. The boundary should carry enough information for specialized processing without forcing every call through unrelated orchestration. The paper’s backend integrations illustrate how a focused execution component can serve broader environments without implementing all their features itself.
Deep dive: Qulacs: a fast and versatile quantum circuit simulator for research purpose
Qulacs accelerates quantum circuit simulation with specialized gates, circuit fusion, parallel CPUs and GPUs. Explore its methods and benchmarks. · about 36 minutes to read
How Mova uses it
For Mova, the small transparent language system written in Rust, the strongest connection is software engineering. Qulacs concerns quantum states and circuit operations; it does not establish a quantum method for language processing. Its useful contribution to Mova is a way to reason about representation, execution cost, and evidence. These are possible adaptations of the paper’s design, not claims that Mova already contains Qulacs or has reproduced its benchmark results.
A concrete possibility is to retain explicit categories for operations instead of lowering every transformation immediately into a general callback. Qulacs gains speed because a diagonal transformation remains recognizable as diagonal, and a controlled gate retains its control information. Mova could apply the same principle wherever its language-processing operations have distinct behavior. If an operation reads a fixed part of a structure, updates a restricted region, or applies a simple mapping, an explicit representation could make that behavior visible both to the reader and to an execution engine.
That possibility fits transparency as well as speed. An operation with a named type can expose what it changes and which assumptions permit an optimized path. A general-purpose function may conceal those properties. The Qulacs paper does not prove that explicit operation types will improve Mova, but it gives a concrete reason to preserve useful semantic information until execution. Any adaptation would need to identify Mova’s actual operations and verify that specialization preserves their behavior.
Another possible use is to adopt the paper’s separation of fixed overhead, computation, and memory movement when measuring Rust components. Repeated work on small language structures could be sensitive to dispatch, allocation, or interface costs. Work on larger structures could instead be dominated by traversal and memory access. These are questions to measure, not performance characteristics established for Mova. Qulacs demonstrates why combining them into a single undifferentiated timing can lead an engineer toward the wrong optimization.
Operation fusion offers a further research direction. If Mova performs several compatible passes over the same structure, a combined traversal might avoid repeatedly loading and inspecting the same data. The analogy has a strict boundary: Qulacs combines mathematically defined gate actions, and its reordering rules depend on known commutation properties. Language-processing operations would require their own justification. A pass should only be combined or reordered when its dependencies and observable effects permit it.
The paper also suggests a useful reporting practice for a transparent system. An optimization should come with an account of its preparation cost, the workload on which it helps, and the conditions under which it stops helping. Mova could make those choices inspectable instead of presenting an optimization as universally beneficial. The immediate borrowing is therefore an experimental discipline: keep a simple execution path, preserve enough structure to explain alternatives, and use measurements to decide when additional machinery earns its cost.
The problem and its context
Why classical simulation remains necessary
The paper starts from a practical tension. Quantum hardware is improving, yet the work of understanding and developing it still requires classical calculations. A simulator can produce an ideal reference for an experiment, expose quantities unavailable through direct measurement, and let researchers vary error processes without depending on the behavior of a physical device.
These uses demand more than a device-facing interface. For an experimental comparison, a researcher may want the final state associated with an ideal circuit. For a theoretical analysis, the desired quantity may be a marginal probability or a transition amplitude. For error-correction research, the experiment may involve noisy operations, measurements, classical records, and subsequent decisions. The simulator must make these tasks expressible while keeping their repeated numerical execution affordable.
The authors distinguish workloads by how they consume resources. A variational calculation repeatedly changes circuit parameters and evaluates an objective. Its circuits can be relatively small, but the same execution path is exercised many times. A simulation intended to explore a large quantum system may instead use as many qubits as memory and time allow. The first workload places pressure on overhead; the second places pressure on the implementation of exponentially growing state updates.
Small noisy circuits receive particular attention. The paper mentions repeated simulations involving up to 10 qubits as a setting in which setup and surrounding interface work can become a substantial part of total runtime. This is why optimizing only a large-state kernel would leave an important research workload poorly served. The paper treats responsiveness on small tasks and throughput on large tasks as separate requirements.
Choosing a simulation strategy
Qulacs uses Schrödinger-style simulation: represent the evolving state explicitly, then apply each operation to that representation. This approach is straightforward to connect to general circuit operations and provides direct access to the resulting state. Its main restriction is the size of the representation that must be stored and updated.
The paper contrasts this choice with Feynman-style evaluation, which accumulates contributions from computational paths. That can reduce memory needs and is useful when the desired output is an individual amplitude. The difficulty shifts into the number of contributing paths, which can grow with both circuit width and the number of operations. The paper therefore does not describe this alternative as a general replacement for explicit state evolution.
Tensor-network approaches reorganize that calculation around the structure of a network. The authors explain their cost through tree-width, a graph property describing how closely the network resembles a tree. When that structural quantity remains small, simulation can be favorable even for circuits with many qubits. The paper identifies shallow circuits as an important setting for these methods.
The distinction is conditional rather than absolute. A circuit’s qubit count alone does not determine which approach is best. Depth, connectivity, structural restrictions, and available memory also matter. The authors argue that explicit state evolution is especially attractive when the state fits in memory and the circuit does not offer the special structure needed by an alternative. They also discuss a hybrid Schrödinger–Feynman strategy as relevant to large circuits with limited depth.
A separate family of methods exploits restricted gate sets. Circuits dominated by Clifford operations can sometimes be simulated by treating the remaining operations as a limited departure from an efficiently handled case. The paper identifies error-correction settings and fault-tolerant circuits with restricted non-Clifford resources as examples. It also notes that typical algorithmic circuits do not necessarily satisfy those restrictions. Qulacs consequently prioritizes broad operation support rather than relying on a particular easily simulated family.
Where Qulacs sits among existing software
The authors place Qulacs alongside several kinds of quantum software. Cirq and Qiskit provide environments associated with submitting quantum workloads and interacting with hardware-oriented workflows. PyQuil and PennyLane serve related needs. Q# is discussed in connection with higher-level abstractions and compilation tools. These comparisons establish why a package focused on execution can have a distinct role.
The paper also discusses simulators whose goals overlap more directly with Qulacs. Intel-QS and QuEST emphasize efficient state simulation, while ProjectQ and Yao provide additional examples of research-oriented environments. Qulacs’ claimed distinction is the combination of fast execution, low overhead on small tasks, broad quantum-operation support, and availability across common development environments.
Those priorities shape what the software does not attempt. Qulacs does not provide gate decomposition as a central feature. Instead, another environment can construct or transform a circuit and pass execution to Qulacs. The authors describe integrations and backend use as evidence that these responsibilities can be separated in practice.
The connection to GPU and parallel computing is therefore specific. Hardware acceleration is one part of the answer, alongside representation and interface design. A faster processor cannot remove an unnecessary language-boundary cost from a tiny call, and additional arithmetic capacity cannot by itself eliminate a memory-bandwidth bottleneck. The paper’s contribution is to connect these layers instead of treating acceleration as a single switch.
The method, step by step
Qulacs turns a circuit description into a sequence of state updates. The user selects a state representation, constructs operations, applies them directly or through a circuit object, and evaluates the quantities needed for the experiment. Underneath that interface, the implementation chooses execution paths according to operation structure, state size, and hardware.
From a research circuit to numerical results
The steps in order.
Separate the numerical core from experiment construction
The implementation has distinct layers. A C component handles allocation, state updates, and state-property calculations. A C++ component supplies objects for gates and circuits, making experiments easier to construct and modify. An additional component supports the treatment of circuit parameters as variables in a variational calculation.
The C++ layer can choose among implementations at runtime according to the number of qubits. This is important because the fastest path for a small state need not be the fastest path for a large one. Python access is provided through pybind11, while Eigen supports matrix handling and sparse representations. The authors report testing the presented features using GoogleTest and pytest.
This organization lets the numerical implementation remain close to the data while offering a more convenient interface for research. It also creates a measurable boundary: a Python call can be easier to use yet add a fixed cost compared with direct C++ execution. The paper later measures that cost rather than assuming the interface is free.
Represent and initialize the state
A common state interface supports both state vectors and density matrices. A state vector stores complex amplitudes for computational-basis configurations. A density matrix provides another representation needed for describing quantum states and their transformations. Qulacs attaches a variable-length array of classical integers to the state interface so that measurement outcomes can be recorded alongside the evolving quantum data.
The default state is the all-zero computational state:
|ψ⟩ = |0⟩⊗ⁿ
Here, |ψ⟩ denotes the quantum state, |0⟩ is the zero basis state of an individual qubit, ⊗ denotes a tensor product, and n is the total qubit count. The notation means that every qubit starts in that basis state.
Other initialization options include selecting a computational-basis configuration, supplying an explicit complex array, loading another state, or generating a random pure state. The examples also show copying a state, which matters when several operations must be compared from the same starting point.
Qubit indexing is explicit. In the written basis representation used by the examples, the rightmost position corresponds to the lowest-indexed qubit. This convention affects how array positions, gate targets, and measurement requests relate to one another. A simulator can perform correct arithmetic while producing misleading experiments if the user’s indexing assumptions differ from its own.
The state interface also exposes analytical operations. It can return amplitudes, calculate marginal probabilities, compute squared norms, take inner products, and sample measurement outcomes. Built-in calculations avoid forcing every analysis through an exported array. Sampling has its own resource cost: constructing a cumulative distribution temporarily requires an additional array of length 2ⁿ.
Define a basic operation
The basic gate abstraction is broader than an ideal unitary gate. Its action on a pure state is:
|ψ′⟩ = K|ψ⟩
Here, |ψ⟩ is the input state, |ψ′⟩ is the updated state, and K is a complex matrix describing the operation. K need not be unitary, so the abstraction can also represent operations used inside measurement and noise procedures.
For a density matrix, the corresponding action is:
ρ′ = KρK†
The symbols ρ and ρ′ denote the input and output density matrices. K† is the conjugate transpose of K. This expression describes the same basic operation in the density-matrix representation.
Written directly in terms of amplitudes, the pure-state update is:
ψ′ₓ = ∑ᵧ∈{0,1}ⁿ Kₓ,ᵧ ψᵧ
The symbols x and y identify n-bit computational-basis strings. ψᵧ is the input amplitude at y, ψ′ₓ is the output amplitude at x, and Kₓ,ᵧ is the matrix element connecting them. The summation ranges over the possible input strings.
That expression is general, but a typical circuit gate touches only a small subset of qubits. Qulacs exploits this locality instead of constructing and multiplying a full-system matrix for every gate.
Turn a local gate into repeated small updates
Let M be the list of qubits affected by a gate, and let m be the number of qubits in that list. The paper separates full-system indices into an unaffected portion and a target portion. The unaffected portion comes from:
B⁽⁰⁾ = {x ∈ {0,1}ⁿ | xᵢ = 0 for every i ∈ M}
Here, B⁽⁰⁾ contains full-length bit strings whose target positions are zero. The symbol i indexes a qubit, xᵢ is its bit value, M is the target list, and n remains the total qubit count. These strings enumerate settings outside the gate’s target positions.
The complementary target patterns come from:
B⁽¹⁾ = {x ∈ {0,1}ⁿ | xᵢ = 0 for every i ∉ M}
B⁽¹⁾ contains full-length strings whose non-target positions are zero. Its varying positions describe the configurations on which the local gate acts. A complete basis index can therefore be assembled from an element of each set.
Because the gate leaves non-target bits unchanged, its full matrix has the following restricted form:
Kₓ,ᵧ = Kₓ⁽¹⁾,ᵧ⁽¹⁾ δₓ⁽⁰⁾,ᵧ⁽⁰⁾
The superscripts identify the target and non-target parts of x and y. The symbol δ is the Kronecker delta: it is zero when the non-target configurations differ and unity when they match. The equation captures why unrelated parts of the state do not need to be mixed together.
The paper defines a mapping r that extracts target bits in their specified order, and an inverse mapping s that places a compact target pattern back into a full-length string. With that notation, the local gate matrix is:
K̃z,w = ⟨s(z)|K|s(w)⟩
K̃ is the gate matrix acting only on the target subsystem. The symbols z and w are m-bit target configurations, while s embeds either configuration into the full register with the other bits zero. The bracket expression selects the corresponding matrix element of K.
For each non-target setting, the update becomes:
ψ′ₓ⁽⁰⁾+s(z) = ∑w∈{0,1}ᵐ K̃z,w ψₓ⁽⁰⁾+s(w)
Here, x⁽⁰⁾ fixes the non-target positions, s(z) identifies an output target configuration, and s(w) identifies an input target configuration. The addition combines strings occupying disjoint positions. The sum now runs over target configurations rather than the entire register.
Collecting the relevant amplitudes into a temporary vector gives the compact operation:
|ψ̃′ₓ⁽⁰⁾⟩ = K̃|ψ̃ₓ⁽⁰⁾⟩
The temporary vector |ψ̃ₓ⁽⁰⁾⟩ contains amplitudes sharing the same non-target configuration. Its primed counterpart contains the updated values. Qulacs repeats this small matrix–vector multiplication over the 2ⁿ⁻ᵐ possible non-target settings.
This gives the central execution pattern: gather a local block, transform it, and write it back. The paper’s simple implementation example makes those stages visible. The optimized implementation improves how they are indexed, vectorized, parallelized, and placed in memory.
Understand the cost before optimizing it
For a dense gate matrix, arithmetic grows with both total state size and local gate size:
Ncom = O(2ⁿ⁺ᵐ)
Ncom denotes the arithmetic-operation count, n is the total number of qubits, m is the gate’s target count, and O expresses asymptotic growth. A larger local matrix increases work even when the full state size stays fixed.
When the small gate matrix remains in cache, the effective memory-operation count is:
Nmem = O(2ⁿ + 2²ᵐ)
Nmem denotes memory operations. The first term accounts for traversing state data, while the second accounts for the gate matrix. The authors focus on the common situation in which the gate acts on far fewer qubits than the full register, making state movement the dominant memory term.
The point is not that arithmetic and memory counts are interchangeable. They correspond to different hardware limits. A gate can become inexpensive in arithmetic terms while still requiring a substantial pass over the state.
Preserve useful gate structure
Qulacs supplies dense matrices as a general fallback, but also offers more specific representations. A controlled gate only acts when its control bits match a requested pattern. This permits the update to skip state regions that cannot change. Its arithmetic cost is:
Ncom = O(2ⁿ⁻ᵐᶜ⁺ᵐᵗ)
The symbol mᶜ denotes the number of control qubits, and mᵗ denotes the number of target qubits acted on by the controlled transformation. Ncom is the arithmetic count, with n again describing the full register.
Its memory cost is:
Nmem = O(2ⁿ⁻ᵐᶜ)
Here, Nmem counts the state-memory operations associated with the active control subspace. More control conditions can reduce the portion of the state that needs processing, although measured runtime can still be governed by implementation and bandwidth effects.
Sparse matrices provide another specialization by storing and processing only their non-zero elements. Diagonal gates need only scale amplitudes rather than mix arbitrary combinations. Reversible Boolean functions can be represented through permutations of basis indices. These cases avoid the full dense-matrix arithmetic implied by the general representation.
Pauli gates are constructed from products of elementary matrices. The elementary matrices are:
I = [1 0; 0 1]
I is the identity matrix, and the semicolon separates its rows. It preserves the components on which it acts.
X = [0 1; 1 0]
X exchanges the basis components. Its entries define the bit-flip action used by the corresponding gate.
Y = [0 −i; i 0]
Y exchanges components while applying complex factors. The symbol i is the imaginary unit.
Z = [1 0; 0 −1]
Z preserves one basis component and changes the sign of the other. Products of these elementary matrices describe Pauli operations across multiple qubits.
The paper also expresses a general unitary gate through Pauli terms:
K̃ = exp(i ∑P θP P)
K̃ is the local gate matrix, P ranges over Pauli products, θP is a real coefficient associated with each product, and exp denotes the matrix exponential. A Pauli rotation is the special case in which only the coefficient for a chosen Pauli product can be non-zero.
Diagonal, permutation, Pauli, and Pauli-rotation operations have specialized costs that scale with the full state rather than the dense local-matrix size in the same way. The implementation therefore benefits from being told what an operation is. The authors specifically recommend named constructors for operations with dedicated optimized update routines.
Represent noise and measurement through basic gates
A general physical transformation without a recorded measurement outcome can be represented by Kraus operators:
ρ′ = ∑ᵢ KᵢρKᵢ†
The density matrix ρ is transformed into ρ′. Each Kᵢ is a Kraus operator, i indexes the operators, and Kᵢ† is the conjugate transpose. Qulacs constructs this transformation from a collection of basic gates representing those operators.
For the transformation to preserve total probability, the operators satisfy:
∑ᵢ Kᵢ†Kᵢ = I
I denotes the identity on the relevant state space. This condition is part of the completely positive, trace-preserving transformation described by the paper.
When the state is represented by a vector, Qulacs instead samples an operator according to:
pᵢ = ‖Kᵢ|ψ⟩‖²
The symbol pᵢ is the probability of choosing operator Kᵢ, |ψ⟩ is the current state, and the squared norm measures the weight of the resulting unnormalized vector.
The chosen branch is normalized as follows:
|ψ⟩ ↦ Kᵢ|ψ⟩ / √pᵢ
The arrow indicates replacement of the current state. Dividing by √pᵢ restores normalization for the selected branch.
This distinction matters when interpreting an experiment. A density-matrix update combines the operator contributions, while a state-vector execution follows a sampled branch. A single sampled execution should therefore be understood according to that representation choice.
An instrument adds a classical record: it stores the selected operator’s index in the state’s classical register. An adaptive operation then evaluates a Boolean condition on those registers and applies its associated action only when the condition succeeds. Together these mechanisms support measurement-dependent feedback and feedforward.
The paper also supplies a probabilistic operation for cases in which the operation-selection distribution is known independently of the input state. It avoids calculating branch probabilities from the current amplitudes. The performance benefit comes from that independence. The relevant implementation lesson is to use a directly specified random choice when it correctly describes the intended process, rather than invoking a more general state-dependent mechanism.
Assemble circuits and evaluate observables
A circuit is an ordered collection of gates. It supports insertion, removal, inspection, copying, and sequential application to a state. A parameterized circuit additionally tracks selected rotation angles so that an external variational procedure can read and change them.
There is no training procedure in the simulator benchmarks. The paper describes an execution tool that can support repeated optimization elsewhere. Its parameter interface makes such experiments possible without claiming a particular optimizer, learned representation, or convergence result.
Physical quantities are represented as observables expanded in Pauli products:
O = ∑P αP P
O is the observable, P ranges over Pauli products, and αP is a real coefficient for each term. Qulacs can compute expectation values for a supplied state and transition amplitudes between states using this representation.
A Hamiltonian is treated as an energy observable. The software can construct a circuit approximating its time evolution through Trotter decomposition. For molecular calculations, the paper describes importing OpenFermion output after fermionic expressions have been converted into Pauli operators. These features connect state execution to quantities that researchers actually want to analyze.
Match execution to the bottleneck
The paper summarizes its performance reasoning with a lower-bound estimate:
Tgate ≥ Tover + max(Ncom / VFLOPS, Nmem / VBW)
Tgate is the time required for a gate update, and Tover is fixed overhead around that update. Ncom and Nmem count arithmetic and memory operations. VFLOPS describes arithmetic throughput, while VBW describes the rate at which complex values can move through memory. The maximum represents the slower resource when arithmetic and transfer can overlap.
This is an approximation for engineering decisions, not a complete prediction of every execution. Its value is explanatory. Reducing arithmetic is useful when arithmetic limits the update; it can do little when state transfer is already slower. Likewise, a high-throughput execution path may still lose on a small input because its fixed overhead is larger.
Qulacs uses hand-written AVX2 vectorization for selected updates. AVX2 handles 256-bit values, allowing operations on four double-precision real values, corresponding to two complex values, together. The implementation changes how loops are unrolled according to whether the necessary amplitudes already occupy adjacent memory locations.
Index generation also receives attention. The large outer collection of non-target indices is generated using bit operations as execution proceeds, while the smaller target-index collection is prepared before the loop. This avoids unnecessary enumeration work and provides a suitable outer loop for parallel execution.
OpenMP distributes that outer loop across threads. Each thread has its own temporary vector, while the prepared target-index data is shared for reading. Qulacs automatically falls back to a sequential implementation below empirically chosen thresholds, preserving the low-overhead path when a parallel launch would cost more than it saves.
Combine operations before traversing the state
Circuit optimization changes the balance between arithmetic and memory. For successive dense gates acting on qubit sets M₁ and M₂, separate execution has the arithmetic scale:
2ⁿ⁺|M₁| + 2ⁿ⁺|M₂|
The vertical bars denote the number of qubits in a set. M₁ and M₂ identify the qubits affected by the separate gates, and n is the full register size.
After merging, the arithmetic scale becomes:
2ⁿ⁺|M₁∪M₂|
The union M₁∪M₂ contains every qubit affected by either operation. The merged matrix can require more arithmetic because it acts over that combined set.
The memory-operation scales for separate execution and merged execution are, respectively:
2ⁿ⁺¹
This expression represents the state traffic associated with separate updates in the paper’s comparison. The exponent n reflects the full state.
2ⁿ
This expression represents the corresponding traffic after combining the operations into a single update. The reduction is useful when repeated state movement is the limiting cost.
The light optimizer greedily merges neighboring gates when one target set is contained in the other. The heavy optimizer can also use commutation information to bring compatible operations together, provided the merged target count stays within a chosen block size. Each gate carries information that supports those commutation checks.
Heavier optimization can discover more opportunities but consumes more preparation time. Some operations, including the parameterized gates and completely positive transformations discussed by the authors, cannot be merged by this process. Optimization is therefore selective and workload-dependent.
Place GPU data according to its role
For GPU execution, the full state resides in global memory. Smaller pieces used during an update are placed according to their size. Temporary vectors for gates affecting no more than four qubits are expected to use registers. For target counts from five through eleven, shared memory supports the required within-block cooperation. Larger temporary vectors use global memory.
Gate matrices follow a separate placement policy. Up to three target qubits, matrix entries can be passed in a way that lets the compiler place them in registers. Matrices for four or five target qubits use constant memory. Matrices for six or more use global memory.
These choices reflect different reuse patterns. The temporary state block changes as the simulation progresses, while the same gate matrix is reused across many updates. Placing both identically would ignore that difference.
Once a state is allocated on a selected GPU, its operations stay there unless it is explicitly transferred. Qulacs can assign independent tasks to different GPUs, but it does not distribute an individual state across multiple GPUs. That boundary is part of the execution design and an important limit on its scaling scope.
Experiments and results
What the benchmarks measure
The internal performance study uses Qulacs 0.2.0 through Python 3.8.5 on Ubuntu 20.04.1 LTS. CPU measurements use a workstation containing two Intel Xeon Platinum 8276 processors. Each processor has 28 physical cores, giving the reported machine a total of 56 physical cores. The authors compile the CPU implementation with GCC 9.3.0 and native-machine optimization settings.
The GPU measurements in that study use an NVIDIA Tesla V100 SXM2 32GB. Because of compatibility between the chosen CUDA environment and compiler, the GPU build uses GCC 8.4.0. These are implementation measurements on specified machines, not hardware-independent constants.
Python timings are collected with pytest, taking the minimum observed execution time across repeated runs. C++ timings use std::chrono. For the latter, the measurement repeats until accumulated execution reaches 1 second or the function has run 10³ times, then reports an average. The difference in measurement procedures matters when reading small-call comparisons.
The internal experiments cover individual gates, general quantum transformations, language-interface overhead, hardware acceleration, thread scaling, and circuit optimization. Their inputs are synthetic operations and constructed circuits. There is no corpus, labeled dataset, or train–test division; the central metric is execution time under controlled settings.
Fixed overhead and small workloads
The Python-versus-C++ comparison identifies about 0.3 μs of overhead when a call crosses from Python into C++. The authors report that this becomes material below 10 qubits. For sufficiently small updates, bypassing the Python interface can improve execution by about seven times.
GPU execution introduces about 10 μs of overhead. Its higher throughput therefore needs enough work to compensate for the launch cost. The following comparison reports the paper’s approximate fixed costs for these distinct call paths. It does not compare complete circuit times or imply that both paths perform the same surrounding work.
Approximate call overhead in Qulacs gate benchmarks
GPU launch overhead requires more work to amortize than the Python interface crossing.
The numbers
| System or setting | μs of reported overhead |
|---|---|
| Qulacs Python interface (this paper) | 0.3 |
| Qulacs GPU execution | 10 |
These measurements support a central design choice. A simulator can improve a large-state benchmark while making small repeated updates worse if it adds substantial orchestration to every call. Qulacs keeps a direct path available because the small-workload regime is an intended use case.
Individual gates reveal different bottlenecks
Dense gates become more expensive as their target count increases. However, the measured cases with m=1,2 are close in runtime. The authors explain this through specialized implementations and a shared memory bottleneck: both must move the state, and the additional local arithmetic is not what determines their execution time.
The measurements for diagonal, Pauli-rotation, and permutation operations support the predicted independence from target count in their specialized update costs. A separate optimization makes the diagonal case with m=1 faster than the other diagonal cases. The practical implication is that the constructor chosen by the user can affect execution, even when a dense matrix could express the same mathematical action.
Permutation operations also expose an interface issue. The example reversible Boolean function is supplied as Python code, so its repeated evaluation adds significant overhead. The authors expect direct C++ use to improve that case. This result cautions against attributing every timing difference to quantum-state arithmetic.
Controlled gates do not exhibit a clean runtime reduction as more controls are added, in spite of their favorable operation counts. Optimized implementations for particular named gates and limits on memory movement obscure the simple arithmetic expectation. Discontinuities at 17 and 22 qubits are attributed to the state outgrowing cache capacities.
General transformations cost more than simple random choice
The general-operation benchmark compares dense updates with completely positive, trace-preserving transformations, instruments, and probabilistic selection. The chosen random alternatives have a stated selection probability of 0.5. The instrument case uses measurement in the Z basis.
A probabilistic operation performs similarly to the dense update because the choice distribution is already known. The remaining work is chiefly selecting an operation and applying it. In contrast, the general transformation and instrument cases are about 10 times slower in the reported comparison.
The authors connect that slowdown to calculating branch probabilities and managing temporary storage. This is an explanatory result about the tested execution paths. It does not establish that every measurement or noisy process has a fixed slowdown independent of its representation and implementation.
SIMD, threads, and GPU execution
The acceleration comparison uses sequential execution without SIMD, sequential execution with SIMD, OpenMP execution with SIMD, and a GPU path. SIMD improves all the reported dense-gate cases relative to the corresponding non-SIMD path.
OpenMP becomes advantageous above approximately 14 total qubits for m=1,2, and above approximately 10 for m=3,4. The larger local matrices provide enough arithmetic work to justify parallel execution earlier. Qulacs automatically avoids the threaded path on smaller cases, so the reported behavior includes a change of implementation instead of a forced parallel launch at every size.
GPU execution gives substantial improvements for larger states, while its fixed overhead makes it less attractive on small ones. The paper’s evidence therefore favors conditional hardware selection. The relevant question is how much useful work an invocation supplies, rather than whether the hardware has a higher peak throughput.
Scaling across CPU threads
For the OpenMP analysis, the authors vary the available thread count from 1 to 56 and examine total qubit counts from n=15 through n=25. They report speedup behavior with standard errors and compare it with ideal linear scaling.
At n=15, improvement saturates around t=10 threads before additional threads make execution worse. The update contains too little useful work per thread to keep overcoming coordination cost. Larger states initially improve the situation by increasing the amount of work assigned to each thread.
At n=22, the behavior changes sharply. The paper reports a state size of 67 MB and an L3 cache capacity of 40 MB per processor. Distributing work across both processors lets the combined cache resources hold data that do not fit within the relevant single-processor capacity. The observed speedup can then exceed the linear reference because the effective memory behavior has changed.
Beyond that regime, the state no longer fits in cache, and traffic to main memory again limits performance. Extra threads primarily improve arithmetic capacity, so their benefit diminishes when memory transfer dominates.
Cross-simulator workload and measurement scope
The external comparison uses a different benchmark family from the circuit-optimizer study. Each random circuit alternates rotation layers and CNOT layers ten times, then ends with a rotation layer. A rotation layer contains RZ, RX, and RZ operations on every qubit. The CNOT pattern connects each qubit with its next neighbor using wraparound indexing.
The initial and final RZ operations identified by the authors as irrelevant to the chosen preparation and Z-basis measurement setting are removed. The measured task is producing the final state vector. Circuit construction time is excluded, while optimization settings are examined explicitly.
The CPU comparison uses a workstation with 24 physical cores and Intel Xeon E5-2687W v4 processors. The GPU comparison uses a Tesla V100 PCIe 32GB with a different host system. Calculations use double precision, with 128 bits for each complex value.
The comparison covers the stable software available as of November 2020, with a stated exception for Intel-QS because the selected repository lacked a stable release. The authors describe a benchmark framework derived from an existing quantum-benchmark project and provide their own benchmark-code repository. They also explain interface and installation choices that affect the interpretation of results.
What the cross-simulator comparison establishes
In sequential CPU execution, Qulacs benefits from avoiding optimization for the smallest circuits. Optimization becomes preferable above 7 qubits in the tested workload. The authors report that optimized Qiskit and Yao can exceed unoptimized Qulacs, illustrating how circuit-level transformations can outweigh differences between low-level update routines.
With multiple CPU threads, Qulacs is fastest in the small-qubit regime described by the paper. At larger sizes, several unoptimized implementations approach similar times. The explanation is shared memory traffic: when all implementations must move comparable state data through the same kind of bottleneck, differences in arithmetic execution become less decisive.
Within Qulacs, circuit optimization helps above 9 qubits in the multithreaded comparison. Qiskit performs better than Qulacs above 21 qubits in the optimized comparison reported by the authors. This result places a clear boundary around the broad claim of competitive performance.
For GPU execution, optimized Qulacs consistently improves on its unoptimized path in the tested workload. The authors attribute this to the relatively large GPU-call overhead, which makes the additional circuit-processing cost less significant. Heavy optimization with a block size of four is the best choice they found in that setting, exceeding the light strategy above 19 qubits.
The unusual heavy-optimization result at n=4 has a structural explanation: the entire circuit can be merged into an operation executed with a single GPU call. It is a useful example of how an optimizer can change the number of launches, rather than merely accelerate arithmetic inside an otherwise identical execution.
What the ablations show
The paper uses controlled implementation comparisons rather than a single ablation table: it changes interfaces, execution features, thread placement, and circuit structure to identify where performance comes from.
Interface costs are visible when useful work is small
Comparing Python access with direct C++ execution isolates a fixed boundary cost. The gap matters most when a state update finishes quickly. As state size grows, exponentially increasing numerical work makes that same boundary a smaller part of the total.
This analysis supports the authors’ concern for small repeated tasks. It also limits how one should interpret the measured benefit of direct C++. The paper does not suggest that avoiding Python produces the same multiplicative improvement at every size. The improvement is largest in the regime where the interface cost is a substantial fraction of the call.
The permutation-gate example adds a related lesson. A user-supplied Python function can introduce work inside an update path, beyond the initial interface crossing. A convenient high-level extension mechanism can therefore have a different cost profile from a named operation implemented entirely in compiled code.
Hardware features act on different parts of the cost
The SIMD comparison shows that improving instruction-level execution helps the tested dense updates. The OpenMP comparison shows that increasing thread-level parallelism requires enough work to offset coordination. The GPU comparison shows a similar tradeoff at a larger execution boundary.
Together, these comparisons support the cost decomposition introduced by the authors. No single feature eliminates all terms. Faster arithmetic leaves memory movement in place. Higher memory bandwidth still comes with invocation costs. Reducing invocation count through circuit merging can therefore remain useful even after individual updates are highly optimized.
The results also explain why an automatic sequential fallback is valuable. A benchmark that forces every input through the threaded implementation would measure an avoidable policy mistake along with the parallel implementation itself. Qulacs treats choosing the path as part of the optimization.
Thread affinity tests the cache explanation
The thread-placement experiment is particularly informative because it changes a suspected cause. The initial placement allows threads to spread across processor sockets, making both processors’ cache resources available early. That setting produces the striking behavior at n=22.
The alternative uses OMP_PLACES=cores together with OMP_PROC_BIND=close. Threads remain concentrated on a processor until the available physical cores there are exhausted. Under that arrangement, the earlier super-linear improvement disappears while execution remains confined to that processor.
The sharp gain returns when t>28 permits use of the other processor. This agrees with the explanation based on cache capacity. The controlled placement change makes the argument stronger than simply noticing an unusual curve and attributing it to caching after the fact.
The practical lesson is to examine what changes when adding a thread. It may add arithmetic capacity, expose another memory resource, or alter data placement. A speedup curve alone does not distinguish those mechanisms.
Optimization quality and optimization cost are separate
The light-versus-heavy comparison holds the circuit family and execution configuration fixed while changing the optimizer. In the general random-circuit workload, heavy optimization produces slightly faster execution when its own runtime is excluded.
Once preparation is included, that advantage disappears. The heavier search has improved the executable circuit without improving the complete task enough to justify its cost. The authors therefore favor light optimization, or sometimes no optimization, when the prepared circuit will be used only a few times.
This is not evidence that heavy optimization is ineffective. It shows that the evaluation boundary determines which benefit is relevant. A researcher reusing an unchanged optimized circuit has a different cost structure from a researcher continuously constructing fresh circuits.
Commuting circuits reveal the heavy optimizer’s purpose
The authors then change the circuit structure. They replace the RZ, RX, RZ sequence with an RZ rotation, producing a family whose operations commute in the Z basis. This gives the heavy optimizer substantially more freedom to bring mergeable operations together.
In that setting, the circuit can be reduced to constant depth, and heavy optimization helps even when preparation time is counted. The controlled change therefore identifies a structural condition under which the additional search pays for itself.
The comparison is more useful than a general ranking of optimizers. It explains why rankings change. Heavy optimization is designed to exploit commutation, so a circuit family rich in commuting operations is a direct test of that capability. The general random family offers fewer of those opportunities.
Representation affects cost as much as hardware
The gate and map comparisons act as additional analyses of representation choices. Specialized diagonal and Pauli-related updates avoid the local dense-matrix cost. Direct probabilistic selection avoids calculating state-dependent branch weights. Named compiled gates avoid overhead associated with more general extension mechanisms.
These findings do not imply that the cheapest representation is always available. It must describe the intended operation correctly. The reusable conclusion is to preserve valid structure and expose it to execution, then measure whether the specialized path helps in the relevant state-size regime.
Limitations
The authors’ stated computational and feature boundaries
The authors are explicit about the fundamental scaling limit. General full-state simulation remains exponentially expensive as qubit count increases. Vectorization, threading, GPU execution, and gate merging improve constants and practical reach; they do not turn arbitrary circuits into efficiently simulatable objects.
Memory capacity is consequently a central restriction. The state must fit in the selected execution environment, and temporary structures can increase demand. The sampling procedure’s additional cumulative array is an example of a cost that sits outside the state representation itself.
The GPU implementation does not spread an individual state across several devices. Independent tasks can run on separately selected GPUs, but that is different from enlarging the memory available to a single simulation. Comparisons with software designed for distributed execution therefore address only part of those systems’ intended use.
The authors also state that gate decomposition belongs outside Qulacs’ focus. Its role as a backend can be valuable precisely because other software supplies higher-level construction and compilation. That division means the simulator should not be assessed as though it independently provides every stage of a complete quantum-programming workflow.
Circuit optimization has its own feature boundary. The discussed merging process cannot combine every supported operation. Parameterized gates and the stated general transformations are examples. A workflow built heavily around those operations may therefore receive less benefit from the fusion techniques demonstrated on suitable basic gates.
Finally, the conclusion describes specialized simulation for Clifford circuits and matchgates as future work. Those efficient methods should not be treated as demonstrated capabilities of the implementation evaluated in the paper.
The authors’ stated benchmark qualifications
The external comparison is not conducted under perfectly identical software paths. The authors describe specific adjustments because the packages have different interfaces, goals, and execution architectures. These notes are part of the evidence, not incidental details.
For Qiskit Aer, the benchmark removes compilation and job-submission overhead and times the core execution function directly. The authors explicitly distinguish those measurements from the longer path through qiskit.execute. This choice gives a more focused comparison of simulation execution, while limiting conclusions about complete user-facing workflows.
QuEST is measured through a Python interface that did not allow the authors to enable its threaded and GPU paths. Qibo’s installed TensorFlow build lacks AVX2 support, which the authors say could improve with a different installation. Those restrictions mean an absent or slower result should not be read as a complete assessment of the underlying package’s capability.
The study omits QCGPU and qsim because their supported precision did not match the double-precision benchmark. Their exclusion protects the chosen precision comparison but leaves the benchmark incomplete as a survey of all available execution options.
The authors warn that versions, compilers, circuit structure, device state, and environment affect timings. They also report fluctuations of a few percent in threaded and GPU measurements. Differences of that size do not support a meaningful ranking in those settings.
What a careful reader should additionally keep separate
The external workload is a particular family of ideal random circuits. It exercises repeated rotations and entangling operations, then requests a final state vector. That is informative for the reported comparison, but it does not establish the same ordering for adaptive circuits, error-correction experiments, or every research workload mentioned as a motivation.
Broad operation support and broad performance leadership are separate claims. The implementation can express instruments and feedback, yet the cross-simulator ranking is not a comprehensive benchmark of those features. The internal measurements of general operations partly address this gap, but they use selected transformations rather than an exhaustive collection of practical noise processes.
The paper’s performance explanation is deliberately approximate. Its time bound organizes overhead, arithmetic, and memory transfer, but does not fully describe cache replacement, scheduling, compiler choices, or synchronization. The thread-affinity experiment shows why those details can change the observed regime.
The distinction between state-vector trajectories and density-matrix evolution also requires care. Supporting both does not make their costs or outputs interchangeable. An experiment must choose the representation appropriate to the quantity being estimated and account for any sampling procedure it uses.
Another limit concerns the scope of the application claims. The paper explains why fast simulation can support variational calculations, experimental reference generation, and error-correction research. It does not use the benchmark suite to demonstrate a new physical discovery, an improved error-correcting code, or a better variational objective.
For Mova, the boundary is more pronounced. The transferable content is a set of implementation and measurement ideas. Nothing in the experiments establishes an improvement in language processing, and the quantum gate algebra does not automatically justify reordering language operations. Such adaptations remain proposals requiring their own correctness arguments and measurements.
What came after
The paper does not establish a subsequent research sequence, so later developments cannot be assigned to it on this evidence. What it does document is an existing pattern of use: Qulacs was already serving as an execution component for other research environments and supporting published quantum-computing studies.
The authors describe backend connections involving Cirq and PennyLane. They also identify use through t|ket⟩ and Tequila, alongside other services. These examples show how the package’s focused role can fit into a larger workflow: one component provides abstractions or circuit preparation, while Qulacs performs the state evolution. They establish integration and adoption, rather than a later experimental finding about the method.
The application references likewise indicate breadth of use already recognized by the authors. They include work on variational calculations and quantum chemistry, as well as fault-tolerant error mitigation. The simulator paper does not provide enough detail about each study to attribute a particular optimization, result, or scientific conclusion to Qulacs itself.
The authors’ explicit next direction is more specialized execution. They propose adding efficient methods for restricted circuit families, including Clifford circuits and matchgates. That would complement the general explicit-state approach by recognizing cases where stronger mathematical structure permits a different algorithm.
The enduring research question is how to combine those choices coherently. Qulacs demonstrates a successful pattern within its measured scope: preserve operation structure, choose an execution path suited to the workload, and assess preparation together with execution. Extending that pattern to additional simulation strategies is a stated direction, while its later realization remains outside the evidence reported by the paper.
Cite
Cite as Yasunari Suzuki, Yoshiaki Kawase, Yuya Masumura, Yuria Hiraga, Masahiro Nakadai, Jiabao Chen, Ken M. Nakanishi, Kosuke Mitarai, Ryosuke Imai, Shiro Tamiya, Takahiro Yamamoto, Tennin Yan, Toru Kawakubo, Yuya O. Nakagawa, Yohei Ibe, Youyuan Zhang, Hirotsugu Yamashita, Hikaru Yoshimura, Akihiro Hayashi and Keisuke Fujii. 2021. Qulacs: a fast and versatile quantum circuit simulator for research purpose. Quantum.
@inproceedings{suzuki2021qulacs,
title = {{Qulacs: a fast and versatile quantum circuit simulator for research purpose}},
author = {Yasunari Suzuki, Yoshiaki Kawase, Yuya Masumura, Yuria Hiraga, Masahiro Nakadai, Jiabao Chen, Ken M. Nakanishi, Kosuke Mitarai, Ryosuke Imai, Shiro Tamiya, Takahiro Yamamoto, Tennin Yan, Toru Kawakubo, Yuya O. Nakagawa, Yohei Ibe, Youyuan Zhang, Hirotsugu Yamashita, Hikaru Yoshimura, Akihiro Hayashi and Keisuke Fujii},
booktitle = {Quantum},
year = {2021},
doi = {10.22331/q-2021-10-06-559},
eprint = {2011.13524},
archivePrefix = {arXiv},
url = {https://doi.org/10.22331/q-2021-10-06-559}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/suzuki-2021-qulacs-fast-versatile-quantum-circuit/
References
- Frank Arute, Kunal Arya, Ryan Babbush, Dave Bacon, Joseph C Bardin, Rami Barends, Rupak Biswas, Sergio Boixo, Fernando GSL Brandao, David A Buell, et al. Quantum supremacy using a programmable superconducting processor. Nature, 5740 (7779):0 505–510, 2019. . OpenAlex ↗ · Scholar ↗
- Laird Egan, Dripto M Debroy, Crystal Noel, Andrew Risinger, Daiwei Zhu, Debopriyo Biswas, Michael Newman, Muyuan Li, Kenneth R Brown, Marko Cetina, et al. Fault-tolerant operation of a quantum error-correction code. arXiv preprint arXiv:2009.11482, 2020. OpenAlex ↗ · Scholar ↗
- Qulacs website. https://github.com/qulacs/qulacs, 2018. OpenAlex ↗ · Scholar ↗
- Gaël Guennebaud, Benoît Jacob, et al. Eigen v3. http://eigen.tuxfamily.org, 2010. OpenAlex ↗ · Scholar ↗
- Wenzel Jakob, Jason Rhinelander, and Dean Moldovan. pybind11 – seamless operability between c++11 and python. https://github.com/pybind/pybind11, 2017. OpenAlex ↗ · Scholar ↗
- GoogleTest. https://github.com/google/googletest, 2019. OpenAlex ↗ · Scholar ↗
- Holger Krekel, Bruno Oliveira, Ronny Pfannschmidt, Floris Bruynooghe, Brianna Laugher, and Florian Bruhin. pytest x.y. https://github.com/pytest-dev/pytest, 2004. OpenAlex ↗ · Scholar ↗
- Sergio Boixo, Sergei V Isakov, Vadim N Smelyanskiy, and Hartmut Neven. Simulation of low-depth quantum circuits as complex undirected graphical models. arXiv preprint arXiv:1712.05384, 2017. OpenAlex ↗ · Scholar ↗
- Igor L Markov and Yaoyun Shi. Simulating quantum computation by contracting tensor networks. SIAM Journal on Computing, 380 (3):0 963–981, 2008. . URL https://doi.org/10.1137/050644756. OpenAlex ↗ · Scholar ↗
- Igor L Markov, Aneeqa Fatima, Sergei V Isakov, and Sergio Boixo. Quantum supremacy is both closer and farther than it appears. arXiv preprint arXiv:1807.10749, 2018. OpenAlex ↗ · Scholar ↗
- Sergey Bravyi and David Gosset. Improved classical simulation of quantum circuits dominated by clifford gates. Phys. Rev. Lett., 116:0 250501, Jun 2016. . URL https://link.aps.org/doi/10.1103/PhysRevLett.116.250501. OpenAlex ↗ · Scholar ↗
- Sergey Bravyi, Dan Browne, Padraic Calpin, Earl Campbell, David Gosset, and Mark Howard. Simulation of quantum circuits by low-rank stabilizer decompositions. Quantum, 3:0 181, September 2019. ISSN 2521-327X. . URL https://doi.org/10.22331/q-2019-09-02-181. OpenAlex ↗ · Scholar ↗
- Quantum AI team and collaborators. Cirq, October 2020a. URL https://doi.org/10.5281/zenodo.4062499. OpenAlex ↗ · Scholar ↗
- Héctor Abraham et al. Qiskit: An open-source framework for quantum computing, 2019. URL https://doi.org/10.5281/zenodo.2562110. OpenAlex ↗ · Scholar ↗
- Robert S Smith, Michael J Curtis, and William J Zeng. A practical quantum instruction set architecture. arXiv preprint arXiv:1608.03355, 2016. OpenAlex ↗ · Scholar ↗
- Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, Carsten Blank, Keri McKiernan, and Nathan Killoran. Pennylane: Automatic differentiation of hybrid quantum-classical computations. arXiv preprint arXiv:1811.04968, 2018. OpenAlex ↗ · Scholar ↗
- Krysta Svore, Alan Geller, Matthias Troyer, John Azariah, Christopher Granade, Bettina Heim, Vadym Kliuchnikov, Mariia Mykhailova, Andres Paz, and Martin Roetteler. Q#: Enabling scalable quantum computing and development with a high-level dsl. RWDSL2018, New York, NY, USA, 2018. Association for Computing Machinery. ISBN 9781450363556. . URL https://doi.org/10.1145/3183895.3183901. OpenAlex ↗ · Scholar ↗
- Benjamin Villalonga, Sergio Boixo, Bron Nelson, Christopher Henze, Eleanor Rieffel, Rupak Biswas, and Salvatore Mandrà. A flexible high-performance simulator for verifying and benchmarking quantum circuits implemented on real hardware. npj Quantum Information, 50 (1):0 86, Oct 2019. ISSN 2056-6387. . URL https://doi.org/10.1038/s41534-019-0196-1. OpenAlex ↗ · Scholar ↗
- Chase Roberts, Ashley Milsted, Martin Ganahl, Adam Zalcman, Bruce Fontaine, Yijian Zou, Jack Hidary, Guifre Vidal, and Stefan Leichenauer. Tensornetwork: A library for physics and machine learning. arXiv preprint arXiv:1905.01330, 2019. OpenAlex ↗ · Scholar ↗
- Matthew Fishman, Steven R White, and E Miles Stoudenmire. The ITensor Software Library for Tensor Network Calculations. arXiv preprint arXiv:2007.14822, 2020. OpenAlex ↗ · Scholar ↗
- Benjamin Villalonga, Dmitry Lyakh, Sergio Boixo, Hartmut Neven, Travis S Humble, Rupak Biswas, Eleanor G Rieffel, Alan Ho, and Salvatore Mandrà. Establishing the quantum supremacy frontier with a 281 pflop/s simulation. Quantum Science and Technology, 50 (3):0 034003, 2020. . URL https://doi.org/10.1088/2058-9565/ab7eeb. OpenAlex ↗ · Scholar ↗
- Koen De Raedt, Kristel Michielsen, Hans De Raedt, Binh Trieu, Guido Arnold, Marcus Richter, Th Lippert, Hiroshi Watanabe, and Nobuyasu Ito. Massively parallel quantum computer simulator. Computer Physics Communications, 1760 (2):0 121–136, 2007. . URL https://doi.org/10.1016/j.cpc.2006.08.007. OpenAlex ↗ · Scholar ↗
- Hans De Raedt, Fengping Jin, Dennis Willsch, Madita Willsch, Naoki Yoshioka, Nobuyasu Ito, Shengjun Yuan, and Kristel Michielsen. Massively parallel quantum computer simulator, eleven years later. Computer Physics Communications, 237:0 47–61, 2019. . URL https://doi.org/10.1016/j.cpc.2018.11.005. OpenAlex ↗ · Scholar ↗
- Thomas Häner and Damian S Steiger. 0.5 petabyte simulation of a 45-qubit quantum circuit. In Proceedings of the International Conference for High Performance Computing, Networking, Storage and Analysis, pages 1–10, 2017. . URL https://doi.org/10.1145/3126908.3126947. OpenAlex ↗ · Scholar ↗
- Gian Giacomo Guerreschi, Justin Hogaboam, Fabio Baruffa, and Nicolas PD Sawaya. Intel Quantum Simulator: A cloud-ready high-performance simulator of quantum circuits. Quantum Science and Technology, 50 (3):0 034007, 2020. . URL https://doi.org/10.1088/2058-9565/ab8505. OpenAlex ↗ · Scholar ↗
- Mikhail Smelyanskiy, Nicolas PD Sawaya, and Alán Aspuru-Guzik. qHiPSTER: The quantum high performance software testing environment. arXiv preprint arXiv:1601.07195, 2016. OpenAlex ↗ · Scholar ↗
- Nader Khammassi, Imran Ashraf, Xiang Fu, Carmen G Almudever, and Koen Bertels. QX: A high-performance quantum computer simulation platform. In Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, pages 464–469. IEEE, 2017. . URL https://doi.org/10.23919/DATE.2017.7927034. OpenAlex ↗ · Scholar ↗
- Nader Khammassi, Imran Ashraf, J v Someren, Razvan Nane, AM Krol, M Adriaan Rol, L Lao, Koen Bertels, and Carmen G Almudever. OpenQL: A portable quantum programming framework for quantum accelerators. arXiv preprint arXiv:2005.13283, 2020. OpenAlex ↗ · Scholar ↗
- Damian S Steiger, Thomas Häner, and Matthias Troyer. ProjectQ: an open source software framework for quantum computing. Quantum, 2:0 49, 2018. . URL https://doi.org/10.22331/q-2018-01-31-49. OpenAlex ↗ · Scholar ↗
- Tyson Jones, Anna Brown, Ian Bush, and Simon C Benjamin. QuEST and High Performance Simulation of Quantum Computers. Scientific reports, 90 (1):0 1–11, 2019. . URL https://doi.org/10.1038/s41598-019-47174-9. OpenAlex ↗ · Scholar ↗
- Quantum AI team and collaborators. qsim, September 2020b. URL https://doi.org/10.5281/zenodo.4023103. OpenAlex ↗ · Scholar ↗
- Xiu-Zhe Luo, Jin-Guo Liu, Pan Zhang, and Lei Wang. Yao.jl: Extensible, Efficient Framework for Quantum Algorithm Design. Quantum, 4:0 341, October 2020. ISSN 2521-327X. . URL https://doi.org/10.22331/q-2020-10-11-341. OpenAlex ↗ · Scholar ↗
- Adam Kelly. Simulating quantum computers using OpenCL. arXiv preprint arXiv:1805.00988, 2018. OpenAlex ↗ · Scholar ↗
- Stavros Efthymiou, Sergi Ramos-Calderer, Carlos Bravo-Prieto, Adrián Pérez-Salinas, Diego García-Martín, Artur Garcia-Saez, José Ignacio Latorre, and Stefano Carrazza. Qibo: a framework for quantum simulation with hardware acceleration. arXiv preprint arXiv:2009.01845, 2020. . URL https://doi.org/10.5281/zenodo.3997194. OpenAlex ↗ · Scholar ↗
- Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J Love, Alán Aspuru-Guzik, and Jeremy L O’brien. A variational eigenvalue solver on a photonic quantum processor. Nature communications, 5:0 4213, 2014. . URL https://doi.org/10.1038/ncomms5213. OpenAlex ↗ · Scholar ↗
- Seth Lloyd. Universal quantum simulators. Science, pages 1073–1078, 1996. . URL https://doi.org/10.1126/science.273.5278.1073. OpenAlex ↗ · Scholar ↗
- Suguru Endo, Iori Kurata, and Yuya O Nakagawa. Calculation of the green's function on near-term quantum computers. Physical Review Research, 20 (3):0 033281, 2020. . URL https://doi.org/10.1103/PhysRevResearch.2.033281. OpenAlex ↗ · Scholar ↗
- Kosuke Mitarai, Yuya O Nakagawa, and Wataru Mizukami. Theory of analytical energy derivatives for the variational quantum eigensolver. Physical Review Research, 20 (1):0 013129, 2020. . URL https://doi.org/10.1103/PhysRevResearch.2.013129. OpenAlex ↗ · Scholar ↗
- Kosuke Mitarai, Tennin Yan, and Keisuke Fujii. Generalization of the output of a variational quantum eigensolver by parameter interpolation with a low-depth ansatz. Phys. Rev. Applied, 11:0 044087, Apr 2019. . URL https://link.aps.org/doi/10.1103/PhysRevApplied.11.044087. OpenAlex ↗ · Scholar ↗
- Yuta Matsuzawa and Yuki Kurashige. Jastrow-type decomposition in quantum chemistry for low-depth quantum circuits. Journal of Chemical Theory and Computation, 160 (2):0 944–952, 2020. . URL https://doi.org/10.1021/acs.jctc.9b00963. OpenAlex ↗ · Scholar ↗
- Hiroki Kawai and Yuya O. Nakagawa. Predicting excited states from ground state wavefunction by supervised quantum machine learning. Machine Learning: Science and Technology, 10 (4):0 045027, oct 2020. . URL https://doi.org/10.1088 OpenAlex ↗ · Scholar ↗
- Jakob Kottmann, Mario Krenn, Thi Ha Kyaw, Sumner Alperin-Lea, and Alán Aspuru-Guzik. Quantum computer-aided design of quantum optics hardware. Quantum Science and Technology, 2021. . URL https://doi.org/10.1088/2058-9565/abfc94. OpenAlex ↗ · Scholar ↗
- Yasunari Suzuki, Suguru Endo, and Yuuki Tokunaga. Quantum error mitigation for fault-tolerant quantum computing. arXiv preprint arXiv:2010.03887, 2020. OpenAlex ↗ · Scholar ↗
- Cirq-Qulacs. https://github.com/qulacs/cirq-qulacs, 2019. OpenAlex ↗ · Scholar ↗
- Seyon Sivarajah, Silas Dilkes, Alexander Cowtan, Will Simmons, Alec Edgington, and Ross Duncan. t$|$ket$\rangle$: A retargetable compiler for NISQ devices. Quantum Science and Technology, 2020. . URL https://doi.org/10.1088/2058-9565/ab8e92. OpenAlex ↗ · Scholar ↗
- Orquestra. https://orquestra.io/, 2020. OpenAlex ↗ · Scholar ↗
- Jakob S. Kottmann and Sumner Alperin-Lea, Teresa Tamayo-Mendoza, Alba Cervera-Lierta, Cyrille Lavigne, Tzu-Ching Yen, Vladyslav Verteletskyi, Abhinav Anand, Matthias Degroote, Maha Kesebi, and Alán Aspuru-Guzik. tequila: A generalized development library for novel quantum algorithms. https://github.com/aspuru-guzik-group/tequila, 2020. OpenAlex ↗ · Scholar ↗
- Peter W Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM review, 410 (2):0 303–332, 1999. . URL https://doi.org/10.1137/S0097539795293172. OpenAlex ↗ · Scholar ↗
- Craig Gidney and Martin Ekerå. How to factor 2048 bit rsa integers in 8 hours using 20 million noisy qubits. Quantum, 5:0 433, 2021. . URL https://doi.org/10.22331/q-2021-04-15-433. OpenAlex ↗ · Scholar ↗
- Ian D Kivlichan, Craig Gidney, Dominic W Berry, Nathan Wiebe, Jarrod McClean, Wei Sun, Zhang Jiang, Nicholas Rubin, Austin Fowler, Alán Aspuru-Guzik, et al. Improved fault-tolerant quantum simulation of condensed-phase correlated electrons via trotterization. Quantum, 4:0 296, 2020. . URL https://doi.org/10.22331/q-2020-07-16-296. OpenAlex ↗ · Scholar ↗
- Aram W Harrow, Avinatan Hassidim, and Seth Lloyd. Quantum algorithm for linear systems of equations. Physical review letters, 1030 (15):0 150502, 2009. . URL https://doi.org/10.1103/PhysRevLett.103.150502. OpenAlex ↗ · Scholar ↗
- Austin G Fowler, Matteo Mariantoni, John M Martinis, and Andrew N Cleland. Surface codes: Towards practical large-scale quantum computation. Physical Review A, 860 (3):0 032324, 2012. . URL https://link.aps.org/doi/10.1103/PhysRevA.86.032324. OpenAlex ↗ · Scholar ↗
- Sergio Boixo, Sergei V Isakov, Vadim N Smelyanskiy, Ryan Babbush, Nan Ding, Zhang Jiang, Michael J Bremner, John M Martinis, and Hartmut Neven. Characterizing quantum supremacy in near-term devices. Nature Physics, 140 (6):0 595–600, 2018. . URL https://doi.org/10.1038/s41567-018-0124-x. OpenAlex ↗ · Scholar ↗
- Jarrod McClean, Nicholas Rubin, Kevin Sung, Ian David Kivlichan, Xavier Bonet-Monroig, Yudong Cao, Chengyu Dai, Eric Schuyler Fried, Craig Gidney, Brendan Gimby, et al. OpenFermion: the electronic structure package for quantum computers. Quantum Science and Technology, 2020. . URL https://doi.org/10.1088/2058-9565/ab8ebc. OpenAlex ↗ · Scholar ↗
- Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information: 10th Anniversary Edition. Cambridge University Press, 2010. . URL https://doi.org/10.1017/CBO9780511976667. OpenAlex ↗ · Scholar ↗
- Andrew W Cross, Lev S Bishop, John A Smolin, and Jay M Gambetta. Open quantum assembly language. arXiv preprint arXiv:1707.03429, 2017. OpenAlex ↗ · Scholar ↗
- Shiro Tamiya and Yuya O Nakagawa. Calculating nonadiabatic couplings and Berry's phase by variational quantum eigensolvers. arXiv preprint arXiv:2003.01706, 2020. . URL https://doi.org/10.1103/PhysRevResearch.3.023244. OpenAlex ↗ · Scholar ↗
- Yohei Ibe, Yuya O Nakagawa, Takahiro Yamamoto, Kosuke Mitarai, Qi Gao, and Takao Kobayashi. Calculating transition amplitudes by variational quantum eigensolvers. arXiv preprint arXiv:2002.11724, 2020. OpenAlex ↗ · Scholar ↗
- Pascual Jordan and Eugene P Wigner. About the pauli exclusion principle. Z. Phys, 470 (631):0 14–75, 1928. . URL https://doi.org/10.1007/BF01331938. OpenAlex ↗ · Scholar ↗
- Sergey B Bravyi and Alexei Yu Kitaev. Fermionic quantum computation. Annals of Physics, 2980 (1):0 210–226, 2002. . URL https://doi.org/10.1006/aphy.2002.6254. OpenAlex ↗ · Scholar ↗
- Intel Intrinsics Guide. https://software.intel.com/sites/landingpage/IntrinsicsGuide/, 2020. OpenAlex ↗ · Scholar ↗
- OpenMP Specifications. https://www.openmp.org/specifications/, 2020. OpenAlex ↗ · Scholar ↗
- quantum-benchmarks. https://github.com/Roger-luo/quantum-benchmarks, 2020. OpenAlex ↗ · Scholar ↗
- Benchmark codes of this paper will be uploaded to. https://github.com/qulacs/benchmark-qulacs, 2020. OpenAlex ↗ · Scholar ↗
- Intel-QS repository . https://github.com/iqusoft/intel-qs, 2020. OpenAlex ↗ · Scholar ↗
- Daniel Gottesman. The heisenberg representation of quantum computers. arXiv preprint quant-ph/9807006, 1998. OpenAlex ↗ · Scholar ↗
- Scott Aaronson and Daniel Gottesman. Improved simulation of stabilizer circuits. Physical Review A, 700 (5):0 052328, 2004. . URL https://10.1103/PhysRevA.70.052328. OpenAlex ↗ · Scholar ↗
- Leslie G Valiant. Quantum circuits that can be simulated classically in polynomial time. SIAM Journal on Computing, 310 (4):0 1229–1254, 2002. . URL https://doi.org/10.1137/S0097539700377025. OpenAlex ↗ · Scholar ↗
- Barbara M Terhal and David P DiVincenzo. Classical simulation of noninteracting-fermion quantum circuits. Physical Review A, 650 (3):0 032325, 2002. . URL https://doi.org/10.1103/PhysRevA.65.032325. our card
- Emanuel Knill. Fermionic linear optics and matchgates. arXiv preprint quant-ph/0108033, 2001. OpenAlex ↗ · Scholar ↗