Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
UNSUPERVISED CLUSTERING IN QUANTUM FEATURE SPACES USING QUANTUM SIMILARITY MATRICES
Document Type and Number:
WIPO Patent Application WO/2020/260476
Kind Code:
A1
Abstract:
A method of performing unsupervised clustering of data points includes determining a number of qubits to include in a quantum processor based on feature dimensions of each data point. The method includes, for each pair of data points, executing a quantum circuit on a quantum processor having the determined number of qubits. The quantum circuit includes a feature map template circuit parameterized with a first plurality of rotations, a backward feature map template circuit parameterized with a second plurality of rotations, and a measurement circuit that outputs a similarity measure. The method includes creating a similarity matrix based on the similarity measure for each pair of data points, and inputting the similarity matrix to a classical clustering algorithm to cluster the data points. The feature map template circuit and the backward feature map template circuit each use quantum properties of superposition and entanglement of the qubits of the quantum processor.

Inventors:
PHAN ANNA (AU)
GREENBERG DON (US)
Application Number:
PCT/EP2020/067867
Publication Date:
December 30, 2020
Filing Date:
June 25, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
IBM (US)
IBM UK (GB)
International Classes:
G06N20/00; G06N10/00
Domestic Patent References:
WO2015085190A22015-06-11
Other References:
SAMUEL S MENDELSON ET AL: "Quantum-Assisted Clustering Algorithms for NISQ-Era Devices", 27 June 2019 (2019-06-27), pages 1 - 12, XP055732001, Retrieved from the Internet [retrieved on 20200918]
ESMA AÏMEUR ET AL: "Quantum speed-up for unsupervised learning", MACHINE LEARNING, KLUWER ACADEMIC PUBLISHERS-PLENUM PUBLISHERS, NE, vol. 90, no. 2, 31 August 2012 (2012-08-31), pages 261 - 287, XP035163790, ISSN: 1573-0565, DOI: 10.1007/S10994-012-5316-5
SANJAY CHAKRABORTY ET AL: "Design and Analysis of a Quantum Circuit to Cluster a Set of Data Points", ADVANCES IN SIGNAL PROCESSING, 1 January 2016 (2016-01-01), pages 7 - 12, XP055732006, Retrieved from the Internet [retrieved on 20200921], DOI: 10.13189/asp.2016.040201
OTTERBACH J S ET AL: "Unsupervised Machine Learning on a Hybrid Quantum Computer", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 15 December 2017 (2017-12-15), XP080846539
SUMSAM ULLAH KHAN ET AL: "K-Means Clustering on Noisy Intermediate Scale Quantum Computers", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 26 September 2019 (2019-09-26), XP081483748
Attorney, Agent or Firm:
GRAHAM, Timothy (GB)
Download PDF:
Claims:
CLAIMS

1. A method of performing unsupervised clustering of a plurality of data points, comprising:

determining a number of qubits to include in a quantum processor based on a number of feature dimensions of each of said plurality of data points;

for each pair of data points of said plurality of data points, executing a quantum circuit on a quantum processor having said determined number of qubits, wherein said quantum circuit comprises:

a feature map template circuit parameterized with a first plurality of rotations, wherein said first plurality of rotations are based on feature values of a first data point of said pair of data points;

a backward feature map template circuit parameterized with a second plurality of rotations, wherein said second plurality of rotations are based on feature values of a second data point of said pair of data points; and a measurement circuit that outputs a similarity measure for said pair of data points;

creating a similarity matrix for said plurality of data points based on said similarity measure for each pair of data points; and

inputting said similarity matrix to a classical clustering algorithm to cluster said plurality of data points, wherein said feature map template circuit and said backward feature map template circuit each use quantum properties of superposition and entanglement of said qubits of said quantum processor.

2. The method according to claim 1 , wherein determining a number of qubits to include in said quantum processor based on a number of feature dimensions of each of said plurality of data points comprises including one qubit in said quantum processor for each feature dimension.

3. The method according to either of the preceding claims, wherein said feature map template circuit includes a plurality of entangling two-qubit quantum gates.

4. The method according to any of the preceding claims, wherein said feature map template circuit comprises, for each feature dimension, a rotation parameterized based on a feature value of a first data point of said pair of data points for said feature dimension.

