Data is: 0 1
0 1 2
1 1 4
2 1 0
3 10 2
4 10 4
5 10 0
Iteration 0
Output exceeds the [size limit](command:workbench.action.openSettings?%5B%22notebook.output.textLineLimit%22%5D). Open the full output data [in a text editor](command:workbench.action.openLargeOutput?5a07abf9-11ba-4018-b8a5-3504edf05547)---------------------------------------------------------------------------
QiskitError Traceback (most recent call last)
Cell In[10], line 4
2 X = pd.DataFrame(np.array([[1, 2], [1, 4], [1, 0], [10, 2], [10, 4], [10, 0]]))
3 qk_means = QuantumKMeans(backend, n_clusters=2, verbose=True)
----> 4 qk_means.fit(X)
5 print(qk_means.labels_)
File [~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794](https://file+.vscode-resource.vscode-cdn.net/Users/james/sw/k-means/~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794), in QuantumKMeans.fit(self, X, y, batch)
792 else:
793 if self.map_type == 'probability':
--> 794 distances = np.asarray([[distance(point,centroid,self.backend,self.map_type,self.shots,np.array([norms[i],cluster_norms[j]]),noise_model=self.noise_model) for i, point in X.iterrows()] for j, centroid in normalized_clusters.iterrows()])
795 elif self.map_type == 'angle':
796 distances = np.asarray([[distance(point,centroid,self.backend,self.map_type,self.shots,np.array([1,1]),self.norm_relevance,noise_model=self.noise_model) for i, point in X.iterrows()] for j, centroid in normalized_clusters.iterrows()])
File [~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794](https://file+.vscode-resource.vscode-cdn.net/Users/james/sw/k-means/~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794), in (.0)
792 else:
793 if self.map_type == 'probability':
--> 794 distances = np.asarray([[distance(point,centroid,self.backend,self.map_type,self.shots,np.array([norms[i],cluster_norms[j]]),noise_model=self.noise_model) for i, point in X.iterrows()] for j, centroid in normalized_clusters.iterrows()])
795 elif self.map_type == 'angle':
796 distances = np.asarray([[distance(point,centroid,self.backend,self.map_type,self.shots,np.array([1,1]),self.norm_relevance,noise_model=self.noise_model) for i, point in X.iterrows()] for j, centroid in normalized_clusters.iterrows()])
File [~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794](https://file+.vscode-resource.vscode-cdn.net/Users/james/sw/k-means/~/sw/k-means/.env/lib/python3.10/site-packages/qmeans/qkmeans.py:794), in (.0)
792 else:
793 if self.map_type == 'probability':
...
108 unrolled_dag = UnrollCustomDefinitions(
109 self._equiv_lib, self._basis_gates, target=self._target
110 ).run(decomposition)
QiskitError: "Cannot unroll the circuit to the given basis, ['u1', 'u2', 'u3', 'u', 'p', 'r', 'rx', 'ry', 'rz', 'cx', 'cy', 'cz', 'csx', 'cp', 'id', 'x', 'y', 'z', 'h', 's', 'sdg', 'sx', 't', 'tdg', 'swap', 'ccx', 'cswap', 'unitary', 'diagonal', 'initialize', 'cu1', 'cu2', 'cu3', 'rxx', 'ryy', 'rzz', 'rzx', 'mcx', 'mcy', 'mcz', 'mcsx', 'mcp', 'mcu1', 'mcu2', 'mcu3', 'mcrx', 'mcry', 'mcrz', 'mcr', 'mcswap', 'multiplexer', 'kraus', 'delay', 'roerror', 'measure']. Instruction reset not found in equivalence library and no rule found to expand."