Quantum neural network
AssigneeGoogle Inc.
InventorsHartmut Neven, Edward Henry Farhi
Life of this patent
Estimating the term…
Abstract
A quantum neural network architecture. In one aspect, a quantum neural network trained to perform a machine learning task includes: an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state encoding a machine learning task data input, and (ii) a target qubit; a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit; and an output quantum neural network layer comprising a measurement quantum gate that operates on the tar get qubit and provides as output data representing a solution to the machine learning task.
Claims24
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein the machine learning task comprises a binary classification task;
- and
- wherein the machine learning task data input comprises a Boolean function input {0, 1}″ and the solution to the machine learning task comprises a Boolean function output {0, 1}.
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein each intermediate quantum neural network layer comprises (i) single qubit quantum logic gates, (ii) two qubit quantum logic gates, or (iii) both single qubit and two qubit quantum logic gates;
- and
- wherein the single qubit quantum gates comprise single qubit gates of the form exp(-iθXj).
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein each intermediate quantum neural network layer comprises (i) single qubit quantum logic gates, (ii) two qubit quantum logic gates, or (iii) both single qubit and two qubit quantum logic gates;
- and
- wherein the two qubit quantum gates comprise two qubit gates of the form exp(iθZjZk).
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein the sequence of intermediate quantum neural network layers maps the encoded machine learning task data input to an evolved state of the target qubit;
- and
- wherein mapping the encoded machine learning task data input to an evolved state of the target qubit comprises applying a unitary operator to the initial quantum states, the unitary operator being parameterized by quantum logic gate parameters for the quantum logic gates.
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein the data representing a solution to the machine learning task for which the quantum neural network has been trained to perform comprises a measurement result that depends on an evolved quantum state of the multiple qubits and target qubit, wherein the evolved quantum state depends on the multiple quantum logic gates that operate on the multiple qubits and target qubit in each intermediate quantum neural network layer.
A quantum neural network system implemented by one or more quantum processors, the quantum neural network comprising:
- an input quantum neural network layer comprising (i) multiple qubits prepared in an initial quantum state and encoding a machine learning task data input, and (ii) a target qubit prepared in an initial state;
- a sequence of intermediate quantum neural network layers, each intermediate quantum neural network layer comprising multiple quantum logic gates that operate on the multiple qubits and target qubit;
- and
- an output quantum neural network layer comprising a measurement quantum gate that operates on the target qubit and provides, as output, data representing a solution to a machine learning task for which the quantum neural network has been trained to perform;
- wherein the quantum neural network replaces n top layers of a classical deep neural network trained to perform the machine learning task;
- and
- wherein the machine learning task data input comprises an output from the classical deep neural network.
A method for processing a data input using a quantum neural network that has been trained to perform a machine learning task, the method comprising:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode machine learning task data input;
- processing the machine learning task data input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- and
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- wherein the machine learning task comprises a binary classification task;
- and
- wherein the machine learning task data input comprises a Boolean function input {0,1}″ and the solution to the machine learning task comprises a Boolean function output {0, 1}.
A method for processing a data input using a quantum neural network that has been trained to perform a machine learning task, the method comprising:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode machine learning task data input;
- processing the machine learning task data input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- and
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- wherein each intermediate quantum neural network layer comprises (i) single qubit quantum logic gates, (ii) two qubit quantum logic gates, or (iii) both single qubit and two qubit quantum logic gates;
- and
- wherein the single qubit quantum gates comprise single qubit gates of the form (-iθXj).
A method for processing a data input using a quantum neural network that has been trained to perform a machine learning task, the method comprising:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode machine learning task data input;
- processing the machine learning task data input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- and
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- wherein each intermediate quantum neural network layer comprises (i) single qubit quantum logic gates, (ii) two qubit quantum logic gates, or (iii) both single qubit and two qubit quantum logic gates;
- and
- wherein the two qubit quantum gates comprise two qubit gates of the form exp(iθZjZk).
A method for processing a data input using a quantum neural network that has been trained to perform a machine learning task, the method comprising:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode machine learning task data input;
- processing the machine learning task data input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- and
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- wherein processing the data input using the sequence of intermediate quantum neural network layers comprises mapping the encoded machine learning task data input to an evolved state of the target qubit;
- and
- wherein mapping the encoded machine learning task data input to the evolved state of the target qubit comprises applying a unitary operator to the initial quantum states, the unitary operator being parameterized by quantum logic gate parameters for the quantum logic gates.
A method for processing a data input using a quantum neural network that has been trained to perform a machine learning task, the method comprising:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode machine learning task data input;
- processing the machine learning task data input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- and
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- wherein the output representing a solution to the machine learning task comprises a measurement result that depends on an evolved quantum state of the multiple qubits and target qubit, wherein the evolved quantum state depends on the multiple quantum logic gates that operate on the multiple qubits and target qubit in each intermediate quantum neural network layer.
A method for training a quantum neural network, the method comprising:
- obtaining multiple training examples, each training example comprising a machine learning task input paired with a known classification for the machine learning task input;
- and
- training the quantum neural network on the training examples, comprising, for each training example:
- preparing, in an initial quantum state, multiple qubits of an input quantum neural network layer in an initial quantum state to encode the machine learning task input;
- processing the machine learning task input using one or more intermediate quantum neural network layers, wherein each quantum neural network layer comprises multiple quantum logic gates that operate on the multiple qubits and a target qubit that is also in the input quantum neural network layer, the processing comprising, for each intermediate quantum neural network layer and in a sequence, applying quantum logic gates for the intermediate quantum neural network layer to a current quantum state representing the multiple qubits and the target qubit;
- measuring the target qubit by a measurement quantum gate in an output quantum neural network layer to generate an output representing a solution to the machine learning task;
- and
- comparing the generated output to the known classification to determine one or more gate parameter adjustments;
- and
- adjusting values of the gate parameters from initial values to trained values.
Dependencies are inferred from the claim text.