Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
HYBRID QUANTUM-CLASSICAL GENERATIVE MODES FOR LEARNING DATA DISTRIBUTIONS
Document Type and Number:
WIPO Patent Application WO/2019/177951
Kind Code:
A1
Abstract:
Hybrid quantum-classical generative models for learning data distributions are provided. In various embodiments, methods of and computer program products for operating a Helmholtz machine are provided. In various embodiments, methods of and computer program products for operating a generative adversarial network are provided. In various embodiments, methods of and computer program products for variational autoencoding are provided.

Inventors:
ASPURU-GUZIK ALAN (US)
CAO YUDONG (US)
JOHNSON PETER (US)
Application Number:
PCT/US2019/021582
Publication Date:
September 19, 2019
Filing Date:
March 11, 2019
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HARVARD COLLEGE (US)
International Classes:
G06N3/04; G06N3/08; G06N10/00
Other References:
MARCELLO BENEDETTI ET AL: "Quantum-assisted Helmholtz machines: A quantum-classical deep learning framework for industrial datasets in near-term devices", QUANTUM SCIENCE AND TECHNOLOGY, 20 September 2017 (2017-09-20), pages 34007, XP055593889, Retrieved from the Internet [retrieved on 20190604], DOI: 10.1088/2058-9565/aabd98
GUILLAUME VERDON ET AL: "A quantum algorithm to train neural networks using low-depth circuits", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 14 December 2017 (2017-12-14), XP080846185
MARCELLO BENEDETTI ET AL: "A generative modeling approach for benchmarking and training shallow quantum circuits", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 23 January 2018 (2018-01-23), XP080854142
MARCELLO BENEDETTI ET AL: "Quantum-Assisted Learning of Hardware-Embedded Probabilistic Graphical Models", PHYSICAL REVIEW X, 25 January 2018 (2018-01-25), pages 041052, XP055594030, Retrieved from the Internet [retrieved on 20190604], DOI: 10.1103/PhysRevX.7.041052
Attorney, Agent or Firm:
AKHIEZER, Alexander et al. (US)
Download PDF:
Claims:
CLAIMS

What is claimed is:

1. A method comprising:

preparing a state with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network and tuning the plurality of configuration parameters to generate data at an output layer of the first neural network, according to the probability distribution;

providing the generated data to a second neural network;

training the second neural network to produce a distribution over variables from the generated data.

2. The method of claim 1, wherein the state is a quantum thermal state.

3. The method of claim 1, wherein tuning the plurality of configuration parameters comprises determining a gradient of an objective function.

4. The method of claim 3, wherein tuning the plurality of configuration parameters further comprises performing gradient descent.

5. The method of claim 1, further comprising:

alternating between: 1) training the first neural network and tuning the plurality of configuration parameters; and 2) training the second neural network.

6. The method of claim 1, wherein the first neural network comprises a feedforward neural network.

7. The method of claim 1, wherein the first neural network comprises a Boltzmann machine.

8. The method of claim 1, wherein the second neural network comprises a feedforward neural network.

9. The method of claim 1, wherein the second neural network comprises a Boltzmann machine.

10. The method of claim 1, wherein the first neural network comprises at least one hidden layer.

11. The method of claim 1, wherein the second neural network comprises at least one hidden layer.

12. A system comprising:

a quantum circuit;

a computing node comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computing node to cause the processor to perform a method comprising:

preparing a state with the quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network; training the first neural network and tuning the plurality of configuration parameters to generate data at an output layer of the first neural network, according to the probability distribution;

providing the generated data to a second neural network;

training the second neural network to produce a distribution over variables from the generated data.

13. A method comprising:

preparing a state with a quantum circuit, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network to generate data at an output layer of the first neural network, according to the probability distribution;

providing the generated data to a second neural network;

training the second neural network to produce a distribution over variables from the generated data.

14. The method of claim 13, wherein the state is a quantum thermal state.

15. The method of claim 13, wherein preparing the state comprises configuring the quantum circuit according to a plurality of configuration parameters.

16. The method of claim 15, wherein preparing the state comprises tuning the plurality of configuration parameters.

17. The method of claim 16, wherein tuning the plurality of configuration parameters comprises determining a gradient of an objective function.

18. The method of claim 17, wherein tuning the plurality of configuration parameters further comprises performing gradient descent.

19. The method of claim 13, further comprising:

alternately training the first and second neural networks.

20. The method of claim 13, wherein the first neural network comprises a feedforward neural network.

21. The method of claim 13, wherein the first neural network comprises a Boltzmann machine.

22. The method of claim 13, wherein the second neural network comprises a feedforward neural network.

23. The method of claim 13, wherein the second neural network comprises a Boltzmann machine.

24. The method of claim 13, wherein the first neural network comprises at least one hidden layer.

25. The method of claim 13, wherein the second neural network comprises at least one hidden layer.

26. A system comprising:

a quantum circuit;

a computing node comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computing node to cause the processor to perform a method comprising: preparing a state with the quantum circuit, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network to generate data at an output layer of the first neural network according to the probability distribution; providing the generated data to a second neural network;

training the second neural network to produce a distribution over variables from the generated data.

27. A method comprising:

preparing a state with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network and tuning the plurality of configuration parameters to generate data at an output layer of the first neural network according to the probability distribution;

providing the data to a second neural network;

training the second neural network to distinguish between the generated data and sample data.

28. The method of claim 27, wherein the state is a quantum thermal state.

29. The method of claim 27, wherein tuning the plurality of configuration parameters comprises determining a gradient of an objective function.

30. The method of claim 29, wherein tuning the plurality of configuration parameters further comprises performing gradient descent.

31. The method of claim 27, further comprising:

alternating between: 1) training the first neural network and tuning the plurality of configuration parameters; and 2) training the second neural network.

32. The method of claim 27, wherein the first neural network comprises a feedforward neural network.

33. The method of claim 27, wherein the first neural network comprises a Boltzmann machine.

34. The method of claim 27, wherein the second neural network comprises a feedforward neural network.

35. The method of claim 27, wherein the second neural network comprises a Boltzmann machine.

36. The method of claim 27, wherein the first neural network comprises at least one hidden layer.

37. The method of claim 27, wherein the second neural network comprises at least one hidden layer.

38. A system comprising:

a quantum circuit;

a computing node comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computing node to cause the processor to perform a method comprising:

preparing a state with the quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network and tuning the plurality of configuration parameters to generated data at an output layer of the first neural network according to the probability distribution;

