Home▸Articles▸Quantum Physics

Random Circuit Sampling Lab: Exploring Quantum Entanglement and Noise

A simulation that delves into the intricacies of quantum circuits, showcasing how randomness can lead to complex entangled states.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Random Circuit Sampling Is

Random circuit sampling is a technique used to demonstrate the power of quantum computers by simulating complex quantum circuits. These circuits are designed with layers of random single-qubit rotations and entangling gates, which scramble qubits into highly entangled states.

The goal is to measure the output distribution of these circuits, often visualized as a histogram, to compare it against theoretical predictions such as the Porter-Thomas distribution.

Why It Matters

Random circuit sampling serves as a benchmark for quantum computers. By comparing the actual output probabilities with theoretical expectations, researchers can assess the performance of quantum hardware and identify noise or errors in the system.

This technique is crucial for developing error correction methods and improving the reliability of quantum computing.

live demo · related simulation● LIVE

The Porter-Thomas Distribution

The Porter-Thomas distribution describes the probability distribution of the eigenvalues of a random unitary matrix. In the context of random circuit sampling, it predicts the expected distribution of measurement outcomes for a maximally entangled state.

This theoretical framework helps in validating the performance of quantum circuits and understanding the effects of noise on quantum states.

Cross-Entropy Benchmarking (XEB) Fidelity

Cross-entropy benchmarking is a method used to quantify how well a quantum circuit can generate random samples. The fidelity measures the overlap between the actual output distribution and the theoretical Porter-Thomas distribution.

A high XEB fidelity indicates that the quantum circuit is effectively scrambling qubits into a maximally entangled state, which is essential for many quantum algorithms.

Frequently asked questions

What does the 'speckle' pattern represent in random circuit sampling?

The speckle pattern represents the scrambled output distribution of the quantum circuit, showing how qubits are entangled and mixed by the applied gates.

How is cross-entropy benchmarking (XEB) fidelity calculated?

XEB fidelity is calculated as the overlap between the empirical probability distribution obtained from measurements and the theoretical Porter-Thomas distribution, quantifying how well the quantum circuit generates random samples.

Why are single-qubit rotations and CZ gates used in random circuits?

Single-qubit rotations introduce randomness and complexity to the circuit, while CZ gates create entanglement between qubits. Together, they scramble the state of all qubits into a highly entangled configuration.

What is the significance of the Porter-Thomas distribution in quantum computing?

The Porter-Thomas distribution provides a theoretical benchmark for the expected output probabilities of maximally entangled states, allowing researchers to validate and compare the performance of different quantum circuits.

Try it live

Everything above runs in your browser — open Random Circuit Sampling Lab and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Random Circuit Sampling Lab simulation

What did you find?

Add reproduction steps (optional)