The currently claimed embodiments of present invention relate to quantum computers, methods, and executable code, and more specifically, to quantum computers, methods, and executable code to initialize 2n input values associated with n qubits.
Classical neural networks can apply data with many features, for example, high-dimensional data, such as data having 64 dimensions or greater. The term “classical” here refers to neural networks that are conventional, i.e., not quantum neural networks. Currently, quantum neural networks assign one feature per qubit. NISQ (Noisy Intermediate Scale Quantum) devices may have more than 16 qubits, for example, 50 to 100 qubits. However, with a one-qubit-per-feature approach, NISQ devices can be limited to processing data having at most 50-100 features.
According to an embodiment of the present invention, a quantum computational device includes a plurality n of qubits, each qubit comprising at least two quantum states and having associated therewith 2n product states. The quantum computational device includes an initialization circuit configured to receive up to 2n input values and to associate the up to 2n input values with up to 2n of the 2n product states to provide an input vector. The quantum computational device includes a processing circuit configured to communicate with the initialization circuit to receive the input vector and to provide an output value based on the input vector.
According to an embodiment of the present invention, a method of performing a quantum computation includes initializing 2n product states of an n-qubit circuit with up to 2n input values to provide an input vector, and processing the input vector to provide an output.
According to an embodiment of the present invention, a computer-readable medium comprises code which when executed by a quantum computer causes the quantum computer to: initialize 2n product states of an n-qubit circuit of the quantum computer with up to 2n input values to provide an input vector, and process the input vector to provide an output.
One possible approach would be to down-sample, for example, reducing 28*28 pixels to 4*4 pixels. This would require 4×4=16 qubits by the conventional quantum neural network approach. However, as one can see in the lower portion of
and |1
, the two-qubit system has 22=4 product states: |0
|10
=|00
; |0
|1
=|01
; |1
|0
=|10
; and |1
|1
=|11
. Therefore, an amplitude vector 304 can be formed by assigning each feature to one of the four product states. The general concepts of the current invention are not limited to this particular example. For example, linear combinations of the product states, for example to provide four orthogonal basis states, could alternatively be used. Therefore, in this example, only two qubits are needed according to this embodiment rather than the four required for the conventional quantum neural network.
Using similar notation as above, a three qubit system according to an embodiment of the current invention has product states |000, |001
, |010
, |011
, |100
, |101
, |110
, |111
, which is 23=8 states. In this case, only three qubits are needed for eight features rather than eight qubits according to the conventional approach. More generally, n qubits according to an embodiment of the current invention can accommodate 2n features. For example, 6 qubits can accommodate 64 features, and 16 qubits can accommodate 65,536 features.
According to an embodiment of the current invention, the initialization circuit 404 is an input layer of a quantum neural network, and the quantum computational device 400 is the quantum neural network. According to an embodiment of the current invention, the processing circuit 408 is an intermediate layer and an output layer of the quantum neural network. In other embodiments, processing circuit 408 could also include one or more hidden layers of a quantum neural network. The general concepts of a quantum neural network according to some embodiments of the current invention are not limited to any particular number of neural network layers. According to an embodiment of the current invention, the initialization circuit 404 associates each of the up to 2n input values with a corresponding one product state of the plurality n of qubits 402. According to an embodiment of the current invention, each of the 2n product states is orthogonal to each other of the 2n product states.
According to an embodiment of the current invention, the initialization circuit associates each of the up to 2n input values with a corresponding one of a plurality of linear combinations of the 2n product states. According to an embodiment of the current invention, each of the plurality of linear combinations is orthogonal to each other of the plurality of linear combinations.
According to an embodiment of the current invention, the quantum computational device 400 includes at least four qubits having associated therewith up to 16 product states. The initialization circuit is configured to receive up to 16 input values and to associate the up to 16 input values with up to 16 of the 16 product states to provide an input vector.
According to an embodiment of the current invention, the quantum computational device 400 includes at least sixteen qubits having associated therewith up to 65,536 product states. The initialization circuit is configured to receive up to 65,536 input values and to associate the up to 65,536 input values with up to 65,536 of the 65,536 product states to provide an input vector.
According to an embodiment of the current invention, each of the 2n input values corresponds to a feature of a data point having 2n dimensions.
Another embodiment of the current invention is directed to a method of performing a quantum computation.
According to an embodiment of the current invention, initializing includes initializing using an input layer of a quantum neural network. According to an embodiment of the current invention, processing the input vector includes processing the input vector using an intermediate layer and an output layer of the quantum neural network.
According to an embodiment of the current invention, initializing includes associating each of the up to 2n input values with a corresponding one of the 2n product states. According to an embodiment of the current invention, each of the 2n product states is orthogonal to each other of the 2n product states. Alternatively, initializing may include associating each of the up to 2n input values with a corresponding one of a plurality of linear combinations of the 2n product states. Each of the plurality of linear combinations may be orthogonal to each other of the plurality of linear combinations.
Another embodiment of the current invention is directed to a computer-readable medium that includes computer-executable code which when executed by a quantum computer causes the quantum computer to initialize 2n product states of an n-qubit circuit of the quantum computer with up to 2n input values to provide an input vector, and process the input vector to provide an output.
According to an embodiment of the current invention, the computer-executable code when read by a computer causes the computer to initialize the 2n product states by associating each of the up to 2n input values with a corresponding one of the 2n product states. Each of the 2n product states may be orthogonal to each other of the 2n product states.
The descriptions of the various embodiments of the present invention 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.
Number | Date | Country | |
---|---|---|---|
62837555 | Apr 2019 | US |