providing the data to a second neural network;

training the second neural network to distinguish between the generated data and sample data.

39. A method comprising:

preparing a state with a quantum circuit, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network to generate data at an output layer of the first neural network according to the probability distribution;

providing the data to a second neural network;

training the second neural network to distinguish between the generated data and sample data.

40. The method of claim 39, wherein the state is a quantum thermal state.

41. The method of claim 39, wherein preparing the state comprises configuring the quantum circuit according to a plurality of configuration parameters.

42. The method of claim 41, wherein preparing the state comprises tuning the plurality of configuration parameters.

43. The method of claim 42, wherein tuning the plurality of configuration parameters comprises determining a gradient of an objective function.

44. The method of claim 43, wherein tuning the plurality of configuration parameters further comprises performing gradient descent.

45. The method of claim 27, further comprising:

alternately training the first and second neural networks.

46. The method of claim 27, wherein the first neural network comprises a feedforward neural network.

47. The method of claim 39, wherein the first neural network comprises a Boltzmann machine.

48. The method of claim 27, wherein the second neural network comprises a feedforward neural network.

49. The method of claim 39, wherein the second neural network comprises a Boltzmann machine.

50. The method of claim 39, wherein the first neural network comprises at least one hidden layer.

51. The method of claim 39, wherein the second neural network comprises at least one hidden layer.

52. A system comprising:

a quantum circuit;

a computing node comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computing node to cause the processor to perform a method comprising:

preparing a state with the quantum circuit, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network to generate data at an output layer of the first neural network according to the probability distribution; providing the data to a second neural network;

training the second neural network to distinguish between the generated data and sample data.

53. A method comprising:

preparing a state with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network; training the first neural network to generate data at an output layer of the first neural network, according to the probability distribution;

tuning the plurality of configuration parameters based on the generated data.

54. The method of claim 53, wherein the state is a quantum thermal state.

55. The method of claim 53, further comprising:

alternately training the first neural network and tuning the plurality of configuration parameters.

56. The method of claim 55, wherein tuning the plurality of configuration parameters comprises determining a gradient of an objective function.

57. The method of claim 56, wherein tuning the plurality of configuration parameters further comprises performing gradient descent.

58. The method of claim 53, wherein the first neural network comprises a feedforward neural network.

59. The method of claim 53, wherein the first neural network comprises a Boltzmann machine.

60. The method of claim 53, wherein the first neural network comprises at least one hidden layer.

61. A system comprising:

a quantum circuit;

a computing node comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor of the computing node to cause the processor to perform a method comprising:

preparing a state with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters, the state corresponding to a probability distribution;

sampling from the state to provide a plurality of samples to an input layer of a first neural network;

training the first neural network to generate data at an output layer of the first neural network, according to the probability distribution;

tuning the plurality of configuration parameters based on the generated data.

Description:
HYBRID QUANTUM-CLASSICAL GENERATIVE MODELS FOR LEARNING DATA

DISTRIBUTIONS

CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application claims the benefit of U.S. Provisional Application Nos. 62/641,371, filed March 11, 2018, and 62/683,276, filed June 11, 2018, which are hereby incorporated by reference in their entireties.

BACKGROUND

[0002] Embodiments of the present disclosure relate to generative modeling tasks, and more specifically, to hybrid quantum-classical generative models for learning data distributions including Helmholtz machines.

BRIEF SUMMARY

[0003] According to embodiments of the present disclosure, hybrid quantum-classical generative models for learning data distributions are provided.

[0004] In various embodiments, methods of and computer program products for operating a Helmholtz machine is provided. A state is prepared with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters. The state corresponds to a probability distribution. The state is sampled to provide a plurality of samples to an input layer of a first neural network. The first neural network is trained and the plurality of configuration parameters is tuned to generate data at an output layer of the first neural network, according to the probability distribution. The generated data is provided to a second neural network. The second neural network is trained to produce a distribution over variables from the generated data. [0005] In some embodiments, the state is a quantum thermal state.

[0006] In some embodiments, tuning the plurality of configuration parameters comprises determining a gradient of an objective function. In some embodiments, tuning the plurality of configuration parameters further comprises performing gradient descent.

[0007] In some embodiments, the method includes alternating between: 1) training the first neural network and tuning the plurality of configuration parameters; and 2) training the second neural network.

[0008] In some embodiments, the first neural network comprises a feedforward neural network. In some embodiments, the first neural network comprises a Boltzmann machine. In some embodiments, the second neural network comprises a feedforward neural network. In some embodiments, the second neural network comprises a Boltzmann machine. In some embodiments, the first neural network comprises at least one hidden layer. In some embodiments, the second neural network comprises at least one hidden layer.

[0009] In various embodiments, methods of and computer program products for operating a Helmholtz machine is provided. A state is prepared with a quantum circuit. The state corresponds to a probability distribution. The state is sampled to provide a plurality of samples to an input layer of a first neural network. The first neural network is trained to generate data at an output layer of the first neural network, according to the probability distribution. The generated is provided data to a second neural network. The second neural network is trained to produce a distribution over variables from the generated data.

[0010] In some embodiments, the state is a quantum thermal state.

[0011] In some embodiments, preparing the state comprises configuring the quantum circuit according to a plurality of configuration parameters. In some embodiments, preparing the state comprises tuning the plurality of configuration parameters. In some embodiments, tuning the plurality of configuration parameters comprises determining a gradient of an objective function. In some embodiments, tuning the plurality of

configuration parameters further comprises performing gradient descent.

[0012] In some embodiments, the method includes alternately training the first and second neural networks.

[0013] In some embodiments, the first neural network comprises a feedforward neural network. In some embodiments, the first neural network comprises a Boltzmann machine. In some embodiments, the second neural network comprises a feedforward neural network. In some embodiments, the second neural network comprises a Boltzmann machine. In some embodiments, the first neural network comprises at least one hidden layer. In some embodiments, the second neural network comprises at least one hidden layer.

[0014] In various embodiments, methods of and computer program products for operating a generative adversarial network is provided. A state is prepared with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters. The state corresponds to a probability distribution. The state is sampled to provide a plurality of samples to an input layer of a first neural network. The first neural network is trained and the plurality of configuration parameters is tuned to generate data at an output layer of the first neural network according to the probability distribution. The data is provided to a second neural network. The second neural network is trained to distinguish between the generated data and sample data.

[0015] In some embodiments, the state is a quantum thermal state.

