Commit c7867d8b by Martin Reinecke

nitpicking

parent 0cb2d984
Pipeline #74920 passed with stages
in 25 minutes and 58 seconds
 ... @@ -11,14 +11,14 @@ Interface change in EndomorphicOperator.draw_sample() ... @@ -11,14 +11,14 @@ Interface change in EndomorphicOperator.draw_sample() ===================================================== ===================================================== Both complex-valued and real-valued Gaussian probability distributions have Both complex-valued and real-valued Gaussian probability distributions have hermitian and positive endomorphisms as covariance. Just by looking at an Hermitian and positive endomorphisms as covariance. Just by looking at an endomorphic operator itself it is not clear whether it is viewed as covariance endomorphic operator itself it is not clear whether it is viewed as covariance for real or complex Gaussians when a sample of the respective distribution shall for real or complex Gaussians when a sample of the respective distribution shall be drawn. Therefore, we introduce the method `draw_sample_with_dtype()` which be drawn. Therefore, we introduce the method `draw_sample_with_dtype()` which needs to be given the data type of the probability distribution. This function needs to be given the data type of the probability distribution. This function is implemented for all operators which actually draw random numbers is implemented for all operators which actually draw random numbers (`DiagonalOperator` and `ScalingOperator`). The class `SamplingDtypeSetter` acts (`DiagonalOperator` and `ScalingOperator`). The class `SamplingDtypeSetter` acts as a wrapper for these kind of operators in order to fix the data type of the as a wrapper for this kind of operators in order to fix the data type of the distribution. Samples from these operators can be drawn with `.draw_sample()`. distribution. Samples from these operators can be drawn with `.draw_sample()`. In order to dive into those subtleties I suggest running the following code and In order to dive into those subtleties I suggest running the following code and playing around with the dtypes. playing around with the dtypes. ... ...
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment