microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
library/table_lookup/README.md
31lines · modecode
| 1 | # table_lookup library |
| 2 | |
| 3 | The `table_lookup` library defines various primitives useful to perform computation and uncomputation of table lookup. It also defines wrapper function |
| 4 | which uses one of the approaches depending on options. |
| 5 | |
| 6 | ## Lookup |
| 7 | |
| 8 | `Lookup` is the main operation implementing various table lookup algorithms and options. Note, that most unlookup algorithms are measurement-based and return target register to zero state. |
| 9 | |
| 10 | ### Options for lookup |
| 11 | |
| 12 | * `DoStdLookup` - Use lookup algorithm defined in the Q# standard library. |
| 13 | * `DoMCXLookup` - Use naive lookup algorithm via multicontrolled X gates. See [arXiv:1805.03662](https://arxiv.org/abs/1805.03662), Section A. |
| 14 | * `DoRecursiveSelectLookup` - Use select network algorithm via recursion. See [arXiv:2211.01133](https://arxiv.org/abs/2211.01133), Section 2. |
| 15 | * `DoPPLookup` - Use lookup algorithm via power products without address split. See [arXiv:2505.15917](https://arxiv.org/abs/2505.15917), Section A.4. |
| 16 | * `DoSplitPPLookup` - Use lookup algorithm via power products with address split. See [arXiv:2505.15917](https://arxiv.org/abs/2505.15917), Section A.4. |
| 17 | |
| 18 | ### Options for unlookup |
| 19 | |
| 20 | * `DoStdUnlookup` - Use unlookup algorithm defined in the Q# standard library. |
| 21 | * `DoUnlookupViaLookup` - Perform unlookup via the same algorithm as lookup as it is self-adjoint. |
| 22 | * `DoMCXUnlookup` - Perform measurement-based unlookup with corrections via multicontrolled X gates. See [arXiv:2211.01133](https://arxiv.org/abs/2211.01133), Section 2. |
| 23 | * `DoPPUnlookup` - Perform measurement-based unlookup with corrections via power products without address split (Phase lookup). See [arXiv:2505.15917](https://arxiv.org/abs/2505.15917), Section A.3. |
| 24 | * `DoSplitPPUnlookup` - Perform measurement-based unlookup with corrections via power products with address split (Phase lookup). See [arXiv:2505.15917](https://arxiv.org/abs/2505.15917), Section A.3. |
| 25 | |
| 26 | ## Potential future work |
| 27 | |
| 28 | * Add more control how uncomputation of AND gate is performed. |
| 29 | * Add resource estimation hints. |
| 30 | * If gate set includes multi-target gates, code can be optimized to use those. |
| 31 | * Implement delayed combined corrections. |
| 32 | |