[0016] In some embodiments, tuning the plurality of configuration parameters comprises determining a gradient of an objective function. In some embodiments, tuning the plurality of configuration parameters further comprises performing gradient descent. [0017] In some embodiments, the method includes alternating between: 1) training the first neural network and tuning the plurality of configuration parameters; and 2) training the second neural network.

[0018] In some embodiments, the first neural network comprises a feedforward neural network. In some embodiments, the first neural network comprises a Boltzmann machine. In some embodiments, the second neural network comprises a feedforward neural network. In some embodiments, the second neural network comprises a Boltzmann machine. In some embodiments, the first neural network comprises at least one hidden layer. In some embodiments, the second neural network comprises at least one hidden layer.

[0019] In various embodiments, methods of and computer program products for operating a generative adversarial network is provided. A state is prepared with a quantum circuit. The state corresponds to a probability distribution. The state is sampled to provide a plurality of samples to an input layer of a first neural network. The first neural network is trained to generate data at an output layer of the first neural network according to the probability distribution. The data is provided to a second neural network. The second neural network is trained to distinguish between the generated data and sample data.

[0020] In some embodiments, the state is a quantum thermal state.

[0021] In some embodiments, preparing the state comprises configuring the quantum circuit according to a plurality of configuration parameters. In some embodiments, preparing the state comprises tuning the plurality of configuration parameters. In some embodiments, tuning the plurality of configuration parameters comprises determining a gradient of an objective function. In some embodiments, tuning the plurality of

configuration parameters further comprises performing gradient descent.

[0022] In some embodiments, the method includes alternately training the first and second neural networks. [0023] In some embodiments, the first neural network comprises a feedforward neural network. In some embodiments, the first neural network comprises a Boltzmann machine. In some embodiments, the second neural network comprises a feedforward neural network. In some embodiments, the second neural network comprises a Boltzmann machine. In some embodiments, the first neural network comprises at least one hidden layer. In some embodiments, the second neural network comprises at least one hidden layer.

[0024] In various embodiments, methods of and computer program products for variational autoencoding is provided. A state is prepared with a quantum circuit by configuring the quantum circuit according to a plurality of configuration parameters. The state corresponds to a probability distribution. The state is sampled to provide a plurality of samples to an input layer of a first neural network. The first neural network is trained to generate data at an output layer of the first neural network, according to the probability distribution. The plurality of configuration parameters is tuned based on the generated data.

[0025] In some embodiments, the state is a quantum thermal state.

[0026] In some embodiments, the method includes alternately training the first neural network and tuning the plurality of configuration parameters.

[0027] In some embodiments, tuning the plurality of configuration parameters comprises determining a gradient of an objective function. In some embodiments, tuning the plurality of configuration parameters further comprises performing gradient descent.

[0028] In some embodiments, the first neural network comprises a feedforward neural network. In some embodiments, the first neural network comprises a Boltzmann machine. In some embodiments, the first neural network comprises at least one hidden layer. BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

[0029] Fig. 1 is a schematic view of a hybrid quantum-classical Helmholtz machine according to embodiments of the present disclosure.

[0030] Fig. 2 is a schematic view of a hybrid quantum-classical generative adversarial network (GAN) according to embodiments of the present disclosure.

[0031] Fig. 3 is a schematic view of a hybrid quantum-classical variational autoencoder according to embodiments of the present disclosure.

[0032] Fig. 4 is a flowchart illustrating a method of operating a Helmholtz machine according to embodiments of the present disclosure.

[0033] Fig. 5 is a flowchart illustrating a method of operating a generative adversarial network (GAN) according to embodiments of the present disclosure.

[0034] Fig. 6 is a flowchart illustrating a method of operating a variational autoencoder according to embodiments of the present disclosure.

[0035] Fig. 7 depicts a computing node according to embodiments of the present disclosure.

DETAILED DESCRIPTION

[0036] The present disclosure addresses the use of near-term quantum computers for assisting generative modeling tasks in classical machine learning. Since near-term quantum information processors (for instance devices of around 50 qubits) can produce statistical patterns that are computationally difficult for a classical computer to produce, they may be used for efficiently generating data samples that cannot be efficiently generated on classical computers. Schemes are provided herein that use only low-depth quantum circuits for the relevant generative tasks in each scheme. [0037] Artificial neural networks (ANNs) are distributed computing systems, which consist of a number of neurons interconnected through connection points called synapses. Each synapse encodes the strength of the connection between the output of one neuron and the input of another. The output of each neuron is determined by the aggregate input received from other neurons that are connected to it. Thus, the output of a given neuron is based on the outputs of connected neurons from preceding layers and the strength of the connections as determined by the synaptic weights. An ANN is trained to solve a specific problem ( e.g ., pattern recognition) by adjusting the weights of the synapses such that a particular class of inputs produce a desired output.

[0038] Various algorithms may be used for this learning process. Certain algorithms may be suitable for specific tasks such as image recognition, speech recognition, or language processing. Training algorithms lead to a pattern of synaptic weights that, during the learning process, converges toward an optimal solution of the given problem.

Backpropagation is one suitable algorithm for supervised learning, in which a known correct output is available during the learning process. The goal of such learning is to obtain a system that generalizes to data that were not available during training.

[0039] In general, during backpropagation, the output of the network is compared to the known correct output. An n error value is calculated for each of the neurons in the output layer. The error values are propagated backwards, starting from the output layer, to determine an error value associated with each neuron. The error values correspond to each neuron’s contribution to the network output. The error values are then used to update the weights. By incremental correction in this way, the network output is adjusted to conform to the training data.

[0040] When applying backpropagation, an ANN rapidly attains a high accuracy on most of the examples in a training-set. The vast majority of training time is spent trying to further increase this test accuracy. During this time, a large number of the training data examples lead to little correction, since the system has already learned to recognize those examples. While in general, ANN performance tends to improve with the size of the data set, this can be explained by the fact that larger data-sets contain more borderline examples between the different classes on which the ANN is being trained.

[0041] Suitable artificial neural networks include but are not limited to a feedforward neural network, a radial basis function network, a self-organizing map, learning vector quantization, a recurrent neural network, a Hopfield network, a Boltzmann machine, an echo state network, long short term memory, a bi-directional recurrent neural network, a hierarchical recurrent neural network, a stochastic neural network, a modular neural network, an associative neural network, a deep neural network, a deep belief network, a convolutional neural networks, a convolutional deep belief network, a large memory storage and retrieval neural network, a deep Boltzmann machine, a deep stacking network, a tensor deep stacking network, a spike and slab restricted Boltzmann machine, a compound hierarchical-deep model, a deep coding network, a multilayer kernel machine, or a deep Q-network.

