Approximate a matrix's top singular subspace by length-squared sampling
dequant_lowrankThe length-squared low-rank approximation of Frieze, Kannan and Vempala (2004): rows sampled by their squared norms, columns of the sampled rows by theirs, the small matrix decomposed, and the approximate top-k right singular vectors as combinations of the sampled rows. Where the reference is made, the achieved ‖A − A V̂V̂ᵀ‖_F and the found subspace's own are set beside the exact ‖A − A_k‖_F. The answer carries its label: each source theorem's sample count as a formula evaluated at this instance's ‖A‖_F, ‖A‖, σ_k, k, κ, ε, δ and η (exact where the full decomposition was made), its exponents and whether it states its constant, set beside the counts this run used; the error measured against the full decomposition where the matrix is small enough (at most 2^17 entries); and the work counted (entry queries, length-squared samples, random words, the small decomposition's operations). Sealed with the service's key; verify_quantum_result checks the seal and runs it again for the same bits. Seeded: the same request gives the same bits on every host. Refusals: J210, J211.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"matrix": "<matrix>"
},
"name": "dequant_lowrank"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | The singular vectors kept (default the generated rank, else 4). | |
| eta | No | The width of the singular-value threshold's band the label's theorems take (default 0.2). | |
| seed | No | The kernel's seed (default 1): the same seed and request give the same bits on every host. | |
| delta | No | The failure probability the label's theorems are asked for (default 0.1). | |
| matrix | Yes | The matrix: {"generate": {"rows", "cols", "rank", "condition", "noise", "seed"}} (a random rank-`rank` matrix, its singular values evenly from 1 down to 1/condition (default 2), plus Gaussian noise whose Frobenius norm is `noise` (default 0.01) of the low-rank part's, from `seed`) or {"entries": [[…], …]} (its rows). At most 2^20 entries. | |
| epsilon | No | The error the label's theorems are asked for (default 0.1). | |
| reference | No | Hold the answer to the full decomposition where the matrix is small enough (at most 2^17 entries, a smaller side of at most 256; default true). | |
| cols_sampled | No | Columns sampled from the sampled rows (default 160). | |
| rows_sampled | No | Rows sampled by their squared norms (default 160). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||