Skip to content

Commit

Permalink
Merge pull request #305 from Qulacs-Osaka/qkrr_fit
Browse files Browse the repository at this point in the history
predict by fitted model
  • Loading branch information
forest1040 authored Sep 10, 2024
2 parents fed310d + ea20bf0 commit 2dcefce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skqulacs/qkrr/qkrr.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,5 @@ def predict(self, xs: NDArray[np.float_]) -> NDArray[np.float_]:
x_qc = self.circuit.run(xs[i])
for j in range(len(self.data_states)):
kar[i][j] = abs(inner_product(x_qc, self.data_states[j])) ** 2
predicted: NDArray[np.float_] = self.krr.predict(kar)
predicted: NDArray[np.float_] = self.kernel_ridge_tuned.predict(kar)
return predicted

0 comments on commit 2dcefce

Please sign in to comment.