[0042] A Helmholtz machine is a type of artificial neural network that accounts for the hidden structure of a set of data by being trained to create a generative model of the original set of data. By learning economical representations of the data, the underlying structure of the generative model should approximate the hidden structure of the data set. A Helmholtz machine contains two networks, a bottom-up recognition network that takes the data as input and produces a distribution over hidden variables, and a top-down generative network that generates values of the hidden variables and the data itself.

[0043] A Helmholtz machine may be trained using an unsupervised learning algorithm, such as the wake-sleep algorithm. In the wake-sleep algorithm, training consists of two phases. In the wake phase, neurons are fired by recognition connections from inputs to outputs. Generative connections leading from outputs to inputs are then modified to increase probability that they would recreate the correct activity in the layer below. In the sleep phase, neurons are fired by generative connections while recognition connections are being modified to increase probability that they would recreate the correct activity in the layer above.

[0044] Generative adversarial networks (GANs) are systems of two neural networks contesting with each other in a zero-sum game framework. One network generates candidates and the other evaluates them. The generative network learns to map from a latent space to a particular data distribution of interest, while the discriminative network discriminates between instances from the true data distribution and candidates produced by the generator. The generative network's training objective is to increase the error rate of the discriminative network. In this way, it is trained to produce novel synthesized data that appear to have come from the true data distribution.

[0045] A known dataset may serve as the initial training data for the discriminator.

Training the discriminator involves presenting it with samples from the dataset until it reaches some level of accuracy. The generator may be seeded with a randomized input that is sampled from a predefined latent space ( e.g ., a multivariate normal distribution).

Thereafter, samples synthesized by the generator are evaluated by the discriminator.

Backpropagation may be applied in both networks so that the generator produces better data (e.g., images), while the discriminator becomes more skilled at flagging synthetic images.

In various embodiments, the generator is a deconvolutional neural network and the discriminator is a convolutional neural network.

[0046] An autoencoder is a neural network that learns to compress data from the input layer into a short code, and then uncompress that code into something that closely matches the original data. This forces the autoencoder to engage in dimensionality reduction, for example by learning how to ignore noise. Autoencoders are also useful as generative models.

[0047] As used herein, a quantum gate (or quantum logic gate) is a basic quantum circuit operating on a small number of qubits. By analogy to classical computing, quantum gates form quantum circuits, like classical logic gates form conventional digital circuits.

Quantum logic gates are represented by unitary matrices. Various common quantum gates operate on spaces of one or two qubits, like classical logic gates operate on one or two bits. As matrices, quantum gates can be described by 2 n x 2 n sized unitary matrices, where n is the number of qubits. The variables that the gates act upon, the quantum states, are vectors in 2 n complex dimensions. The base vectors indicate the possible outcomes if measured, and a quantum state is a linear combinations of these outcomes. The action of the gate on a specific quantum state is found by multiplying the vector which represents the state by the matrix representing the gate. Accordingly, a given quantum state may be prepared on a quantum circuit through application of a plurality of gates. A given state may be characterized as a distribution function that provides a distribution describing a continuous random variable.

[0048] Various physical embodiments of a quantum computer are suitable for use according to the present disclosure. In general, the fundamental data storage unit in quantum computing is the quantum bit, or qubit. The qubit is a quantum-computing analog of a classical digital-computer-system bit. A classical bit is considered to occupy, at any given point in time, one of two possible states corresponding to the binary digits 0 or 1. By contrast, a qubit is implemented in hardware by a physical component with quantum- mechanical characteristics. Each unit has an infinite number of different potential quantum-mechanical states. When the state of a qubit is physically measured, the measurement produces one of two different basis states. Thus, a single qubit can represent a one, a zero, or any quantum superposition of those two qubit states; a pair of qubits can be in any quantum superposition of 4 states; and three qubits in any superposition of 8 states. While qubits are characterized herein as mathematical objects, each corresponds to a physical qubit that can be implemented using a number of different physical

implementations, such as trapped ions, optical cavities, individual elementary particles, molecules, or aggregations of molecules that exhibit qubit behavior.

[0049] In contrast to classical gates, there are an infinite number of possible single-qubit quantum gates that change the state vector of a qubit. Changing the state of a qubit state vector is therefore referred to as a rotation. A rotation, state change, or single-qubit quantum -gate operation may be represented mathematically by a unitary 2x2 matrix with complex elements.

[0050] A quantum circuit can be specified as a sequence of quantum gates. To

conceptualize a quantum circuit, the matrices corresponding to the component quantum gates may be multiplied together in the order specified by the symbol sequence to produce a 2x2 complex matrix representing the same overall state change. A quantum circuit may thus be expressed as a single resultant operator. However, designing a quantum circuit in terms of constituent gates allows the design to conform to standard sets of gates, and thus enable greater ease of deployment. A quantum circuit thus corresponds to a design for a physical circuit in a quantum computer.

[0051] The quantum gates making up a quantum circuit may have an associated plurality of tuning parameters. For example, in embodiments based on optical switching, tuning parameters may correspond to the angles of individual optical elements. [0052] Hybrid quantum-classical Helmholtz machine

[0053] The present disclosure provides for using quantum computers to assist the realization of a Helmholtz machine. A quantum-assisted Helmholtz machine for capturing industry dataset can be realized on quantum annealers. However, the performance is limited by the restricted connectivity of the device as well as limitations in the form of interaction in the Hamiltonian (quantum annealers only realize two-body Ising

interactions). These limitations are overcome by 1) taking advantage of the general connectivity of a quantum computer and 2) using a variational quantum circuit to produce a quantum state that depends on the circuit parameters. The quantum state may be represented by a probability distribution over hangdescribed by a density operator on the Hilbert space H describing the quantum system.

[0054] One example of a quantum state is an approximate thermal state of a quantum Hamiltonian (Hamiltonians with interactions beyond those in the classical Ising model). In general, a quantum system in thermal equilibrium is typically characterized by T, the temperature of the system, and H , the Hamiltonian of the system. The density operator

-Hi

e 'T

describing the state of this equilibrium quantum system is p

