技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
qiskit-machine-learning【数据与研究】Guides public Qiskit Machine Learning workflows for quantum classifiers and regressors, quantum kernels, QNNs and gradients, optimizers, datasets, circuits, reference primitives, and PyTorch connectors.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill when a task asks how to install or use the public
qiskit-machine-learning package, build a quantum machine-learning model,
compute a quantum kernel, construct a QNN, select an optimizer, generate a
built-in dataset, use reference primitives, or connect a QNN to PyTorch.
This skill describes package version 1.0.0 evidence from Qiskit Machine
Learning commit 3bdcce7e39aaca0700a7a7fcfba79230a8825a41; read
repo-provenance.md before deciding whether a
checkout is stale.
Install the public distribution rather than depending on a source checkout:
python -m pip install qiskit-machine-learning
python -c "import qiskit_machine_learning as qml; print(qml.__version__)"
The base package requires Python >=3.10, Qiskit >=2.0, NumPy, SciPy,
scikit-learn, and dill. Add only the extras needed by the requested workflow:
python -m pip install 'qiskit-machine-learning[torch]' for
TorchConnector and PyTorch autograd.python -m pip install 'qiskit-machine-learning[sparse]' for sparse arrays.nlopt separately for the NLopt optimizer family.qiskit-aer only when an Aer backend is explicitly selected.Run scripts/check_env.py for a public import and optional-backend diagnosis;
read its --help output before adding --require-* gates. The helper does not
download data, contact a service, or require the original repository.
A task may cross routes. For example, a VQC request starts in algorithms,
then follows qnn-gradients for a custom QNN and optimizers for detailed
noise-aware tuning. A QSVC request starts in algorithms but follows
kernels-fidelity when the kernel matrix or fidelity primitive is the issue.
X as a numeric (n_samples, n_features) array and check that the
feature map, circuit parameters, and qubit count agree before fitting.qiskit_machine_learning.utils.algorithm_globals.random_seed when
reproducibility matters, and report the actual primitive/backend used.dill model files as trusted executable artifacts; record package,
primitive, circuit, preprocessing, and optimizer versions alongside them.Read api-surface.md for the public family map, migration-and-sharp-bits.md for V2 migration and layout failures, and troubleshooting.md for cross-cutting installation, optional-dependency, and runtime recovery.