5. The method according to claim 4, wherein said feature map template circuit comprises, for each feature dimension, a plurality of rotations parameterized based on a feature value of a first data point of the plurality of data points for said feature dimension.

6. The method according to either of claims 4 or 5, wherein said feature map template circuit comprises, for a first data point of the pair of data points, a rotation parameterized based on a plurality of feature values of said first data point.

7. The method according to any of the preceding claims, wherein said backward feature map template circuit comprises, for each feature dimension, at least one rotation parameterized based on a feature value of a second data point of said pair of data points for said feature dimension.

8. The method according to any of the preceding claims, further comprising constructing said feature map template circuit and said backward feature map template circuit based on said classical clustering algorithm.

9. The method according to any of the preceding claims, wherein said classical clustering algorithm is a spectral clustering algorithm.

10. The method according to any of the preceding claims, wherein said measurement circuit outputs a measurement value for each qubit included in said quantum processor.

11. The method according to claim 10, wherein said measurement value for each qubit is read out to a corresponding classical bit.

12. The method according to either of claims 10 or 11, wherein each of said corresponding classical bits is combined to provide said similarity measure.

13. A hybrid quantum-classical system, comprising:

a quantum processor, said quantum processor having a number of qubits corresponding to a number of feature dimensions of each data point of a plurality of data points to be clustered, said quantum processor configured to:

for each pair of data points of said plurality of data points, execute a quantum circuit comprising:

a feature map template circuit parameterized with a first plurality of rotations, wherein said first plurality of rotations are based on feature values of a first data point of said pair of data points;

a backward feature map template circuit parameterized with a second plurality of rotations, wherein said second plurality of rotations are based on feature values of a second data point of said pair of data points; and a measurement circuit that outputs a similarity measure for said pair of data points, wherein said feature map template circuit and said backward feature map template circuit each use quantum properties of superposition and entanglement of said qubits of said quantum processor; and

a classical processor in communication with said quantum processor, said classical processor configured to:

receive said similarity measure for each pair of said plurality of data points;

create a similarity matrix for said plurality of data points based on said similarity measure for each pair of data points; and execute a classical clustering algorithm on said similarity matrix to cluster said plurality of data points.

14. The hybrid quantum-classical system according to claim 13, wherein said classical processor is further configured to:

assign each data point of said plurality of data points to a cluster; and

output, for each data point of said plurality of data points, in indication of said cluster.

15. The hybrid quantum-classical system according to either of claims 13 or 14, wherein said feature map template circuit includes a plurality of entangling two-qubit quantum gates.

16. The hybrid quantum-classical system according to any of claims 13 to 15, wherein said feature map template circuit comprises, for each feature dimension, a rotation parameterized based on a feature value of a first data point of said pair of data points for said feature dimension.

17. The hybrid quantum-classical system according to claim 16, wherein said feature map template circuit comprises, for each feature dimension, a plurality of rotations parameterized based on a feature value of a first data point of said pair of data points for said feature dimension.

18. The hybrid quantum-classical system according to either of claims 16 or 17, wherein said feature map template circuit comprises, for a first data point of said pair of data points, a rotation parameterized based on a plurality of feature values of said first data point.

19. The hybrid quantum-classical system according to any of claims 13 to 18, wherein said backward feature map template circuit comprises, for each feature dimension, at least one rotation parameterized based on a feature value of a second data point of said pair of data points for said feature dimension.

20. The hybrid quantum-classical system according to any of claims 13 to 19, further comprising constructing said feature map template circuit and said backward feature map template circuit based on said classical clustering algorithm.

21. The hybrid quantum-classical system according to any of claims 13 to 20, wherein said classical clustering algorithm is a spectral clustering algorithm.

22. The hybrid quantum-classical system according to any of claims 13 to 21, wherein said measurement circuit outputs a measurement value for each qubit included in said quantum processor.

23. The hybrid quantum-classical system according to claim 22, wherein said measurement value for each qubit is read out to a corresponding classical bit in said classical processor.

24. The hybrid quantum-classical system according to claim 23, wherein each of said corresponding classical bits is combined to provide said similarity measure.

Description:
UNSUPERVISED CLUSTERING IN QUANTUM FEATURE SPACES USING QUANTUM

SIMILARITY MATRICES

Technical Field

[0001] The present invention relates to unsupervised clustering, and more specifically, to unsupervised clustering in quantum feature spaces using quantum similarity matrices.

BACKGROUND

[0002] Unsupervised learning is a critical component of many big data workflows, especially in pharmaceuticals and biosciences. When data contains massive numbers of measured data, often labeling is impossible at scale, and clustering is relied on to process the data into interpretable groups.

[0003] Therefore, there is a need in the art to address the aforementioned problem.

SUMMARY

[0004] Viewed from a first aspect, the present invention provides a method of performing unsupervised clustering of a plurality of data points, comprising: determining a number of qubits to include in a quantum processor based on a number of feature dimensions of each of said plurality of data points; for each pair of data points of said plurality of data points, executing a quantum circuit on a quantum processor having said determined number of qubits, wherein said quantum circuit comprises: a feature map template circuit parameterized with a first plurality of rotations, wherein said first plurality of rotations are based on feature values of a first data point of said pair of data points; a backward feature map template circuit parameterized with a second plurality of rotations, wherein said second plurality of rotations are based on feature values of a second data point of said pair of data points; and a measurement circuit that outputs a similarity measure for said pair of data points; creating a similarity matrix for said plurality of data points based on said similarity measure for each pair of data points; and inputting said similarity matrix to a classical clustering algorithm to cluster said plurality of data points, wherein said feature map template circuit and said backward feature map template circuit each use quantum properties of superposition and entanglement of said qubits of said quantum processor.

[0005] Viewed from a further aspect, the present invention provides a hybrid quantum-classical system, comprising: a quantum processor, said quantum processor having a number of qubits corresponding to a number of feature dimensions of each data point of a plurality of data points to be clustered, said quantum processor configured to: for each pair of data points of said plurality of data points, execute a quantum circuit comprising: a feature map template circuit parameterized with a first plurality of rotations, wherein said first plurality of rotations are based on feature values of a first data point of said pair of data points; a backward feature map template circuit parameterized with a second plurality of rotations, wherein said second plurality of rotations are based on feature values of a second data point of said pair of data points; and a measurement circuit that outputs a similarity measure for said pair of data points, wherein said feature map template circuit and said backward feature map template circuit each use quantum properties of superposition and entanglement of said qubits of said quantum processor; and a classical processor in communication with said quantum processor, said classical processor configured to: receive said similarity measure for each pair of said plurality of data points; create a similarity matrix for said plurality of data points based on said similarity measure for each pair of data points; and execute a classical clustering algorithm on said similarity matrix to cluster said plurality of data points.

[0006] According to an embodiment of the present invention, a method of performing unsupervised clustering of a plurality of data points includes determining a number of qubits to include in a quantum processor based on a number of feature dimensions of each of the plurality of data points. The method includes, for each pair of data points of the plurality of data points, executing a quantum circuit on a quantum processor having the determined number of qubits. The quantum circuit includes a feature map template circuit parameterized with a first plurality of rotations, wherein the first plurality of rotations are based on feature values of a first data point of the pair of data points. The quantum circuit further includes a backward feature map template circuit parameterized with a second plurality of rotations, wherein the second plurality of rotations are based on feature values of a second data point of the pair of data points. The quantum circuit further includes a measurement circuit that outputs a similarity measure for the pair of data points. The method includes creating a similarity matrix for the plurality of data points based on the similarity measure for each pair of data points, and inputting the similarity matrix to a classical clustering algorithm to cluster the plurality of data points. The feature map template circuit and the backward feature map template circuit each use quantum properties of superposition and entanglement of the qubits of the quantum processor.

[0007] According to an embodiment of the present invention, a hybrid quantum-classical system includes a quantum processor. The quantum processor has a number of qubits corresponding to a number of feature dimensions of each data point of a plurality of data points to be clustered. The quantum processor is configured to, for each pair of data points of the plurality of data points, execute a quantum circuit. The quantum circuit includes a feature map template circuit parameterized with a first plurality of rotations, wherein the first plurality of rotations are based on feature values of a first data point of the pair of data points. The quantum circuit includes a backward feature map template circuit parameterized with a second plurality of rotations, wherein the second plurality of rotations are based on feature values of a second data point of the pair of data points. The quantum circuit includes a measurement circuit that outputs a similarity measure for the pair of data points. The feature map template circuit and the backward feature map template circuit each use quantum properties of superposition and entanglement of the qubits of the quantum processor. The hybrid quantum-classical system includes a classical processor in communication with the quantum processor. The classical processor is configured to receive the similarity measure for each pair of the plurality of data points, create a similarity matrix for the plurality of data points based on the similarity measure for each pair of data points, and execute a classical clustering algorithm on the similarity matrix to cluster the plurality of data points.