and is known as the quantum thermal state or Gibbs state. This is obtained mathematically as the density operator which maximizes the entropy of the system, consistent with the average energy of the system being a fixed value. Quantum thermal states are useful in this context in that they afford an efficient estimate of a lower bound on the KL divergence, which is used for parameter training as set out below.

[0055] An overview of the hybrid scheme is shown in Fig. 1.

[0056] Fig. 1 is a schematic of a hybrid quantum-classical Helmholtz machine according to embodiments of the present disclosure. The down arrows (between 103, 106, 107, 108) show the flow of conditional dependence for the generative distribution p G (d) and the up arrows (between 108, 107, 106) represent the flow of conditional dependence for recognition distribution p R (d).

[0057] A quantum computer 101 is used to variationally prepare quantum state 103, which may be an approximation of the thermal state of some Hamiltonian H as described above. Low-depth circuits can be trained to approximate the thermal state of Ising Hamiltonians. This technique can be extended to quantum Hamiltonians with possibly non-diagonal couplings, and heuristics may be used for efficiently training thermal states of quantum Hamiltonians for capturing a given data distribution.

[0058] In various embodiments, quantum computer 101 includes a variational circuit 104. A given variational quantum circuit may be parameterized in a suitable device-specific manner. More generally, the quantum gates making up a quantum circuit may have an associated plurality of tuning parameters. For example, in embodiments based on optical switching, tuning parameters may correspond to the angles of individual optical elements.

[0059] In various embodiments, black-box optimizer 105 is implemented in classical computing node 102. The variational parameters Q are iteratively improved by measuring an objective function and then using a classical optimization routine to suggest new parameters. In various embodiments, the objective function is a sum of contributions from both quantum and classical components. In such embodiments, the quantum circuit parameters and classical neural network parameters are tuned in an alternating pattern to optimize the objective function. In various embodiments, the quantum circuit parameters are tuned by determining a gradient. In various embodiments, the quantum circuit parameters are tuned by gradient descent. However, it will be appreciated that a variety of mathematical optimization methods may be applied. [0060] After an approximate thermal state p 103 is prepared, one is able to use the state as a generative model in the latent space 106 by sampling from it. The distribution p G (x) = Tr(A x p) of samples x in the latent space 106 originates the generative distribution. Here A x corresponds to an element of a POVM. After measurement outcome x is obtained, one then proceeds to implement the generative distribution from the latent space 106 to the hidden layer(s) 107 p G (h |x) and that from the hidden layer(s) 107 to the data layer 108 Pc(d\li) by using a probabilistic neural network (such as a restricted Boltzmann machine).

[0061] Apart from the generative distribution p G another element of the Helmholtz machine is the recognition distribution p R , which is a probabilistic neural network (such as a restricted Boltzmann machine) that can be trained and implemented in a purely classical manner. The training of the entire network consists of adjusting the parameters of the generative and recognition distributions in an alternating fashion, a procedure called the wake-sleep algorithm. As set out herein, classical restricted Boltzmann machines can be used to compress a dataset in high dimensions to a latent space whose dimension is low enough for an implementation on a near-term quantum device, and use the quantum device as a sampler in the latent space to generate new data points based on the given set of data.

[0062] In various embodiments, training is performed in an alternating manner between the generator and recognition network. In some embodiments, feedback from the classical components is provided to optimizer 105 to enable further optimization of parameters Q.

[0063] Hybrid quantum-classical generative adversarial network (GAN)

[0064] The present disclosure provides for using quantum computers for generative adversarial networks (GAN), as described in Fig. 2.

[0065] Fig. 2 is a schematic of a hybrid quantum-classical generative adversarial network (GAN). The arrows from thermal state 203 down to data representation 208 show the flow of variable dependence for the generator G(x) = g G ° / G (x) and the arrows from data representation 208 down to fidelity 211 represent the flow of variable dependence for the discriminator D(d) = g D ° f D (ci). Here the parallel arrows from sample data 209 and data representation 208 to hidden layers 210 of the discriminator is not meant as using the two data spaces as two separate input variables to D , but rather means that during training both the sample data 209 and the generated data are combined into one set and each time either a sample data or a generated data is fed to the discriminator.

[0066] As in the embodiment of Fig. 1, quantum computer 201 includes a variational circuit 204. A given variational quantum circuit may be parameterized in a suitable device- specific manner. More generally, the quantum gates making up a quantum circuit may have an associated plurality of tuning parameters. For example, in embodiments based on optical switching, tuning parameters may correspond to the angles of individual optical elements.

[0067] In various embodiments, black-box optimizer 205 is implemented in classical computing node 202. The variational parameters Q are iteratively improved by measuring an objective function and then using a classical optimization routine to suggest new parameters. In various embodiments, the objective function is a sum of contributions from both quantum and classical components. In such embodiments, the quantum circuit parameters and classical neural network parameters are tuned in an alternating pattern to optimize the objective function. In various embodiments, the quantum circuit parameters are tuned by determining a gradient. In various embodiments, the quantum circuit parameters are tuned by gradient descent. However, it will be appreciated that a variety of mathematical optimization methods may be applied.

[0068] Accordingly, the present disclosure enables assisting the realization of GANs by taking advantage of quantum computers. Similar to the Helmholtz machine, the ability of low-depth quantum circuits to prepare a parametrized quantum state (such as a thermal state) is used for realizing the generative model. In the classical case this corresponds to the noise space. Instead of starting from random noise, sampling is from the quantum state generated by the variational circuit. The remainder of GAN proceeds entirely classically: the samples are mapped to the data space by a generator network implemented on the classical computer, and the discriminator is used to decide whether the data generated is authentic.

[0069] In various embodiments, training is performed in an alternating manner between the generator and discriminator. In some embodiments, feedback from the classical components is provided to optimizer 205 to enable further optimization of parameters Q.

[0070] Hybrid quantum-classical variational autoencoder (VAE)

[0071] Fig. 3 is a schematic of a hybrid quantum-classical variational autoencoder according to embodiments of the present disclosure. In this example, a general case is illustrated, in which quantum computer 301 variationally generates a state 303 (not necessarily an approximate thermal state). The same generalization applies to both the hybrid quantum-classical Helmholtz machine and hybrid GAN described above.

[0072] As in the embodiment of Fig. 1, quantum computer 301 includes a variational circuit 304. A given variational quantum circuit may be parameterized in a suitable device specific manner. More generally, the quantum gates making up a quantum circuit may have an associated plurality of tuning parameters. For example, in embodiments based on optical switching, tuning parameters may correspond to the angles of individual optical elements.

