# US 2026/0090289 A1 · Apparatus and process for monolithic stochastic computing architecture for energy arithmetic

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

- Number: US 2026/0090289 A1
- Document ID: US20260090289A1
- Status: Published application
- Kind: A1
- Application number: 19/112,341
- Filed: 2023-09-18
- Published: 2026-03-26
- Earliest claimed: 2022-09-20
- Assignees: The Penn State Research Foundation
- Applicants: The Penn State Research Foundation
- Inventors: Saptarshi Das; Harikrishnan Ravichandran; Yikai Zheng
- Web page: https://patentgrep.com/patent/US20260090289A1

## CPC

- G06F 7/588: {Random number generators, i.e. based on natural stochastic processes}
- H10N 70/253: {having three or more electrodes, e.g. transistor-like devices}
- G06N 3/063: using electronic means
- G06N 3/065: Analogue means
- H10D 30/69: IGFETs having charge trapping gate insulators, e.g. MNOS transistors
- H10N 70/24: {based on migration or redistribution of ionic species, e.g. anions, vacancies}
- H10N 70/8822: {Sulfides, e.g. CuS}
- G06F 7/50: Adding; Subtracting (G06F7/483 - G06F7/491, G06F7/544 - G06F7/556 take precedence)
- G06F 7/52: Multiplying; Dividing (G06F7/483 - G06F7/491, G06F7/544 take precedence)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H10N: ELECTRIC SOLID-STATE DEVICES NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H10D: INORGANIC ELECTRIC SEMICONDUCTOR DEVICES

## Abstract

Embodiments relate to devices, circuits, and systems including s-bit generators constructed from memtransistors. Each memtransistor is stacked on a non-volatile and programmable local back-gate stack. Each memtransistor has a 2D channel formed between its source and its drain. The s-bit generator can be used to construct s-bit generator circuits that exploit the different sources of inherent stochasticity in 2D memtransistors (e.g., cycle-to-cycle fluctuations in the carrier trapping and detrapping phenomena in a gate insulator of a 2D memtransistor, thermal conductance fluctuations in a defect-engineered and scaled 2D memtransistor, random telegraph signals (RTS) in a defect-engineered and scaled 2D memtransistor, etc.) and combine it with an inverting amplifier and a programmable thresholding inverter to obtain s-bits. Additional embodiments relate to integration of s-bit generators with 2D memtransistor based logic gates such as AND, MUX, XOR, and OR gates to perform arithmetic operations such as addition, subtraction, multiplication, and/or sorting.

## Claims

### Claim 1

(canceled)

### Claim 2

An s-bit generator, comprising:
a plurality of 2D memtransistors;
an inverting amplifier; and
a programmable threshold inverter;
wherein one or more s-bits are generated from inherent stochasticity in the plurality of 2D memtransistors.

### Claim 3 (depends on 2)

The s-bit generator of claim 2, wherein:
the plurality of 2D memtransistors form a voltage divider.

### Claim 4 (depends on 2)

The s-bit generator of claim 2, wherein:
the inherent stochasticity in the plural 2D memtransistors includes one or more of: cycle-to-cycle fluctuations in carrier trapping and detrapping phenomena in a gate insulator of a 2D memtransistor of the plural 2D memtransistor, thermal conductance fluctuations in a defect-engineered and scaled 2D memtransistor of the plural 2D memtransistors, and/or random telegraph signals (RTS) in a defect-engineered and scaled 2D memtransistor of the plural 2D memtransistors.

### Claim 5

