Low Discrepancy Sequences for MonteCarlo and VEGAS #140
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Feature
Desired Behavior / Functionality
Low discrepancy sequences could be used as an optional replacement for random number generation for MonteCarlo and VEGAS.
With certain integrands, this could lead to a higher average accuracy.
What Needs to Be Done
rng
argument to VEGAS and MonteCarlo.This class could use, for example, PyTorch's and TensorFlow's sobol sequences: https://www.tensorflow.org/api_docs/python/tf/math/sobol_sample, https://pytorch.org/docs/stable/generated/torch.quasirandom.SobolEngine.html
uniform
. In comparison touniform
, the output of this function always corresponds to points in a space, where conceptually a distance function is defined.MonteCarlo.get_jit_compiled_integrate
so that it works with the number generator class for low discrepancy sequences.How Can It Be Tested
It can be tested with additional tests in the torchquad/tests folder.
The text was updated successfully, but these errors were encountered: