This repository implements the K-means clustering algorithm using quantum state encoding for classical data points and encodes them to Quantum.
-
generate_random_data
: Generates a NumPy array of random data with one column . -
ground_state
: Returns a NumPy array representing the ground state (|0> state). -
initialize_centroids
: Randomly initializes k centroids from the data points. -
encode_data
: Encodes classical data points into quantum states using an RXGate. -
findClosestCentroids
: Computes the centroid memberships for every encoded data point. -
computeCentroids
: Returns the new centroids by computing the means of the data points assigned to each centroid. -
K_means_Quantum_clustering
: Performs K-means clustering on classical data points using quantum state encoding.