A s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
a memtransistor, MT4, having a MT4-drain, a MT4-source, and a MT4-gate;
a memtransistor, MT5, having a MT5-drain, a MT5-source, and a MT5-gate; and
a memtransistor, MT6, having a MT6-drain, a MT6-source, and a MT6-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to: the MT3-drain, the MT5-drain, and a node N1;
the MT1-gate is connected to a node N2;
the MT1-source is connected to: the MT2-drain and the MT4-gate via a node N5;
the MT2-drain is connected to the MT4-gate via the node N5;
the MT2-gate is connected to a node N3;
the MT2-source is connected to: the MT4-source, the MT6-source, and a node N4;
the MT3-drain is connected to: the MT1-drain, the MT5-drain, and the node N1;
the MT3-gate is connected to the MT6-gate via a node N6;
the MT3-source is connected to: the MT6-gate via node the N6 and the MT4-drain via the node N6;
the MT4-drain is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT6-gate via the node N6;
the MT4-gate is connected to: the MT1-source via the node N5 and the MT2-drain via the node N5;
the MT4-source is connected to: the MT2-source, the MT6-source, and the node N4;
the MT5-drain is connected to: the MT1-drain, the MT3-drain, and the node N1;
the MT5-gate is connected to the MT6-drain via a node N7;
the MT6-drain is connected to: the MT5-source via the node N7 and the MT5-gate via the node N7;
the MT6-gate is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT4-drain via the node N6; and
the MT6-source is connected to: the MT4-source, the MT2-source, and the node N4.

### Claim 6 (depends on 5)

The s-bit generator of claim 5, wherein:
the 2D channel is a monolayer.

### Claim 7 (depends on 6)

The s-bit generator of claim 6, wherein:
wherein the monolayer includes MoS2.

### Claim 8 (depends on 5)

A stochastic computing processor, comprising:
a processing module including a processor and a memory and the s-bit generator of claim 5.

### Claim 9 (depends on 8)

The stochastic computing processor of claim 8, wherein:
the stochastic computing processor has a non-von Neuman architecture.

### Claim 10

A stochastic multiplier, comprising:
a first s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
a memtransistor, MT4, having a MT4-drain, a MT4-source, and a MT4-gate;
a memtransistor, MT5, having a MT5-drain, a MT5-source, and a MT5-gate; and
a memtransistor, MT6, having a MT6-drain, a MT6-source, and a MT6-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to: the MT3-drain, the MT5-drain, and a node N1;
the MT1-gate is connected to a node N2;
the MT1-source is connected to: the MT2-drain and the MT4-gate via a node N5;
the MT2-drain is connected to the MT4-gate via the node N5;
the MT2-gate is connected to a node N3;
the MT2-source is connected to: the MT4-source, the MT6-source, and a node N4;
the MT3-drain is connected to: the MT1-drain, the MT5-drain, and the node N1;
the MT3-gate is connected to the MT6-gate via a node N6;
the MT3-source is connected to: the MT6-gate via the node N6 and the MT4-drain via the node N6;
the MT4-drain is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT6-gate via the node N6;
the MT4-gate is connected to: the MT1-source via the node N5 and the MT2-drain via the node N5;
the MT4-source is connected to: the MT2-source, the MT6-source, and the node N4;
the MT5-drain is connected to: the MT1-drain, the MT3-drain, and the node N1;
the MT5-gate is connected to the MT6-drain via a node N7;
the MT6-drain is connected to: the MT5-source via the node N7 and the MT5-gate via the node N7;
the MT6-gate is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT4-drain via the node N6;
the MT6-source is connected to: the MT4-source, the MT2-source, and the node N4; and
the first s-bit generator is configured to generate an output A at the node N7;
a second s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT14, having a MT14-drain, a MT14-source, and a MT14-gate;
a memtransistor, MT15, having a MT15-drain, a MT15-source, and a MT15-gate;
a memtransistor, MT12, having a MT12-drain, a MT12-source, and a MT12-gate;
a memtransistor, MT13, having a MT13-drain, a MT13-source, and a MT13-gate;
a memtransistor, MT10, having a MT10-drain, a MT10-source, and a MT10-gate; and
a memtransistor, MT1, having a MT11-drain, a MT11-source, and a MT1-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT14-drain is connected to: the MT12-drain, the MT10-drain, and a VDD;
the MT14-gate is connected to a node N12;
the MT14-source is connected to: the MT15-drain and the MT13-gate via a node N11;
the MT15-drain is connected to the MT13-gate via the node N11;
the MT15-gate is connected to a node N13;
the MT15-source is connected to: the MT13-source, the MT11-source, and a GND;
the MT12-drain is connected to: the MT14-drain, the MT10-drain, and a VDD;
the MT12-gate is connected to the MT1-gate via a node N10;
the MT12-source is connected to: the MT1-gate via the node N10 and the MT13-drain via the node N10;
the MT13-drain is connected to: the MT12-source via the node N10, the MT12-gate via the node N10, and the MT1-gate via the node N10;
the MT13-gate is connected to: the MT14-source via the node N11 and the MT15-drain via the node N11;
the MT13-source is connected to: the MT14-source, the MT11-source, and the GND;
the MT10-drain is connected to: the MT14-drain, the MT12-drain, and the VDD;
the MT10-gate is connected to the MT11-drain via a node N9;
the MT11-drain is connected to: the MT10-source via the node N9 and the MT10-gate via the node N9;
the MT1-gate is connected to: the MT12-source via the node N10, the MT12-gate via the node N10, and the MT13-drain via the node N10;
the MT11-source is connected to: the MT13-source, the MT15-source, and the GND; and
the second s-bit generator is configured to generate an output B at the node N9; and
an AND gate configured to receive the output A, receive the output B, and generate an output C.