[0073] In various embodiments, black-box optimizer 305 is implemented in classical computing node 302. The variational parameters Q are iteratively improved by measuring an objective function and then using a classical optimization routine to suggest new parameters.

[0074] The present disclosure provides a hybrid quantum-classical scheme for realizing variational autoencoders (VAE). VAE is an effective technique for training generative models for capturing a data distribution using a continuous latent space. VAE constructions with discrete latent space are possible. Accordingly, discrete VAE using thermal states of transversal Ising Hamiltonians are also possible. However, such approaches train only the diagonal (classical) part of the Hamiltonian while keeping the transverse field constant.

The present disclosure provides a more general scheme where the (approximate) parametrized state 303, prepared by a variational circuit 304, is used for drawing samples in the latent space. The construction is similar in spirit to the Helmholtz machine, where in the classical construction of classical discrete VAE, the source of randomness is replaced with samples drawn from a quantum state which is approximately e ~ P H /Z for some general quantum Hamiltonian H , inverse temperature b and partition function Z.

[0075] In various embodiments, the Helmholtz machine or GAN may entail approximate thermal state preparation, as described below. The basic idea of approximately preparing a thermal state (103, 203, 303) under an n-qubit Hamiltonian H is to start from the thermal state that is relatively easy to prepare (for example consider p 0 = e ~THx /Z of a 1 -local Hamiltonian H x = with inverse temperature t and partition function Z) and evolve the state p 0 in a way that approximates an adiabatic evolution from H x to some

Hamiltonian H whose thermal state is harder to sample from. The evolution is realized using a parametrized circuit (104, 204, 304) U ( g,b ) which is similar to a Quantum

Approximate Optimization Algorithm (QAOA) circuit, where the parameters g and b describe an annealing schedule. The parameters are then optimized such that the energy of the final state U (g, b)r 0 u(g, /?) with respect to the Hamiltonian H is minimized. The optimized parameters g * and b * then provide a recipe for approximately preparing the thermal state (103, 203, 303) p = U(y * , b * )r 0 u(g * , /T) . The ability to sample from p is used as part of the generative model for the Helmholtz machine, as described below.

[0076] In various embodiments, a quantum-classical Helmholtz machine is provided. For a given set of data d E (0,l} n following a distribution p(d), the goal is to train a generative model G which produces a distribution p G (d ) over n-bit strings, such that p G is as close to p as possible. The generative model is realized using a layered neural network that samples from the probability distribution p G of n-bit outputs. One formal measure of this difference is the KL divergence of p with respect to p G . The network consists of a top layer x representing the latent space 106, layers 107 of hidden neurons h and the output layer 108 of size n. Minimizing the KL divergence by varying p G is equivalent to maximizing the log likelihood of the generative model of Equation 1.

Equation 1

[0077] In general, maximizing L in the space of G is hard. The essential technique of Helmholtz machines is to approximate p G (h, x\d) with another distribution p R (h, x\d). For convenience, h and x are referred to collectively as the explanations e for the data point d. Hence, instead of £ a lower bound of the likelihood function is maximized. From the non negativity of KL divergence from p R to p G (as discussed with regard to Equation 22, below), Equation 2 may be derived.

Equation 2

[0078] Focusing on the term that is dependent on G , it may be expanded as in Equation 3.

Equation 3

[0079] The first term is implemented classically and the second term is approximately Tr(A x p) where A x are positive-operator valued measure (POVM) elements each corresponding to a classical measurement outcome x. Putting together Equation 1, Equation 2, and Equation 3, a lower bound for the log likelihood of the generative model may be given as in Equation 4.

Equation 4

[0080] Equation 4 omits terms that are independent of the generative distribution, since they vanish upon taking the derivative with respect to the parameters of the generative distribution. Rules are derived for tuning the parameters of the quantum Hamiltonian H , assuming that the thermal state preparation procedure is exact, namely p = p = e ~THx /Z. As an example, assume H is a 24ocal Hamiltonian as in Equation 5.

Equation 5 [0081] To maximize the bound in Equation 4 is to take its derivative with respect to individual coupling coefficients [hi, K L j An approximation for log7Y(A x ) may be made with another lower bound, as in Equation 6.

Equation 6

[0082] Combining lower bound of Equation 6 with the bound in Equation 4, a final lower bound for the log likelihood is given as in Equation 7.

Equation 7

[0083] For the Hamiltonian in Equation 5, taking derivative of L with respect to the coupling coefficients yields Equation 8. jff )

Equation 8

[0084] Here p x = e -rH+iogA x ^ Tr ^ e - T H+iogA x ^ is the thermal state under the equivalent Hamiltonian H— logA x. The notations (·) Rc and (·) r represent expectation of measurement operators with respect to p x and p. The subscript R stands for averaging over the recognition distribution. Similar expressions for gradients can be found as in Equation

9.

Equation 9

[0085] In training the quantum state, the gradients above are evaluated by using the method described above to prepare the states p x and p and measuring the relevant quantities.

[0086] The training of the remainder of the Helmholtz machine, which includes the recognition distribution and the part of the generative distribution that generates new data points from the latent space, is implemented as in a classical Helmholtz machine.

[0087] In various embodiments, hybrid quantum-classical generative adversarial networks (GANs) are provided. For a given data distribution p(d), a generator G(x ' ) is trained to capture the data distribution as closely as possible. In particular, G(x ' ) = g G ° / G (x) where x is the latent space 206 vector sampled from the distribution p G (x) = Tr(pA x ) and / G , g G are deterministic functions implemented by classical neural networks. In the classical case x is the noise vector that serves as a simple source of randomness. Here, x is generated with an efficiently tunable quantum state (203).

