Skip to main content
QUICK REVIEW

[Paper Review] Emulating quantum computation with artificial neural networks

Christian Pehle, Karlheinz Meier|arXiv (Cornell University)|Oct 24, 2018
Quantum Computing Algorithms and ArchitectureComputer Science8 references5 citations
TL;DR

This paper proposes a novel method to emulate quantum computation using artificial neural networks (ANNs), training them to perform fundamental quantum gates—CNOT, Hadamard, and π/8 rotation—on two-qubit density matrices. The key contribution is a custom 'quantumness gate' that ensures output matrices are positive, Hermitian, normalized, and unitary, enabling chains of trained gates to realize arbitrary unitary transformations with high fidelity, even for large sequences of operations.

ABSTRACT

We demonstrate, that artificial neural networks (ANN) can be trained to emulate single or multiple basic quantum operations. In order to realize a quantum state, we implement a novel "quantumness gate" that maps an arbitrary matrix to the real representation of a positive hermitean normalized density matrix. We train the CNOT gate, the Hadamard gate and a rotation in Hilbert space as basic building blocks for processing the quantum density matrices of two entangled qubits. During the training process the neural networks learn to represent the complex structure, the hermiticity, the normalization and the positivity of the output matrix. The requirement of successful training allows us to find a critical bottleneck dimension which reflects the relevant quantum information. Chains of individually trained neural quantum gates can be constructed to realize any unitary transformation. For scaling to larger quantum systems, we propose to use correlations of stochastic macroscopic two-level observables or classical bits. This novel concept provides a path for a classical implementation of computationally relevant quantum information processing on classical neural networks, in particular on neuromorphic computing machines featuring stochastic operations.

Motivation & Objective

  • To demonstrate that artificial neural networks can be trained to emulate core quantum operations such as CNOT, Hadamard, and rotation gates.
  • To develop a novel 'quantumness gate' that enforces physical constraints—Hermiticity, normalization, and positivity—on the output matrix of a neural network.
  • To enable the construction of chains of individually trained quantum gates to perform arbitrary unitary transformations on two-qubit density matrices.
  • To explore the feasibility of classical neural networks, particularly neuromorphic systems, to implement quantum information processing using probabilistic macroscopic observables.
  • To identify the critical bottleneck dimension for successful training, reflecting the minimal information resources required for quantum state emulation.

Proposed method

  • Train separate neural networks to map input matrices to output matrices that represent valid quantum density matrices using a custom 'quantumness gate' layer.
  • Enforce physical constraints via a differentiable loss function that penalizes deviations from Hermiticity, normalization (trace = 1), and positivity (positive semi-definite) of the output matrix.
  • Use a real-valued representation of the 4×4 density matrix for two qubits, with 15 independent real parameters corresponding to the degrees of freedom of a normalized Hermitian matrix.
  • Train individual networks on basic quantum gates (CNOT, Hadamard, π/8 rotation) using stochastic gradient descent over 3000 epochs, with performance monitored via loss function and mean squared error.
  • Chain trained gates sequentially by feeding the output of one gate as input to the next, without retraining, to simulate unitary evolution over multiple layers.
  • Validate the chain performance by comparing the final output matrix from the neural network chain with the analytical result of sequential unitary transformations using the same gate order.

Experimental results

Research questions

  • RQ1Can artificial neural networks be trained to emulate fundamental quantum gates while enforcing the physical constraints of quantum mechanics?
  • RQ2What is the minimal network width (number of hidden neurons) required to successfully train a neural network to represent a valid quantum density matrix?
  • RQ3Can chains of individually trained quantum gates be composed to perform arbitrary unitary transformations on a two-qubit system without retraining?
  • RQ4How well do neural network emulations approximate the exact unitary evolution of quantum states over long sequences of operations?
  • RQ5To what extent can classical neural networks, especially neuromorphic systems, emulate quantum information processing using correlations of stochastic classical bits?

Key findings

  • A critical bottleneck dimension of 15 hidden neurons is required for successful training, corresponding exactly to the number of independent real parameters in a normalized 4×4 Hermitian density matrix.
  • The CNOT gate is successfully trained when the number of intermediate neurons is ≥15, as confirmed by a monotonic decrease in the loss function over 3000 epochs.
  • Chains of trained gates (e.g., CNOT followed by Hadamard-rotation) achieve high fidelity, with the mean squared error between the neural network output and the analytical unitary evolution remaining low even after 2^15 layers.
  • The non-commutativity of quantum gates is successfully demonstrated by reversing the gate order in the chain, showing distinct outputs that match quantum mechanical expectations.
  • The neural network architecture successfully enforces all required physical constraints—Hermiticity, normalization, and positivity—on the output matrix during training, ensuring physically valid quantum state representations.
  • The method enables the realization of arbitrary unitary transformations on two-qubit systems through composition of only the basic gates, without needing to train for each specific transformation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.