### Claim 11 (depends on 10)

The stochastic multiplier of claim 10, wherein:
the AND gate includes a plurality of memtransistors, comprising:
a memtransistor, MT7, having a MT7-drain, a MT7-source, and a MT7-gate;
a memtransistor, MT8, having a MT8-drain, a MT8-source, and a MT8-gate; and
a memtransistor, MT9, having a MT9-drain, a MT9-source, and a MT9-gate.

### Claim 12 (depends on 11)

The stochastic multiplier of claim 11, wherein:
for the first s-bit generator:
the output A is transmitted to the AND gate via the node N7;
the node N7 is connected to the MT7-gate;
the MT1-drain, the MT3-drain, and the MT5-drain are connected to the MT7-drain; and
the MT2-source, the MT4-source, and the MT6-source are connected to: the MT9-gate and to the MT9-source;
for the second s-bit generator:
the output B is transmitted to the AND gate via the node N9;
the node N7 is connected to the MT8-gate;
the MT10-drain, the MT12-drain, and the MT14-drain are connected to the MT7-drain; and
the MT14-source, the MT13-source, and the MT11-source are connected to: the MT9-gate and to the MT9-source;
for the AND gate:
the MT7-source is connected to the MT8-drain;
the MT8-source connected to the MT9-drain and to a node N8; and
the AND gate outputs the output C at the node N8.

### Claim 13

