Bengali
ভাষাসমূহ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



QSVC

class QSVC(*args, quantum_kernel=None, **kwargs)[source]

Bases: sklearn.svm._classes.SVC

Quantum Support Vector Classifier.

This class shows how to use a quantum kernel for classification. The class extends sklearn.svm.SVC, and thus inherits its methods like fit and predict used in the example below. Read more in the sklearn user guide.

Example

qsvc = QSVC(quantum_kernel=qkernel)
qsvc.fit(sample_train,label_train)
qsvc.predict(sample_test)
প্যারামিটার
  • quantum_kernel (Optional[QuantumKernel]) -- QuantumKernel to be used for classification.

  • *args -- Variable length argument list to pass to SVC constructor.

  • **kwargs -- Arbitrary keyword arguments to pass to SVC constructor.

Attributes

quantum_kernel

Returns quantum kernel

Methods