BRIEF DESCRIPTION OF THE DRAWINGS

[0008] The present invention will now be described, by way of example only, with reference to preferred embodiments, as illustrated in the following figures:

[0009] FIG. 1 is a flowchart that illustrates a method 100 of performing unsupervised clustering of a plurality of data points according to an embodiment of the present invention.

[0010] FIG. 2 is a schematic illustration of an example of a feature map template circuit according to an embodiment of the present invention.

[0011] FIG. 3 is a schematic illustration of an example of a quantum circuit according to an embodiment of the present invention.

[0012] FIG. 4 is a schematic illustration of a hybrid quantum-classical system according to an embodiment of the present invention.

[0013] FIG. 5 shows simulated and experimental results for a data set.

DETAILED DESCRIPTION

[0014] Clustering is the task of grouping a set of objects in such a way that objects in the same cluster are more similar to each other than to those in other clusters. Unsupervised clustering is unsupervised learning that categorizes samples from a high-dimensional distribution into a discrete number of clusters, without requiring training data to do so. Clustering algorithms operate on a notion of distance between samples. In the simplest case, the dot product is used.

[0015] Common massive-scale examples include grouping ligands when searching for biological therapies or categorizing cells by RNA sequencing or protein presences. Clustering is also used in marketing to identify groups of customers with particular preferences, allowing companies to target specific customers for specific product advertisements. [0016] Spectral clustering algorithms are clustering algorithms that make use of the eigenvalues of a provided similarity matrix of the data to allow clustering in a feature space which follows a more natural dimensionality of the data. The performance of the spectral clustering algorithm depends on how well the provided similarity matrix encapsulates the distance between data points. For example, if two clusters are separated radially in three dimensions, an algorithm using a three dimensional radial distance measure to calculate the similarity matrix will outperform a one dimensional linear distance measure. In addition to spectral clustering, there are other clustering algorithms that use a provided similarity matrix to determine clusters. Examples of these include DBSCAN and agglomerative hierarchical clustering.

[0017] In the biological and chemical cases mentioned above, as well as many others, the ligands in question are more naturally described by their high-dimensional quantum characterization and their quantum distance to one another. This distance is inaccessible to a classical computer, because it requires the calculation of a wavefunction exponential in the size of the molecule, and values of the ground truth classical data are likely too chaotic and nonlinear for distance measurements to be meaningful. This is the heart of the difficulty of these fields. Therefore, if we want to accurately cluster these systems to be able to analyze or isolate important groups, we must use a quantum computer to produce the relationships between data points. The method and system described herein use a quantum kernel to represent the distance between two samples in Hilbert space.

[0018] Even for non-biological data, using a quantum distance can give us access to feature spaces inaccessible to a classical computer, extending the range of available clustering avenues exponentially. In the near term, we will only have access to noisy intermediate-scale quantum (NISQ) systems, and therefore must be very selective about how we design our quantum methods when we use these devices to maximize the opportunity for quantum advantage. Methods using shorter circuits in hybrid quantum-classical systems are the most promising frontier.

[0019] FIG. 1 is a flowchart that illustrates a method 100 of performing unsupervised clustering of a plurality of data points according to an embodiment of the present invention. The method 100 includes determining a number of qubits to include in a quantum processor based on a number of feature dimensions of each of the plurality of data points 102. The method 100 further includes, for each pair of data points of the plurality of data points, executing a quantum circuit on the quantum processor having the determined number of qubits 104. The quantum circuit includes a feature map template circuit parameterized with a first plurality of rotations. The first plurality of rotations are based on feature values of a first data point of the pair of data points. The quantum circuit also includes a backward feature map template circuit parameterized with a second plurality of rotations. The second plurality of rotations are based on feature values of a second data point of the pair of data points. The quantum circuit also includes a measurement circuit that outputs a similarity measure for the pair of data points. The method 100 includes creating a similarity matrix for the data set based on the similarity measure for each pair of data points 106. The method 100 includes inputting the similarity matrix to a classical clustering algorithm to cluster the plurality of data points 108. The feature map template circuit and the backward feature map template circuit each use quantum properties of superposition and entanglement of the qubits of the quantum processor.

