mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- capability_probe.py: detection shim for 9 quantum/optimization/compute backends - Each backend tested with import + functional test - Assigns capability slots and formulation modes - Directed routing analysis: MIP (QAP) recommended over QAOA (asymmetric loss) - All highspy/perceval/quimb/wgpu/opt_einsum API quirks resolved Receipt: 9/9 functional, 9 formulation modes, JSON schema v1
171 lines
No EOL
5 KiB
JSON
171 lines
No EOL
5 KiB
JSON
{
|
|
"schema": "capability_probe_receipt_v1",
|
|
"generated_at_utc": "2026-06-21T04:51:09Z",
|
|
"probe_summary": {
|
|
"total_probes": 9,
|
|
"functional": 9,
|
|
"failed": 0
|
|
},
|
|
"results": {
|
|
"quantum": [
|
|
{
|
|
"slot": "photonic_slos",
|
|
"package": "perceval-quandela",
|
|
"version": "1.2.3",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "BS probabilities: {|0,1>: 0.8535533905932737, |1,0>: 0.14644660940672624}",
|
|
"error": "",
|
|
"elapsed_s": 0.536
|
|
},
|
|
{
|
|
"slot": "bosonic_tn",
|
|
"package": "quimb",
|
|
"version": "1.14.0",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "contracted 2 tensors, result shape=(2, 2)",
|
|
"error": "",
|
|
"elapsed_s": 0.194
|
|
},
|
|
{
|
|
"slot": "qaoa_cirq",
|
|
"package": "cirq",
|
|
"version": "1.6.1",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "simulated 1 outcomes",
|
|
"error": "",
|
|
"elapsed_s": 0.231
|
|
},
|
|
{
|
|
"slot": "qaoa_qiskit",
|
|
"package": "qiskit",
|
|
"version": "2.4.2",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "simulated 2 distinct outcomes",
|
|
"error": "",
|
|
"elapsed_s": 0.074
|
|
}
|
|
],
|
|
"optimization": [
|
|
{
|
|
"slot": "mip_highs",
|
|
"package": "highspy",
|
|
"version": "",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "LP solved, obj=-6.00, x=[2.0, 2.0]",
|
|
"error": "",
|
|
"elapsed_s": 0.006
|
|
},
|
|
{
|
|
"slot": "continuous_scipy",
|
|
"package": "scipy.optimize",
|
|
"version": "1.18.0",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "minimized to (-0.0000, 0.0000)",
|
|
"error": "",
|
|
"elapsed_s": 0.001
|
|
},
|
|
{
|
|
"slot": "graph_networkx",
|
|
"package": "networkx",
|
|
"version": "3.6.1",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "K_5 diameter=1, path=[0, 4]",
|
|
"error": "",
|
|
"elapsed_s": 0.001
|
|
}
|
|
],
|
|
"compute": [
|
|
{
|
|
"slot": "gpu_wgpu",
|
|
"package": "wgpu",
|
|
"version": "0.31.0",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "adapter=<GPUAdapterInfo dict with vendor='NVIDIA', architecture='', device='NVIDIA GeForce RTX 4070 SUPER', description='610.43.02', stackgroup_min_size=4, stackgroup_max_size=128, vendor_id=4318, device_id=10115, adapter_type='DiscreteGPU', backend_type='Vulkan'>, type=?, backend=?",
|
|
"error": "",
|
|
"elapsed_s": 0.375
|
|
},
|
|
{
|
|
"slot": "tensor_opt_einsum",
|
|
"package": "opt_einsum",
|
|
"version": "3.4.0",
|
|
"import_ok": true,
|
|
"functional_ok": true,
|
|
"test_detail": "contraction shape=(2, 4), path= Complete contraction: ij,jk->ik\n Naive scaling: 3\n Optimized scaling: 3\n Naive FLOP count: 4.800e+1\n Optimized FLOP count: 4.800e+1\n Theoretical speedup: 1.000e+0\n Largest intermediate: 8.000e+0 elements\n--------------------------------------------------------------------------------\nscaling BLAS current remaining\n--------------------------------------------------------------------------------\n 3 GEMM jk,ij->ik ik->ik",
|
|
"error": "",
|
|
"elapsed_s": 0.0
|
|
}
|
|
]
|
|
},
|
|
"available": {
|
|
"photonic_slos": {
|
|
"package": "perceval-quandela",
|
|
"version": "1.2.3"
|
|
},
|
|
"bosonic_tn": {
|
|
"package": "quimb",
|
|
"version": "1.14.0"
|
|
},
|
|
"qaoa_cirq": {
|
|
"package": "cirq",
|
|
"version": "1.6.1"
|
|
},
|
|
"qaoa_qiskit": {
|
|
"package": "qiskit",
|
|
"version": "2.4.2"
|
|
},
|
|
"mip_highs": {
|
|
"package": "highspy",
|
|
"version": ""
|
|
},
|
|
"continuous_scipy": {
|
|
"package": "scipy.optimize",
|
|
"version": "1.18.0"
|
|
},
|
|
"graph_networkx": {
|
|
"package": "networkx",
|
|
"version": "3.6.1"
|
|
},
|
|
"gpu_wgpu": {
|
|
"package": "wgpu",
|
|
"version": "0.31.0"
|
|
},
|
|
"tensor_opt_einsum": {
|
|
"package": "opt_einsum",
|
|
"version": "3.4.0"
|
|
}
|
|
},
|
|
"formulation_modes": [
|
|
"bosonic_tensor_network",
|
|
"qaoa_variational",
|
|
"qubo_classical_mip",
|
|
"qap_classical_mip",
|
|
"photonic_slos",
|
|
"continuous_optimization",
|
|
"spectral_graph_pipeline",
|
|
"gpu_vulkan_compute",
|
|
"contraction_optimization"
|
|
],
|
|
"directed_formulation_support": {
|
|
"qap": {
|
|
"available": true,
|
|
"comment": "HiGHS handles asymmetric QAP natively (directed costs preserved in MIP)",
|
|
"recommended": true,
|
|
"solver": "highspy"
|
|
},
|
|
"qaoa": {
|
|
"available": true,
|
|
"comment": "QAOA on QUBO \u2014 asymmetry lost in x_i x_j = x_j x_i symmetrization",
|
|
"recommended": false,
|
|
"solver": "cirq"
|
|
}
|
|
},
|
|
"claim_boundary": "capability-probe-only;no-decision-logic"
|
|
} |