NLA-lib Explorer

NLAlib.QueryAlgorithm.hiddenRotationSimulation

Library ยท def

The hidden-rotation simulation: from an algorithm with q queries to hiddenRotationOracle U D, an algorithm with 2q rounds against twoSidedMulVec U with the same output. Round 2l is the left query (\mathbf{0}, \mathbf{x}_l), which returns \mathbf{v}_l = \mathbf{U}^{\mathsf{H}}\mathbf{x}_l in the second component; round 2l + 1 is the right query (\mathbf{D}\mathbf{v}_l, \mathbf{0}), which returns \mathbf{U}\mathbf{D}\mathbf{v}_l = \mathbf{A}\mathbf{x}_l in the first. What the transcript reveals about \mathbf{U} is its action on the vectors \mathbf{v}_l, \mathbf{D}\mathbf{v}_l. With \mathbf{D} = \mathbf{I} the rounds are those of QueryAlgorithm.gramSimulation.

NLAlib.QueryAlgorithm.hiddenRotationSimulation.{u_1, u_2, u_3} {๐•œ : Type u_1} {n : Type u_2}
  {ฮฒ : Type u_3} {q : โ„•} [Fintype n] [NonUnitalNonAssocSemiring ๐•œ] (D : Matrix n n ๐•œ)
  (alg : QueryAlgorithm (n โ†’ ๐•œ) ((n โ†’ ๐•œ) ร— (n โ†’ ๐•œ)) q ฮฒ) :
  QueryAlgorithm ((n โ†’ ๐•œ) ร— (n โ†’ ๐•œ)) ((n โ†’ ๐•œ) ร— (n โ†’ ๐•œ)) (2 * q) ฮฒ

Full source on GitHub

Import NLAlib.LowerBounds.QueryModel.HiddenRotation.