

FrameworkExpansion
Quantum Random Number Generator
- Size
- 24 × 27.3 mm
- Copper layers
- 2
- Thickness
- 0.8 mm
- Parts
- 26
- Nets
- 44
- Pads
- 139
- Tracks, vias
- 254, 24
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 11 Oct 2019
- Updated
- 28 Apr 2022
Overview
FrameworkExpansion is an open-source printed circuit board by Spooky-Manufacturing, from the Spooky-Manufacturing/QRNG repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 24 × 27.3 mm with 26 parts on 44 nets, routed with 254 tracks and 24 vias.
It is built around the AP2112K-3.3. Its parts include 12 capacitors, 4 resistors, 2 ICs, 1 diode and 1 transistor. It belongs with the STM32 boards of this library.
Main components
1README
README.mdQRNG
Quantum Random Number Generator

Motivation
The QRNGv1 (Now QRNG_BASIC) was originally a proof of concept for quantum technology applications, specifically in this case for the generation of entropy which has a broad range of uses from generating graphics to encryption keys.
How It Works
The device uses a polarizing beam splitter to split a laser pulse into two beams with a 50/50 probability of a photon in the beam traveling either path. The photons actually travel as a wave, meaning they both pass through and are reflected by the beam splitter. This creates what's known as the superposition of light where the light remains in both paths able to interfere with itself until it is measured and collapses out of superposition.

The equivalent quantum logic gate would be the Hadamard gate, in QASM code:
creg c0[1];
h q[1];
measure q[1] -> c0;Hardware Requirements
- Arduino Uno (or similar)
- Breadboard
- 2x Photoresistors
- 1x 50/50 Polarizing beam splitter
- 1x Laser Diode
Software Requirements
- Arduino IDE (for programming the Arduino)
Firmare
Firmware can be found in the respective design folders labelled according to version. The schematics as well are labelled with the version of firmware which supports them.
How To Use
Currently the QRNG arduino operates via the Arduino Serial Monitor, you can issue single letter commands to it. We plan to add support for the device with our Qubit Controller in the near future.
Available Commands
- v : Version, returns the current firmware verison
- t : Test command, should return 'Success!' on the monitor
- e : Enables extraneous information
- r : Returns a random bit generated by the RNG
- h : Produces a hadamard operation on the qubit, returning the measured angle of the qubit
Parts
26| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 100nF | Capacitor_SMD:C_0402_1005Metric | C7, C8, C9, C10, C11, C12, C13 |
| 4 | TestPoint | TestPoint:TestPoint_Pad_1.5x1.5mm | TP1, TP2, TP3, TP4 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C1, C2 |
| 2 | C_Small | Capacitor_SMD:C_0402_1005Metric | C3, C4 |
| 2 | R_PHOTO | OptoDevice:R_LDR_5.2x5.2mm_P3.5mm_Horizontal | R3, R4 |
| 1 | 10k | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 4.7uF | Capacitor_SMD:C_0402_1005Metric | C6 |
| 1 | 5.1k | Resistor_SMD:R_0603_1608Metric | R1 |
| 1 | AP2112K-3.3 | Package_TO_SOT_SMD:SOT-23-5 | U1 |
| 1 | Crystal_GND24 | Oscillator:Oscillator_SMD_ECS_2520MV-xxx-xx-4Pin_2.5x2.0mm | Y1 |
| 1 | LED | LED_SMD:LED_0402_1005Metric | D1 |
| 1 | Q_NPN_BCE | Package_TO_SOT_SMD:SOT-23 | Q1 |
| 1 | STM32F411CEUx | Package_DFN_QFN:QFN-48-1EP_7x7mm_P0.5mm_EP5.6x5.6mm | U2 |
| 1 | USB_C_Plug_USB2.0 | Expansion_Card:USB_C_Plug_Molex_105444 | P1 |
More from Spooky-Manufacturing/QRNG
1- 2 layers44 × 20.5 mm

Similar boards
- 2 layers26 × 30 mm

Microcontroller
FrameworkComputer/ExpansionCards
Reference designs and documentation to create Expansion Cards for the Framework Laptop
34 parts1.1kCC-BY-4.0 - 2 layers53.2 × 24.8 mm

- 2 layers36 × 20 mm

- 2 layers25 × 25 mm

SmallEncoder
DDeGonge/OS-ARM
This arm is not industrial and it will not be fast, but that is not my goal. But it will hopefully be a very nice looking arm fully capable of 6dof motion, cheap enough to keep it accessable but capable enough to…
17 parts498MIT - 4 layers70 × 72 mm

- 4 layers60.8 × 61.3 mm

- 2 layers100 × 57 mm

- 4 layers74 × 104 mm

Questions
How big is the FrameworkExpansion PCB?
It measures 24 × 27.3 mm and has 2 copper layers, 0.8 mm thick.
What parts does the FrameworkExpansion use?
26 parts, built around the AP2112K-3.3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
Where can I download the FrameworkExpansion KiCad files?
From the Spooky-Manufacturing/QRNG repository on GitHub, at the commit this page was made from: the board is FrameworkExpansion/FrameworkExpansion.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the FrameworkExpansion design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).