Spike: QuantumSVM feature_map=auto (Qmes-style) - #2
Open
Superagentic-AI wants to merge 1 commit into
Open
Superagentic-AI wants to merge 1 commit into
Superagentic-AI wants to merge 1 commit into
Conversation
Add classical auto selection for QuantumSVM encodings. Prefer optional Qmes when installed; otherwise use a lightweight meta-feature heuristic mapped onto the SuperQuantX feature-map registry. Manual feature_map strings remain unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
QuantumSVM accuracy depends on the encoding circuit. Exhaustive per-dataset kernel evaluation of every candidate is expensive. Qmes (arXiv:2609.04652) shows classical complexity meta-features can rank encodings with no quantum evaluation at inference time.
This spike adds a practical
feature_map="auto"path for SuperQuantX QuantumSVM: recommend a name from our existing registry, optionally via Qmes, otherwise via a local heuristic.What changed
utils/feature_map_registry.py(ZZFeatureMap,PauliFeatureMap,AmplitudeMap,AngleEncoding,ZFeatureMap) plus Qmes pool mapping (unit,SRx,RY,HERx,RY_CX,ZFM,HD).utils/feature_map_auto.pywith modesauto/qmes/heuristic(classical only; no quantum eval at selection time).QuantumSVMacceptsfeature_map="auto"orNone, storesselected_feature_map_andfeature_map_recommendation_. Manual strings/objects still work.AngleEncodingandZFeatureMap.superquantx[qmes](git install of Qmes + problexity/pandas).docs/design/qmes-feature-map-auto.md.tests/unit/test_feature_map_auto.py(mocked / no hardware).How to try
Optional Qmes path:
Known gaps
AmplitudeMapremains partial on several backends.References
docs/design/qmes-feature-map-auto.md