[0088] Unlike the Helmholtz machine, which uses the recognition distribution to help guide the training for the generator, here a discriminator D is used to try to tell samples from p(ci ' ) apart from the samples generated by G. The objective of the discriminator is therefore two- fold: 1) to be able to recognize an authentic sample as much as possible; 2) to be able to deny a generated sample as much as possible. The former translates to maximizing the log likelihood in Equation 10 and the latter translates to minimizing the log likelihood

å G ( ) log D(G(x)) or equivalently maximizing Equation 11.

Equation 11

[0089] Putting these together, the training goal for the discriminator D may be given as in Equation 12.

Equation 12

[0090] The generator would like to work against such goal, ideally making D(d ' ) = 1/2 for all d. Hence, the joint objective of training the GAN may be phrased as in Equation 13.

Equation 13

[0091] To accomplish such min-max training, various methods herein alternate between training the generator and the discriminator. The generator may be trained as described above, while the discriminator may be trained using any of a variety of techniques suitable for classical neural networks.

[0092] In various embodiments, a quantum-classical variational autoencoder is provided, which operates on a similar principle to the Helmholtz machine described above. For a given set of data d with distribution p D (d), the goal of a variational autoencoder is also to train a generative model p G (d) to maximize the log likelihood p D (d ) logp G (d). To learn the distribution, a latent space h is introduced that extracts high-level features of the data set. For a given latent space, there is a prior distribution p G {K). New data points can be generated by sampling from the joint distribution p G (h, d ) = p G (d\li ' )p G (li) . However, the posterior distribution p G (h\d) is often intractable to sample, since p G (h\d) * 0 for most h. Therefore, approximate distribution q G (h\d) is introduced, which is tractable to sample from. The quality of approximation is given by the KL divergence in Equation 14.

Equation 14

[0093] Rearranging the terms in Equation 14 yields the identity in Equation 15.

Equation 15

[0094] Minimizing the left hand side will yield the dual goal of maximizing the log likelihood and finding q G (h\d), a good approximation of the posterior p G (h\d). With the equality in Equation 15, such minimization can be accomplished by minimizing the right hand side, which is tractable due to the tractability of q G .

[0095] ETp until this point, the mathematical formulations provided for both Helmholtz machines and variational autoencoders are identical. What differs in the two schemes is the method for treating the right hand side of Equation 15.

[0096] In the case of a Helmholtz machine, during the wake phase q G is fixed, which is the recognition distribution, and p G is trained to minimize the right hand side of Equation 15.

In the sleep phase, the objective function is switched by exchanging the places of q G and p G in the KL divergence expression on the left hand side of Equation 15. Then the recognition distribution q G can be trained while fixing p G . The training is performed in an alternating fashion until convergence.

[0097] A variational autoencoder takes a different approach. The right hand side of Equation 15 is transformed by the rearrangement shown in Equation 16.

Equation 16

[0098] The variational autoencoder then minimizes the rearranged objective function, which implies minimizing the KL divergence from the approximate posterior q G (h\d) to the prior p G (h ) and maximizing the autoencoding term A naive autoencoder construction is given by Equation 17 where q G (h\d) and p G (h\d) are built using some probabilistic model.

Equation 17 [0099] The prior distribution p G (/i) is trivial distribution such as J\f(0, /). However, in case where q G (h\d) and p G (d\h) are implemented using probabilistic neural networks, the construction in Equation 17 would not allow for error in the autoencoding term to be directly propagated all the way back to the input layer because evaluating the autoencoding term requires sampling from q G (h\d), which is not deterministic. A strategy to work around this limitation is reparametrization. In this approach q G (h\d) is replaced by using an independent sample x from some distribution r(() which is independent of q G and construct a deterministic function F^ 1 that takes data d and the independent samples x to the latent space h.

[0100] Thus far it has been assumed that the latent space h is continuous. In the case of a hybrid quantum-classical variational autoencoder, a quantum computer 301 is used to generate a quantum state 303 from which is obtained samples that are effectively bit strings. This means that certain modification is needed to allow the latent space to be discrete. A separate discrete space 306 z is introduced between the initial data layer 309 and the hidden layer 307: q G (h\d) = q G (z\d)q G (h\z) and p G (/i) = q G (h\z)p G (z). Since both q G (h\d) and p G (/i) share the component q G (h\z), the KL divergence term in Equation 16 becomes equal t

[0101] The overall hybrid quantum-classical variational autoencoder scheme according to various embodiments is shown in Fig. 3. Here the quantum computer 301 is responsible for generating samples in the discrete latent space 306 for z. The hybrid network is trained by alternating between training the classical and quantum component. In the quantum phase, the quantum circuit is trained to maximize KL(q G (z\d), p G (z)), while keeping the classical network fixed. In the classical phase, the quantum circuit is fixed (and therefore the output distribution of the discrete latent space samples z is also fixed) and the classical network is trained to maximize the objective on the right hand side of Equation 16. [0102] In the special case where the quantum circuit 304 produces an approximate thermal state 303 from some Hamiltonian, there is an efficient method for estimating the gradient components of the training objective as a function of Hamiltonian parameters. However, in the variational autoencoder case, the formalism remains general. The same generality applies to the other hybrid network constructions as well.

[0103] In various embodiments, a classical Helmholtz machine is provided. For a given set of data with distribution p(d), possible explanations e E {0,l} m are considered. In this setting, d is represented as the input layer of a neural network and e is stored in some hidden layers. The objective is to learn p(d ' ) by training a generative model G that generates n-bit outputs following a distribution p G (d), such that the KL divergence from p G to p is minimized, as in Equation 18.

Equation 18

[0104] Removing the terms that are independent of the generative model, minimizing the KL divergence above is equivalent to minimizing F G (d ) =— logp G (d) for every d. The function F G (d) can be rearranged as in Equation 19 where in the last line F G has been rearranged into the form H— TE.

Equation 19

[0105] This is the Helmholtz free energy for a physical system of entropy H , energy E and temperature T = 1. H G (e\d) is the entropy of the distribution of possible explanations given the data point d and the second term can be interpreted as an average energy. To be more explicit, generative energy may be defined as in Equation 20. tog ole, cl )

Equation 20

[0106] For any probability distribution— logp can be regarded as the amount of surprise that the probability p delivers. Zero probability events have infinite surprise and p = 1 gives no surprise. Hence, the generative energy can be considered as how surprising a particular combination of data point and explanation is. The conditional probability distribution of explanations with which generative energy is averaged over in Equation 19 is a Boltzmann distribution as in Equation 21.

ocr(

ra(B\ύ) ~

jg ex

Equation 21

[0107] It is generally hard to sample from p G (e|d) and for G that is realized using a feedforward neural network from some latent space x e {0,1 Y to {0,l} n , directly minimizing F G (d) using gradient descent is also challenging due to VF c (d) not having a structure that can yield insightful gradient algorithm such as backpropagation.

[0108] Another model may be introduced that approximates p G (e\d). This is the recognition model and it can be realized by another feedforward network from the data layer 0,l n to the latent space x e {0,1}^. Let p R (e\d) be the distribution that R generates. Because R is introduced to mimic what the generative distribution p G (e\d), the objective is to minimize the KL divergence from p R to p G where the notations for the entropy and average energy are similar to Equation 19, except that the subscript R refers to the recognition model.

Equation 22

[0109] The first two terms also take the form of free energy and are grouped into a term P GR ( d ). Therefore the KL divergence from p R to p G can be written as the difference between two free energy terms. In particular if R is identical to G then F GR (d) = F G (d). For a fixed R , gradient V G F GR (d) may be evaluated because H R is independent of G and so (V G F G (e, d)) R may be evaluated instead, which may be done via local delta rules. Here V G represents gradient with respect to parameters of the generative model. Hence F GR may be minimized for a fixed R , and it is useful to do so too. P GR also contains F G , which is the term that ultimately should be minimized, as in Equation 23.

Equation 23

[0110] When minimizing ^ GR R is driven closer to G while simultaneously minimizing the free energy F G (d). This assumes that there is a good recognition model R. To obtain a good R , a function similar to F GR may be minimized as in Equation 24.

Equation 24

[0111] For a fixed generative model G , F GR may be minimized with respect to R because most of the terms in P GR are independent of R , as shown in Equation 25.

Equation 25

[0112] Hence V R F RG = (V R F R (e|d)) G , which may also be evaluated by local delta rules.

[0113] Thus, the training of a Helmholtz machine in the classical setting consists of two alternating phases: training the generative model G ; and training the recognition model R. In the first phase, called the wake phase, the average generative energy is minimized with respect to the recognition distribution ( F G (e , d)) R . In the second phase, called the sleep phase, the average discriminative energy is minimized with respect to the generative distribution (F R (e, d)) G .

[0114] Referring to Fig. 4, a method of operating a Helmholtz machine according to embodiments of the present disclosure is illustrated. At 401, a state is prepared with a quantum circuit. The state corresponds to a probability distribution. In some embodiments, the state is prepared by configuring the quantum circuit according to a plurality of configuration parameters. At 402, a plurality of samples is provided to an input layer of a first neural network by sampling from the state. At 403, the first neural network is trained and the plurality of configuration parameters is tuned to generate data at an output layer of the first neural network, according to the probability distribution. At 404, the generated data are provided to a second neural network. At 405, the second neural network is trained to produce a distribution over variables from the generated data.

[0115] As set out above, in various embodiments the training of the Helmholtz machine consists of two phases: a wake phase and a sleep phase. During the wake phase, the generative model is trained. During the sleep phase, the recognition model is trained. The generative model consists of quantum and classical parts and the recognition model is entirely classical. During the wake phase, the parameters for the Hamiltonian used in thermal state generation is tuned by computing the gradient, and the parameters for the classical part of the generative distribution are trained using classical methods. During the sleep phase, the parameters of the recognition network are trained using classical methods.

[0116] Referring to Fig. 5, a method of operating a generative adversarial network (GAN) according to embodiments of the present disclosure is illustrated. At 501, a state is prepared with a quantum circuit. The state corresponds to a probability distribution. In some embodiments, the state is prepared by configuring the quantum circuit according to a plurality of configuration parameters. At 502, a plurality of samples is provided to an input layer of a first neural network by sampling from the state. At 503, the first neural network is trained and the plurality of configuration parameters are tuned to produce data at an output layer of the first neural network according to the probability distribution. At 504, the data are provided to a second neural network. At 505, the second neural network is trained to distinguish between the generated data and sample data.

[0117] Referring to Fig. 6, a method of operating a variational autoencoder according to embodiments of the present disclosure is illustrated. At 601, a state is prepared with a quantum circuit. The state corresponds to a probability distribution. In some embodiments, the state is prepared by configuring the quantum circuit according to a plurality of configuration parameters. At 602, a plurality of samples is provided to an input layer of a first neural network by sampling from the state. At 603, the first neural network is trained to generate data at an output layer of the first neural network, according to the probability distribution. At 604, the plurality of configuration parameters is tuned based on the generated data.

[0118] Referring now to Fig. 7, a schematic of an example of a classical computing node is shown. Computing node 10 is only one example of a suitable computing node and is not intended to suggest any limitation as to the scope of use or functionality of embodiments of the disclosure described herein. Regardless, computing node 10 is capable of being implemented and/or performing any of the functionality set forth hereinabove.

[0119] In computing node 10 there is a computer system/server 12, which is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with computer system/server 12 include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments that include any of the above systems or devices, and the like.

[0120] Computer system/server 12 may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, and so on that perform particular tasks or implement particular abstract data types. Computer system/server 12 may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.

[0121] As shown in Fig. 7, computer system/server 12 in computing node 10 is shown in the form of a general-purpose computing device. The components of computer

system/server 12 may include, but are not limited to, one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including system memory 28 to processor 16.

[0122] Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0123] Computer system/server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer system/server 12, and it includes both volatile and non-volatile media, removable and non removable media.

[0124] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer system/server 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Although not shown, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk ( e.g ., a "floppy disk"), and an optical disk drive for reading from or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM or other optical media can be provided. In such instances, each can be connected to bus 18 by one or more data media interfaces. As will be further depicted and described below, memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.

[0125] Program/utility 40, having a set (at least one) of program modules 42, may be stored in memory 28 by way of example, and not limitation, as well as an operating system, one or more application programs, other program modules, and program data. Each of the operating system, one or more application programs, other program modules, and program data or some combination thereof, may include an implementation of a networking environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the disclosure as described herein.

[0126] Computer system/server 12 may also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with computer system/server 12; and/or any devices (e.g, network card, modem, etc.) that enable computer system/server 12 to communicate with one or more other computing devices. Such communication can occur via Input/Output (I/O) interfaces 22. Still yet, computer system/server 12 can communicate with one or more networks such as a local area network (LAN), a general wide area network (WAN), and/or a public network ( e.g ., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other components of computer system/server 12 via bus 18. It should be understood that although not shown, other hardware and/or software components could be used in conjunction with computer system/server 12. Examples, include, but are not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.

[0127] The present disclosure may include a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present disclosure.

[0128] The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non- exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media ( e.g ., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.

[0129] Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.

[0130] Computer readable program instructions for carrying out operations of the present disclosure may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the“C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user’s computer, partly on the user’s computer, as a stand-alone software package, partly on the user’s computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user’s computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present disclosure.

[0131] Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

[0132] These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.

[0133] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

[0134] The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions. [0135] The descriptions of the various embodiments of the present disclosure have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.