Skip to content

Use std::random in select statistical tests to avoid circular arguments. #117

Description

@rileyjmurray

Our tests for the subspace embedding properties of Gaussian and uniform operators rely on a probabilistic analysis of the power method. That analysis assumes the initial vector is drawn uniformly from the unit sphere. It isn't appropriate to use our internal functions for sampling from the Gaussian distribution to draw this vector. Instead, we can use the normal distribution in the C++ STL with the Mersenne Twister as the underlying engine.

Interesting fact: C++26 will ship with Philox in the STL!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions