Solve a low-rank linear system by sample-and-query access
dequant_regressx ≈ A⁺b for a low-rank, well-conditioned A (Gilyén, Lloyd and Tang 2018): the sketch, the needed inner products by the median of means, and x̃ held as a combination of sampled rows; its entries queried, length-squared draws made by rejection, and its inner products with given vectors estimated. Where the reference is made, ‖x̃ − A_k⁺b‖/‖A_k⁺b‖ and the draws' total variation are measured. 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. 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_regress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b | No | The right-hand side: a list of one number a row, or {"range": {"seed", "noise"}} (b = A x₀ for a Gaussian x₀, plus noise of relative norm `noise`; the default, seed 1, no noise). | |
| 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). | |
| draws | No | Length-squared draws from the answer (default 1000). | |
| inner | No | Vectors to estimate ⟨x̃, y⟩ with: a list of vectors of the matrix's columns' length, or {"gaussian": {"count", "seed"}}. | |
| budget | No | The most rejection proposals the draws make (default: what the job's work bound leaves). | |
| groups | No | The median of means' groups (default 5). | |
| 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. | |
| entries | No | Indices of x̃ to query. | |
| epsilon | No | The error the label's theorems are asked for (default 0.1). | |
| per_group | No | The samples in each group's mean (default 2000). | |
| 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). | |
| inner_groups | No | Each inner product's row estimates: the median of means' groups (default 5). | |
| rows_sampled | No | Rows sampled by their squared norms (default 160). | |
| inner_per_group | No | Each inner product's row estimates: the samples in a group (default 500). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||