# US 2024/0402997 A1 · Sampling of random numbers from arbitrary distributions

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2024/0402997 A1
- Document ID: US20240402997A1
- Status: Published application
- Kind: A1
- Application number: 18/204,991
- Filed: 2023-06-02
- Published: 2024-12-05
- Earliest claimed: 2023-06-02
- Assignees: National Technology & Engineering Solutions of Sandia, LLC
- Applicants: National Technology & Engineering Solutions of Sandia, LLC
- Inventors: James Bradley Aimone; John Darby Smith; Shashank Misra
- Web page: https://patentgrep.com/patent/US20240402997A1

## CPC

- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for probabilistic computing is provided. The method comprises specifying a target distribution for a computational model, wherein the target distribution is defined by a function. A number of coin flips are performed with a number of weighted coinflip devices, wherein weights for the coinflip devices are determined by the function. The number of coinflips are then converted to a random number from the target distribution according to outputs of the weighted coinflip devices, wherein a circuit uses the coin flips as inputs to randomly activate bits in a binary representation of the random number.

## Claims

### Claim 1

A method for probabilistic computing, the method comprising:
specifying a target distribution for a computational model, wherein the target distribution is defined by a function;
performing a number of coin flips with a number of weighted coinflip devices, wherein weights for the coinflip devices are determined by the function; and
converting the number of coinflips to a random number from the target distribution according to outputs of the weighted coinflip devices, wherein a circuit uses the coin flips as inputs to randomly activate bits in a binary representation of the random number.

### Claim 2 (depends on 1)

The method of claim 1, wherein the function is one of:
a probability density function;
a probability mass function;
a cumulative distribution function; or
a characteristic function.

### Claim 3 (depends on 1)

The method of claim 1, wherein the weighted coin flip devices comprise at least one of:
magnetic tunnel junction devices;
tunnel diodes; or
CMOS transistors.

### Claim 4 (depends on 1)

The method of claim 1, wherein each weighted coinflip device has an independently tuned probability.

### Claim 5 (depends on 1)

The method of claim 1, wherein each weighted coinflip device has a dependently tuned probability based on simultaneous or serial interaction with other weighted coinflip devices.

### Claim 6 (depends on 1)

The method of claim 1, wherein each weighted coinflip device represents a specific range within the target distribution.

### Claim 7 (depends on 1)

The method of claim 1, wherein the weighted coinflip devices are mapped to a latent space that is mapped to the function.

### Claim 8 (depends on 7)

The method of claim 7, wherein the weighted coinflip devices are mapped to the latent space by a neural network.

### Claim 9 (depends on 1)

The method of claim 1, wherein each weighted coinflip device represents a Bernoulli probability.

### Claim 10 (depends on 9)

The method of claim 9, wherein each weighted coinflip device behaves as an n-sided die roll.

### Claim 11 (depends on 1)

The method of claim 1, wherein the random number comprises an expansion of the coin flips in a binomial tree.

### Claim 12 (depends on 11)

The method of claim 11, wherein the binomial tree is compressed by using only one coinflip device for a level of the binomial tree if probabilities within the level are the same or have differences below a specified threshold.

### Claim 13 (depends on 11)

The method of claim 11, wherein the binomial tree is compressed by introducing correlations from a circuit or device physics such that a coinflip device tuning shifts based on other coinflip devices.

### Claim 14 (depends on 11)

The method of claim 11, wherein the binomial tree is compressed by retuning dependencies between the coinflip devices on-the-fly, wherein a coinflip device is re-tuned based on the output of the coinflip device above it in the binomial tree.

### Claim 15 (depends on 1)

The method of claim 1, wherein the weighted coinflip devices are positioned at intersections of a crossbar array.

### Claim 16 (depends on 1)

The method of claim 1, wherein the weighted coinflip devices operate in parallel.

### Claim 17 (depends on 1)

The method of claim 1, wherein the weighted coinflip devices operate serially.

### Claim 18

A system for probabilistic computing, the system comprising:
a storage device that stores program instructions; and
one or more processors operably connected to the storage device and configured to execute the program instructions to cause the system to:
specify a target distribution for a computational model, wherein the target distribution is defined by a function;
perform a number of coin flips with a number of weighted coinflip devices, wherein weights for the coinflip devices are determined by the function; and
convert the number of coinflips to a random number from the target distribution according to outputs of the weighted coinflip devices, wherein a circuit uses the coin flips as inputs to randomly activate bits in a binary representation of the random number.

### Claim 19 (depends on 18)

The system of claim 18, wherein the weighted coin flip devices comprise at least one of:
magnetic tunnel junction devices;
tunnel diodes; or
CMOS transistors.

### Claim 20

A computer program product for probabilistic computing, the computer program product comprising:
a computer-readable storage medium having program instructions embodied thereon to perform the steps of:
specifying a target distribution for a computational model, wherein the target distribution is defined by a function;
performing a number of coin flips with a number of weighted coinflip devices, wherein weights for the coinflip devices are determined by the function; and
converting the number of coinflips to a random number from the target distribution according to outputs of the weighted coinflip devices, wherein a circuit uses the coin flips as inputs to randomly activate bits in a binary representation of the random number.