[0020] The feature values of a data point with n feature dimensions may be represented by (feature value_1 , feature value_2, ... , feature valueji). For example, a data point with two feature dimensions may have a value (0.1 , 0.2), where 0.1 is the feature value for the first feature, and 0.2 is the value for the second feature. It is assumed herein that each data point in the plurality of data points has the same number of feature dimensions.

[0021] According to an embodiment of the present invention, one qubit is included in the quantum processor for each feature dimension. However, the embodiments of the invention are not limited to a single qubit per features. The number of qubits in the quantum processor could be greater than or less than the number of features

[0022] According to an embodiment of the present invention, the feature map template circuit includes a plurality of entangling two-qubit quantum gates. For example, the feature map template circuit may include a plurality of CNOT gates.

[0023] FIG. 2 is a schematic illustration of an example of a feature map template circuit 200 according to an embodiment of the present invention. The feature map template circuit 200 operates on two qubits, qo 202 and qi 204. The qubits qo 202 and qi 204 may be data qubits, and may each be implemented using a plurality of physical qubits. The qubits qo 202 and qi 204 may be initialized in the ground state 10), for example, as shown in FIG. 2.

The feature map template circuit 200 includes a plurality of single- and two-qubit gates. The gates may take one or more arguments. For example, the Ui gates 206, 208, 210 in FIG. 2 may be single argument gates, while the U2 gates 212, 214 in FIG. 2 may be two argument gates. Higher argument gates may also be included in the feature map template circuit.

[0024] The gates may be, for example, rotation operators. The rotations may be parameterized based on one or more feature values of a data point. For example, the argument of the Ui gate 206 in FIG. 2 may depend on a first feature value of the data point. The argument of the Ui gate 208 in FIG. 2 may depend on a second feature value of the data point. The argument of the Ui gate 210 in FIG. 2 may depend on both the first feature value and the second feature value of the data point. For example, the argument may depend on a product of the first feature value and the second feature value.

[0025] The feature map template circuit 200 may include entangling two-qubit quantum gates, for example, CNOT gates 216, 218. The feature map template circuit 200 may include a series of gates that are repeated. For example, gates 206-218 may be repeated, as shown in FIG. 2. The number of times that the series of gates is repeated in the feature map template may depend on the complexity of the feature map. For a highly complex feature map, the series of gates may be repeated 10, 20, 50, or more times.

[0026] The feature map template circuit 200 is meant to be a non-limiting example. Alternative types, combinations, and numbers of gates may be included in the feature map template. Further, the gates may be included in a different order than that shown in FIG. 2. The feature map template circuit may act on more than two qubits. For example, for data points having n feature dimensions, the feature map template circuit may act on n qubits.

[0027] The feature map template circuit may be combined with a backward feature map template circuit and a measurement circuit to form a quantum circuit. The backward feature map template circuit according to an embodiment of the invention includes a series of gates that "undo” the rotations of the gates of the feature map template circuit. The rotations of the backward feature map template circuit may be parameterized by the feature values of a second data point. Thus, by performing a first series of rotations based on the feature values of the first data point, and then performing a second series of "undoing” rotations based on the feature values of the second data point, a quantum analog to a distance between the two data points can be obtained. This quantum distance can be used to construct a similarity matrix.

[0028] FIG. 3 is a schematic illustration of an example of a quantum circuit 300 according to an embodiment of the present invention. The quantum circuit 300 is used to provide a similarity measure for a pair of two-dimensional data points whose feature values can be represented as (0.1 , 0.2) and (0.3, 0.4). For a data set that includes more than two data points, the quantum circuit is implemented for each pair of data points.

[0029] The quantum circuit 300 acts on a quantum processor having two qubits, qo 302 and qi 304. The quantum circuit 300 includes a feature map template circuit 306, a backward feature map template circuit 308, and a measurement circuit 310. The feature map template circuit 306 includes gates that are parameterized based on the feature values of the first data point, (0.1 , 0.2).

[0030] According to an embodiment of the present invention, the feature map template circuit 306 includes, for each feature dimension, a rotation parameterized based on a feature value of a first data point of the pair of data points for the feature dimension. For example, in FIG. 3, the feature map template circuit 306 includes a Ui gate 312 that is parameterized based on the first feature value, 0.1 , of the first data point. In the example illustrated in FIG. 3, the first feature value is multiplied by 2, and the Ui gate 312 is parameterized based on the product,

2*0.1 =0.2. The feature map template circuit 314 also includes a Ui gate 308 that is parameterized based on the second feature value, 0.2, of the first data point. In the example illustrated in FIG. 3, the second feature value is multiplied by 2, and the Ui gate 314 is parameterized based on the product, 2*0.2=0.4. [0031] According to an embodiment of the present invention, the feature map template circuit 306 includes, for each feature dimension, a plurality of rotations parameterized based on a feature value of a first data point of the plurality of data points for the feature dimension. For example, in FIG. 3, the feature map template circuit 306 includes a first Ui gate 312 parameterized based on the first feature value, 0.1 , of the first data point, and a second Ui gate 316 parameterized based on the first feature value, 0.1 , of the first data point. As described above, the feature map template circuit may include a series of operations that is repeated two or more times.

[0032] According to an embodiment of the present invention, the feature map template circuit 306 includes, for a first data point of the pair of data points, a rotation parameterized based on a plurality of feature values of the first data point. For example, the feature map template circuit 306 includes a Ui gate 318 that is parameterized based on the first feature value, 0.1 , and the second feature value, 0.2, of the first data point. As shown in FIG. 3, the Ui gate 318 is parameterized based on 17.89, which is calculated based on the first and second feature values: 17.89 = 2* (TT-0.1)( TT-0.2). This number is provided as a non-limiting example of how a rotation may be parameterized based on a plurality of feature values of a data point.

[0033] The backward feature map template circuit 308 includes gates that are parameterized based on the feature values of the second data point, (0.3, 0.4). According to an embodiment of the present invention, the backward feature map template circuit 308 includes, for each feature dimension, at least one rotation parameterized based on a feature value of a second data point of the pair of data points for the feature dimension. For example, the backward feature map template circuit 308 includes a Ui gate 318 that is parameterized based on the first feature value, 0.3, of the second data point. The backward feature map template circuit 308 also includes a Ui gate 320 that is parameterized based on the second feature value, 0.4, of the second data point.

[0034] The backward feature map template circuit 308 is followed by a measurement circuit 310. The measurement circuit outputs a measurement value for each qubit included in the quantum processor. The measurement for each qubit may be read out to a corresponding classical bit. For example in FIG. 3, the measurement for qubit qo 302 may be read out to classical bit co 322, and the measurement for qubit qi 304 may be read out to classical bit ci 324. Each of the corresponding classical bits is combined to provide the similarity measure. For example, a two bit number dcO can be read as the value of the similarity measure (e.g. 11 = 3). For two data points i and j, the similarity measure can be used as the i, i** 1 element of the similarity matrix. The similarity measure may be directly input into the similarity matrix, or may be used to determine the number to be input into the similarity matrix. For example, the number may be found by multiplying, dividing, or taking an inverse of the similarity measure. The number may be found by inputting the similarity measure into a function that outputs the number to be used in the similarity matrix. [0035] FIG. 4 is a schematic illustration of a hybrid quantum-classical system 400 according to an embodiment of the present invention. The system 400 includes a quantum processor 402. The quantum processor 402 has a number of qubits 404, 406 corresponding to a number feature dimensions of each data point of plurality of data points to be clustered. The quantum processor 402 is configured to, for each pair of data points of the plurality of data points, execute a quantum circuit. The quantum circuit includes a feature map template circuit parameterized with a first plurality of rotations, wherein the first plurality of rotations are based on feature values of a first data point of the pair of data points. The quantum circuit includes a backward feature map template circuit parameterized with a second plurality of rotations, wherein the second plurality of rotations are based on feature values of a second data point of the pair of data points. The quantum circuit includes a measurement circuit that outputs a similarity measure for the pair of data points. The feature map template circuit and the backward feature map template circuit each use quantum properties of superposition and entanglement of the qubits of the quantum processor. The feature map template circuit, backward feature map template circuit, and measurement circuit of the quantum processor 402 may have the attributes described above with reference to FIGs. 1-3.

[0036] The hybrid quantum-classical system 400 includes a classical processor 408 in communication with the quantum processor 402. The classical processor is configured to receive the similarity measure for each pair of the plurality of data points, and create a similarity matrix for the plurality of data points based on the similarity measure for each pair of data points. The classical processor 408 is further configured to execute a classical clustering algorithm on the similarity matrix to cluster the plurality of data points.

[0037] According to an embodiment of the present invention, the classical processor 408 is further configured to assign each data point of the plurality of data points to a cluster, and output, for each data point of the plurality of data points, in indication of the cluster.

[0038] The classical processor 408 can be a dedicated "hard-wired” device, or it can be a programmable device. For example, it can be, but is not limited to, a personal computer, a work station, or any other suitable electronic device for the particular application. In some embodiments, it can be integrated into a unit or it can be attachable, remote, and/or distributed.

[0039] According to an embodiment of the present invention, a hybrid quantum-classical system uses a quantum device to calculate the similarity matrix of some data, and then inputs the similarity matrix into a classical spectral clustering algorithm. The system may perform better on data points that can be separated using a quantum feature map compared to an algorithm using a similarity matrix calculated on a classical computer. In particular, the system employs a quantum feature map that makes use of the quantum properties of superposition and entanglement. Achieving the same dimensionality in the feature space on a classical computer would require exponential time (unless the polynomial hierarchy collapses). [0040] We iincorporate a similarity matrix calculated using a quantum device into a spectral clustering algorithm as follows. Starting with the dataset to be clustered, we use the number of feature dimensions to determine the number of qubits to be used in the calculation of the similarity matrix. According to an embodiment of the present invention, the number of qubits is equal to the number of feature dimensions. After determining number of qubits to be used, we calculate the similarity matrix using a quantum circuit that acts on the determined number of qubits. We make sure to select a quantum circuit that includes a feature map template circuit that uses the quantum properties of superposition and entanglement. The feature map template circuit is specially designed to be exponentially hard to simulate classically.

[0041] For each pair of data points, we create and run the quantum circuit to measure the distance between the two data points. The quantum circuit includes one feature map template circuit that is parameterized with rotations equal to the feature values of the first data point. The quantum circuit also includes a backward feature map template circuit that is parameterized with rotations equal to the feature values of the second data point. The quantum circuit includes a measurement circuit that outputs a similarity measure for the pair of data points. The measurement circuit may measure each qubit of the determined number of qubits. The values of the qubits may be read onto classical bits that indicate a similarity measure for the pair of data points. We use the similarity measure for each pair of data points to create a similarity matrix. We input the similarity matrix into a classical clustering algorithm to calculate the clusters in the provided dataset. According to an embodiment of the present invention, the classical clustering algorithm is a spectral clustering algorithm. However, the embodiments of the invention are not limited to spectral clustering algorithms. Other types of clustering algorithms may be used, for example, k-means clustering and density clustering. Further, the quantum circuit may be constructed based on the specific classical clustering algorithm to be used.

[0042] We have implemented and tested this system using a data set for which cluster identifications were known, and therefore the accuracy of the system could be verified. The system was able to identify the two clusters with 100% accuracy, while spectral clustering with classically calculated similarity matrices was completely unable to cluster the data. FIG. 5 shows simulated results 500 and experimental results 502 for one data set, with results for three different measures of clustering: (1) fowlkesjmallows, (2) mutual information, and (3) randjndex. The three different measures of clustering were three different methods of evaluating how well the clustering algorithms performed. For the actual results 502, the quantum circuit was implemented in quantum hardware.

[0043] For each data set, a simulation using a hybrid quantum-classical algorithm was performed for a quantum circuit in combination with one of three classical algorithms: "agglomerative,” "dbscan,” and "spectral.” A value of 1.0 indicates that each of the data points was accurately clustered, while a value below 1.0 indicates inaccurate clustering. As shown in FIG. 5, the value for each simulated hybrid quantum-classical algorithm was 1.0, indicating 100% accuracy. [0044] For each data set, a simulation using a purely classical algorithm was performed for each of four classical algorithms: "linear,” "poly,” "rbf,” and "sigmoid.” As shown in FIG. 5, the purely classical algorithms had much lower accuracy than the hybrid systems.

[0045] The experimental results 502 for the three different measures each have values equal to or very close to 1, indicating high accuracy even when implemented in physical hardware. The results in FIG. 5 highlight the ability of the method and system disclosed herein to accurately cluster data sets that are highly problematic for classical computers.

[0046] 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 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.