A stochastic adder, comprising:
a first s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
a memtransistor, MT4, having a MT4-drain, a MT4-source, and a MT4-gate;
a memtransistor, MT5, having a MT5-drain, a MT5-source, and a MT5-gate; and
a memtransistor, MT6, having a MT6-drain, a MT6-source, and a MT6-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to: the MT3-drain, the MT5-drain, and a node N1;
the MT1-gate is connected to a node N2;
the MT1-source is connected to: MT2-drain and MT4-gate via a node N5;
the MT2-drain is connected to MT4-gate via node the N5;
the MT2-gate is connected to a node N3;
the MT2-source is connected to: the MT4-source, the MT6-source, and a node N4;
the MT3-drain is connected to: the MT1-drain, the MT5-drain, and the node N1;
the MT3-gate is connected to the MT6-gate via a node N6;
the MT3-source is connected to: the MT6-gate via the node N6 and the MT4-drain via the node N6;
the MT4-drain is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT6-gate via the node N6;
the MT4-gate is connected to: the MT1-source via the node N5 and the MT2-drain via the node N5;
the MT4-source is connected to: the MT2-source, the MT6-source, and the node N4;
the MT5-drain is connected to: the MT1-drain, the MT3-drain, and the node N1;
the MT5-gate is connected to the MT6-drain via a node N7;
the MT6-drain is connected to: the MT5-source via the node N7 and the MT5-gate via the node N7;
the MT6-gate is connected to: the MT3-source via the node N6, the MT3-gate via the node N6, and the MT4-drain via the node N6;
the MT6-source is connected to: the MT4-source, the MT2-source, and the node N4; and
the first s-bit generator is configured to generate an output S;
a second s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT7, having a MT7-drain, a MT7-source, and a MT7-gate;
a memtransistor, MT8, having a MT8-drain, a MT8-source, and a MT8-gate;
a memtransistor, MT9, having a MT9-drain, a MT9-source, and a MT9-gate;
a memtransistor, MT10, having a MT10-drain, a MT10-source, and a MT10-gate;
a memtransistor, MT1, having a MT11-drain, a MT11-source, and a MT1-gate; and
a memtransistor, MT12, having a MT12-drain, a MT12-source, and a MT12-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT7-drain is connected to: the MT9-drain, the MT11-drain, and a node VDD;
the MT7-gate is connected to a node N8;
the MT7-source is connected to: the MT8-drain and the MT10-gate via a node N10;
the MT8-drain is connected to the MT10-gate via the node N10;
the MT2-gate is connected to the node N3;
the MT8-source is connected to: the MT10-source, the MT12-source, and a GND;
the MT9-drain is connected to: the MT7-drain, the MT11-drain, and the VDD;
the MT9-gate is connected to the MT12-gate via a node N11;
the MT9-source is connected to: the MT12-gate via the node N11 and the MT10-drain via the node N11;
the MT10-drain is connected to: the MT9-source via the node N11, the MT9-gate via the node N11, and the MT12-gate via the node N11;
the MT10-gate is connected to: the MT7-source via the node N10 and the MT8-drain via the node N10;
the MT10-source is connected to: the MT8-source, the MT12-source, and the GND:
the MT11-drain is connected to: the MT7-drain, the MT9-drain, and the VDD;
the MT1-gate is connected to the MT12-drain via a node N12;
the MT12-drain is connected to: the MT11-source via the node N12 and MT1-gate via the node N12;
MT12-gate is connected to: the MT9-source via the node N11, the MT9-gate via the node N11, and the MT10-drain via the node N11;
the MT12-source is connected to: the MT10-source, the MT8-source, and the GND; and
the second s-bit generator is configured to generate an output A;
a third s-bit generator, comprising:
a plurality of memtransistors, comprising:
a memtransistor, MT13, having a MT13-drain, a MT13-source, and a MT13-gate;
a memtransistor, MT14, having a MT14-drain, a MT14-source, and a MT14-gate;
a memtransistor, MT15, having a MT15-drain, a MT15-source, and a MT15-gate;
a memtransistor, MT16, having a MT16-drain, a MT16-source, and a MT16-gate;
a memtransistor, MT17, having a MT17-drain, a MT17-source, and a MT17-gate; and
a memtransistor, MT18, having a MT18-drain, a MT18-source, and a MT18-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT17-drain is connected to: the MT15-drain, the MT13-drain, and the VDD;
the MT17-gate is connected to a node N16;
the MT17-source is connected to: the MT18-drain and the MT16-gate via a node N15;
the MT18-drain is connected to the MT16-gate via the node N15;
the MT18-gate is connected to a node N17;
the MT18-source is connected to: the MT16-source, the MT14-source, and the GND;
the MT15-drain is connected to: the MT17-drain, the MT13-drain, and the VDD;
the MT15-gate is connected to the MT14-gate via a node N14;
the MT15-source is connected to: the MT14-gate via the node N14 and the MT16-drain via the node N14;
the MT16-drain is connected to: the MT15-source via the node N14, the MT15-gate via the node N14, and the MT14-gate via the node N14;
the MT16-gate is connected to: the MT17-source via the node N15 and the MT18-drain via the node N15;
the MT16-source is connected to: the MT14-source, the MT18-source, and the GND:
the MT13-drain is connected to: the MT17-drain, the MT15-drain, and the VDD;
the MT13-gate is connected to the MT14-drain via a node N13;
the MT14-drain is connected to: the MT13-source via the node N13 and the MT13-gate via the node N13;
the MT14-gate is connected to: the MT15-source via the node N14, the MT15-gate via the node N14, and the MT16-drain via the node N14;
the MT15-source is connected to: the MT16-source, the MT18-source, and the GND; and
the third s-bit generator is configured to generate an output B; and
a MUX gate configured to receive output S, receive the output A, receive the output B, and generate an output C.

### Claim 14 (depends on 13)

The stochastic adder of claim 13, wherein:
the MUX gate includes a plurality of memtransistors, comprising:
a memtransistor, MT19, having a MT19-drain, a MT19-source, and a MT19-gate;
a memtransistor, MT20, having a MT20-drain, a MT20-source, and a MT20-gate;
a memtransistor, MT21, having a MT21-drain, a MT21-source, and a MT21-gate; and
a memtransistor, MT22, having a MT22-drain, a MT22-source, and a MT22-gate.

### Claim 15 (depends on 14)

The stochastic adder of claim 14, wherein:
for the first s-bit generator:
the node N1 is connected to the VDD;
the node N7 is connected to the MT20-gate; and
the node N4 is connected to the GND;
for the second s-bit generator:
the MT7-drain, the MT9-drain, and the MT11-drain are connected to the MT19-drain; and
the node N12 is connected to the MT21-drain;
for the third s-bit generator:
the node N13 is connected to the MT22-source;
for the MUX gate:
the MT19-drain is connected to the node N1 and the VDD;
the MT19-gate is connected to: the MT21-gate via the node N18 and the MT20-drain via the node N18;
the MT19-source is connected to: the MT21-gate via the node N18 and the MT20-drain via the node N18;
the MT20-drain is connected to: the MT19-gate via the node N18, the MT19-source via the node N18, and the MT21-gate via the node N18;
the MT20-gate is connected to: the node N7 and the MT22-gate;
the MT20-source is connected to the node N4 and the GND;
the MT21-drain is connected to the node N12;
the MT21-gate is connected to: the MT19-source via the node N18, the MT19-gate via the node N18, and the MT20-drain via the node N18;
the MT21-source is connected to the MT22-drain via the node N19;
the MT22-drain is connected to the MT21-source via the node N19;
the MT22-gate is connected to the MT20-gate;
the MT22-source is connected to the node N13; and
the MUX gate outputs the output C at the node N19.

### Claim 16

A stochastic subtractor, comprising:
a first s-bit generator configured to generate output A, and a second s-bit generator configured to generate output B, wherein the output A and the output B are correlated bit streams;
an XOR gate, comprising a plurality of memtransistors including:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
a memtransistor, MT4, having a MT4-drain, a MT4-source, and a MT4-gate;
a memtransistor, MT5, having a MT5-drain, a MT5-source, and a MT5-gate;
a memtransistor, MT6, having a MT6-drain, a MT6-source, and a MT6-gate;
a memtransistor, MT7, having a MT7-drain, a MT7-source, and a MT7-gate; and
a memtransistor, MT8, having a MT8-drain, a MT8-source, and a MT8-gate;
a memtransistor, MT9, having a MT9-drain, a MT9-source, and a MT9-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to: a node N1, the MT3-drain, the MT5-drain, the MT7-drain, and a VDD;
the MT1-gate is connected to: the MT7-gate and the MT2-drain via a node N2;
the MT1-source is connected to the MT2-drain via the node N2;
the MT2-drain is connected to: the MT1-source via the node N2 and the MT1-gate via the node N2;
the MT2-gate is connected to the MT4-gate via the node N4;
the MT2-source is connected to: the MT9-gate via a node N3 and a GND;
the MT3-drain is connected to: the node N1, the MT1-drain, the MT5-drain, the MT7-drain, and the VDD;
the MT3-gate is connected to: the MT5-gate and the MT6-drain via a node N6;
the MT3-source is connected to the MT4-drain;
the MT4-drain is connected to the MT3-source;
the MT4-gate is connected to the MT2-gate via a node N4;
the MT4-source is connected to: the MT9-drain via a node N5 and the MT8-source via the node N5;
the MT5-drain is connected to: the node N1, the MT1-drain, the MT3-drain, the MT7-drain, and the VDD;
the MT5-gate is connected to: the MT3-gate and the MT6-drain via the node N6;
the MT5-source is connected to: the MT3-gate via the node N6 and the MT6-drain via the node N6;
the MT6-drain is connected to: the MT5-source via the node N6, the MT5-gate via the node N6, and the MT3-gate via the node N6;
the MT6-gate is connected to: the MT8-gate via the node N7;
the MT6-source is connected to: a node N8 and the GND;
the MT7-drain is connected to: the node N1, the MT1-drain, the MT3-drain, the MT5-drain, and the VDD;
the MT7-gate is connected to: the MT1-gate, the MT1-source, and the MT2-drain via the node N2;
the MT7-source is connected to the MT8-drain;
the MT8-drain is connected to the MT7-source;
the MT8-gate is connected to the MT6-gate via the node N7;
the MT8-source is connected to the MT9-drain via the node N5;
the MT9-drain is connected to the MT4-source via the node N5 and the MT8-source via the node N5;
the MT9-gate is connected to: the node N3 and the GND;
the MT9-source is connected to: the node N3 and the GND;
the output A is received at the node N4 and the output B is received at the node N7;
the MT1 and the MT2, together, act as a NOT gate to invert the output A to generate output Ac;
the MT5 and the MT6, together, act as a NOT gate to invert the output B to generate Bc; and
the XOR gate is configured to receive the output A, receive the output B, and generate an output C via the node N5.

### Claim 17

A stochastic correlator, comprising:
a first s-bit generator configured to generate output A, and a second s-bit generator configured to generate output B, wherein the output A and the output B are uncorrelated bit streams;
an OR gate, comprising a plurality of memtransistors including:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to: a node N1 and a VDD;
the MT1-gate is connected to a node N2;
the MT1-source is connected to: the MT2-source, a node N4, and the MT3-drain;
the MT2-drain is connected to: the node N1 and the VDD;
the MT2-gate is connected to a node N3;
the MT2-drain is connected to: the MT1-source, the node N4, and the MT3-drain;
the MT3-drain is connected to the MT1-source, the MT2-source, and the node N4;
the MT3-gate is connected to the node N5 and the GND;
the MT3-source is connected to the GND; and
the OR gate is configured to receive the output A at the node N2, receive the output B at the node N3, and generate an output C via the node N4.

### Claim 18

A stochastic sorter, comprising:
a first s-bit generator configured to generate output A, and a second s-bit generator configured to generate output B;
an OR gate configured to receive the output A, receive the output B, and generate an output C that is a maximum value of the output A and the output B; and
an AND gate configured to receive the output A, receive the output B, and generate an output D that is a minimum value of the output A and the output B.

### Claim 19 (depends on 18)

The stochastic sorter of claim 18, wherein:
the OR gate and the AND gate include a plurality of memtransistors including:
a memtransistor, MT1, having a MT1-drain, a MT1-source, and a MT1-gate;
a memtransistor, MT2, having a MT2-drain, a MT2-source, and a MT2-gate;
a memtransistor, MT3, having a MT3-drain, a MT3-source, and a MT3-gate;
a memtransistor, MT4, having a MT4-drain, a MT4-source, and a MT4-gate;
a memtransistor, MT5, having a MT5-drain, a MT5-source, and a MT5-gate; and
a memtransistor, MT6, having a MT6-drain, a MT6-source, and a MT6-gate;
wherein:
each memtransistor is stacked on a non-volatile and programmable local back-gate stack;
each memtransistor has a 2D channel formed between its source and its drain;
the MT1-drain is connected to a node N1 and a VDD;
the MT1-gate is connected to the MT5-gate via a node N2 and a node N3;
the MT1-source is connected to the MT2-drain;
the MT2-drain is connected to the MT1-source;
the MT2-gate is connected to the MT4-gate via the node N3;
the MT2-source is connected to the MT3-drain via a node N4;
the MT3-drain is connected to the MT2-source via the node N4;
the MT3-gate is connected to: a GND and the MT3-source via a node N5;
the MT3-source is connected to: the GND via the node N5 and the MT3-gate via the node N5;
the MT4-drain is connected to: the node N1, the VDD via the node N1, and the MT5-drain via the node N1;
the MT4-gate is connected to the MT2-gate via the node N3;
the MT4-source is connected to: the MT5-source, a node N6, and the MT6-drain;
the MT5-drain is connected to: the node N1, the VDD, and the MT4-drain via the Node N1;
the MT5-gate is connected to the MT1-gate via the node N2;
the MT5-source is connected to: the MT4-source, the node N6, and the MT6-drain;
the MT6-drain is connected to the node N6, the MT5-source, and the MT4-source;
the MT6-gate is connected to the node N5 and the GND via the node N5;
the MT6-source is connected to the GND and the node N5;
the output A from the first s-bit generator is received at the node N3, the output B from the second s-bit generator is received at the node N2, the output C is generated at the node N6, and the output D is generated at the node N4.
