﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://scholarlywiki.org/index.php?action=history&amp;feed=atom&amp;title=Physics%3AQuantum_random_access_code</id>
	<title>Physics:Quantum random access code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://scholarlywiki.org/index.php?action=history&amp;feed=atom&amp;title=Physics%3AQuantum_random_access_code"/>
	<link rel="alternate" type="text/html" href="https://scholarlywiki.org/index.php?title=Physics:Quantum_random_access_code&amp;action=history"/>
	<updated>2026-05-14T03:08:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://scholarlywiki.org/index.php?title=Physics:Quantum_random_access_code&amp;diff=989&amp;oldid=prev</id>
		<title>imported&gt;WikiHarold: Replace raw Quantum Collection backlink with B backlink template</title>
		<link rel="alternate" type="text/html" href="https://scholarlywiki.org/index.php?title=Physics:Quantum_random_access_code&amp;diff=989&amp;oldid=prev"/>
		<updated>2026-05-08T19:08:27Z</updated>

		<summary type="html">&lt;p&gt;Replace raw Quantum Collection backlink with B backlink template&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:08, 8 May 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>imported&gt;WikiHarold</name></author>
	</entry>
	<entry>
		<id>https://scholarlywiki.org/index.php?title=Physics:Quantum_random_access_code&amp;diff=498&amp;oldid=prev</id>
		<title>imported&gt;WikiHarold: Replace raw Quantum Collection backlink with B backlink template</title>
		<link rel="alternate" type="text/html" href="https://scholarlywiki.org/index.php?title=Physics:Quantum_random_access_code&amp;diff=498&amp;oldid=prev"/>
		<updated>2026-05-08T19:08:27Z</updated>

		<summary type="html">&lt;p&gt;Replace raw Quantum Collection backlink with B backlink template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Encoding an n-bit string in m qubits}}&lt;br /&gt;
{{Quantum book backlink|Quantum information and computing}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Quantum random access codes&amp;#039;&amp;#039;&amp;#039; (QRACs) are a quantum information theoretic primitive used to encode a string of classical bits into a quantum state of smaller dimension, such that any single bit of the original string can be retrieved with a certain probability of success. QRACs are a form of quantum data compression that exploit the properties of quantum superposition and measurement to outperform their classical counterparts, known as random access codes (RACs).&amp;lt;ref name=&amp;quot;Ambainis2002&amp;quot;&amp;gt;{{cite book |last1=Ambainis |first1=A. |last2=Nayak |first2=A. |last3=Ta-Shma |first3=A. |last4=Vazirani |first4=U. |chapter=Dense quantum coding and a lower bound for 1-way quantum automata |title=Proceedings of the thirty-first annual ACM symposium on Theory of Computing |year=1999 |pages=376–383 |doi=10.1145/301250.301347 |arxiv=quant-ph/9804043 |isbn=1-58113-067-8 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
QRACs are fundamental in the study of quantum communication complexity, [[Quantum entanglement|quantum entanglement]], and the foundations of quantum mechanics, particularly in the context of contextuality and Bell inequalities.&amp;lt;ref name=&amp;quot;Galvao2002&amp;quot;&amp;gt;{{cite journal |last1=Galvão |first1=E. F. |title=Foundations of quantum theory and quantum information applications |journal=PhD Thesis, Oxford University |year=2002 |arxiv=quant-ph/0212124 |bibcode=2002quant.ph.12124G }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;float:right; border:1px solid #e0d890; background:#fff8cc; padding:6px; margin:0 0 1em 1em; width:420px;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:Quantum_random_access_code_yellow.png|400px]]&lt;br /&gt;
&amp;lt;div style=&amp;quot;font-size:90%;&amp;quot;&amp;gt;Quantum random access code protocol. Alice encodes an &amp;lt;i&amp;gt;n&amp;lt;/i&amp;gt;-bit string into &amp;lt;i&amp;gt;m&amp;lt;/i&amp;gt; qubits, with &amp;lt;i&amp;gt;m&amp;lt;/i&amp;gt; &amp;amp;lt; &amp;lt;i&amp;gt;n&amp;lt;/i&amp;gt;. Bob chooses an index &amp;lt;i&amp;gt;i&amp;lt;/i&amp;gt; and performs a measurement to guess the requested bit &amp;lt;i&amp;gt;x&amp;lt;/i&amp;gt;&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;.&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;math&amp;gt;(n, m, p)&amp;lt;/math&amp;gt;-QRAC is a protocol in which &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; classical bits, denoted by &amp;lt;math&amp;gt;x = x_1 x_2 \dots x_n \in \{0, 1\}^n&amp;lt;/math&amp;gt;, are encoded into a quantum state &amp;lt;math&amp;gt;\rho_x&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; qubits. The goal is to retrieve any bit &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; (where &amp;lt;math&amp;gt;i \in \{1, \dots, n\}&amp;lt;/math&amp;gt;) chosen by a receiver, with a success probability of at least &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;Ambainis2002&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Formally, the protocol consists of two maps:&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Encoding&amp;#039;&amp;#039;&amp;#039;: A map &amp;lt;math&amp;gt;\mathcal{E}: \{0, 1\}^n \to \mathcal{D}(\mathcal{H}_{2^m})&amp;lt;/math&amp;gt; that assigns a density matrix &amp;lt;math&amp;gt;\rho_x&amp;lt;/math&amp;gt; to every input string &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;.&lt;br /&gt;
# &amp;#039;&amp;#039;&amp;#039;Decoding&amp;#039;&amp;#039;&amp;#039;: A set of [[POVM|Positive Operator-Valued Measures]] (POVMs) &amp;lt;math&amp;gt;\{M_i\}_{i=1}^n&amp;lt;/math&amp;gt;. Each &amp;lt;math&amp;gt;M_i = \{E_i^0, E_i^1\}&amp;lt;/math&amp;gt; is a two-outcome measurement designed to guess the value of the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;-th bit.&lt;br /&gt;
&lt;br /&gt;
The probability of correctly guessing the &amp;lt;math&amp;gt;i&amp;lt;/math&amp;gt;-th bit of &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is given by:&lt;br /&gt;
:&amp;lt;math&amp;gt;P(\text{guess } x_i \text{ correctly}) = \text{Tr}(E_i^{x_i} \rho_x) \ge p&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the code to be non-trivial, the probability &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; must be strictly greater than &amp;lt;math&amp;gt;1/2&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Comparison with Classical RACs ==&lt;br /&gt;
A classical random access code (RAC) is defined similarly, but the encoding maps the &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; bits into &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; &amp;#039;&amp;#039;classical&amp;#039;&amp;#039; bits. A fundamental result in information theory, derived from [[Holevo&amp;#039;s theorem]], states that for a classical or quantum &amp;lt;math&amp;gt;(n, m, p)&amp;lt;/math&amp;gt;-RAC to exist with &amp;lt;math&amp;gt;p &amp;gt; 1/2&amp;lt;/math&amp;gt;, we must have &amp;lt;math&amp;gt;m \ge n(1 - H(p))&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;H(p)&amp;lt;/math&amp;gt; is the [[Binary entropy function|binary entropy function]]. Effectively, to recover &amp;#039;&amp;#039;any&amp;#039;&amp;#039; bit with high probability, the encoded size must be close to the original size.&amp;lt;ref name=&amp;quot;Nayak1999&amp;quot;&amp;gt;{{cite book |last1=Nayak |first1=A. |chapter=Optimal lower bounds for quantum automata and random access codes |title=40th Annual Symposium on Foundations of Computer Science (Cat. No.99CB37039) |year=1999 |pages=369–376 |doi=10.1109/SFFCS.1999.814608 |arxiv=quant-ph/9904093 |isbn=0-7695-0409-4 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Although quantum and classical RACs share the same aforementioned bound, QRACs can compress information more efficiently than classical ones. For example, it is possible to encode 2 bits into 1 qubit with a success probability of &amp;lt;math&amp;gt;p \approx 0.85&amp;lt;/math&amp;gt;, and 3 bits into 1 qubit with &amp;lt;math&amp;gt;p \approx 0.79&amp;lt;/math&amp;gt;. This demonstrates a quantum advantage in terms of encoding efficiency.&amp;lt;ref name=&amp;quot;Ambainis2002&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Nayak&amp;#039;s Bound ===&lt;br /&gt;
Despite this advantage, quantum mechanics does not allow for infinite compression. Ashwin Nayak proved a strict lower bound for QRACs, known as &amp;#039;&amp;#039;&amp;#039;Nayak&amp;#039;s bound&amp;#039;&amp;#039;&amp;#039;. For an &amp;lt;math&amp;gt;(n, m, p)&amp;lt;/math&amp;gt;-QRAC, the number of qubits &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; must satisfy:&lt;br /&gt;
:&amp;lt;math&amp;gt;m \ge n(1 - H(p))&amp;lt;/math&amp;gt;&lt;br /&gt;
This inequality is formally identical to the classical bound, but since quantum states exist in a continuous Hilbert space rather than a discrete set, specific constructions like the 2-to-1 and 3-to-1 codes are realizable in the quantum case where they are impossible classically for the same length &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt;. However, the number of &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; classical bits that can be encoded with &amp;lt;math&amp;gt;m&amp;lt;/math&amp;gt; qubits is at most &amp;lt;math&amp;gt;4^{m}-1&amp;lt;/math&amp;gt; even when &amp;lt;math&amp;gt;p&amp;lt;/math&amp;gt; is infinitely close to &amp;lt;math&amp;gt;1/2&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;Nayak1999&amp;quot;/&amp;gt;&amp;lt;ref name=&amp;quot;Hayashi2006&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite journal |last=Iwama |first=Kazuo |last2=Nishimura |first2=Harumichi |last3=Raymond |first3=Rudy |last4=Yamashita |first4=Shigeru |date=2007 |editor-last=Arge |editor-first=Lars |editor2-last=Cachin |editor2-first=Christian |editor3-last=Jurdziński |editor3-first=Tomasz |editor4-last=Tarlecki |editor4-first=Andrzej |title=Unbounded-Error One-Way Classical and Quantum Communication Complexity |url=https://link.springer.com/chapter/10.1007/978-3-540-73420-8_12?error=cookies_not_supported&amp;amp;code=2e698b6e-4033-42ef-90f9-dded9e106dcf |journal=Automata, Languages and Programming |language=en |location=Berlin, Heidelberg |publisher=Springer |pages=110–121 |doi=10.1007/978-3-540-73420-8_12 |isbn=978-3-540-73420-8|arxiv=0706.3265 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
=== 2-to-1 QRAC ===&lt;br /&gt;
The &amp;lt;math&amp;gt;(2, 1, p)&amp;lt;/math&amp;gt;-QRAC encodes &amp;lt;math&amp;gt;n=2&amp;lt;/math&amp;gt; classical bits (&amp;lt;math&amp;gt;x_1, x_2&amp;lt;/math&amp;gt;) into &amp;lt;math&amp;gt;m=1&amp;lt;/math&amp;gt; qubit. The optimal strategy yields a success probability of &amp;lt;math&amp;gt;p = \frac{1}{2} + \frac{1}{2\sqrt{2}} \approx 0.854&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;Hayashi2006&amp;quot;&amp;gt;{{Cite book |last1=Hayashi |first1=Masahito |last2=Iwama |first2=Kazuo |last3=Nishimura |first3=Harumichi |last4=Raymond |first4=Rudy |last5=Yamashita |first5=Shigeru |date=2007 |editor-last=Thomas |editor-first=Wolfgang |chapter=Quantum Network Coding |series=Lecture Notes in Computer Science |volume=4393 |editor2-last=Weil |editor2-first=Pascal |title=Stacs 2007 |language=en |location=Berlin, Heidelberg |publisher=Springer |pages=610–621 |doi=10.1007/978-3-540-70918-3_52 |arxiv=quant-ph/0601088 |isbn=978-3-540-70918-3}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The encoding maps the four possible strings &amp;lt;math&amp;gt;00, 01, 10, 11&amp;lt;/math&amp;gt; to four qubit states located on the equator of the [[Physics:Bloch sphere|Bloch sphere]]:&lt;br /&gt;
* &amp;lt;math&amp;gt;00 \to |+\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;01 \to |+i\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;10 \to |-\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
* &amp;lt;math&amp;gt;11 \to |-i\rangle&amp;lt;/math&amp;gt;&lt;br /&gt;
To recover &amp;lt;math&amp;gt;x_1&amp;lt;/math&amp;gt;, one measures in the X-basis (Pauli-X). To recover &amp;lt;math&amp;gt;x_2&amp;lt;/math&amp;gt;, one measures in the Y-basis (Pauli-Y).&lt;br /&gt;
&lt;br /&gt;
=== 3-to-1 QRAC ===&lt;br /&gt;
The &amp;lt;math&amp;gt;(3, 1, p)&amp;lt;/math&amp;gt;-QRAC encodes &amp;lt;math&amp;gt;n=3&amp;lt;/math&amp;gt; bits into &amp;lt;math&amp;gt;m=1&amp;lt;/math&amp;gt; qubit. The encoding states correspond to the vertices of a cube inscribed in the Bloch sphere. The optimal success probability is &amp;lt;math&amp;gt;p = \frac{1}{2} + \frac{1}{2\sqrt{3}} \approx 0.789&amp;lt;/math&amp;gt;. This is the maximum number of bits that can be encoded into a single qubit such that every bit can be recovered with probability strictly greater than &amp;lt;math&amp;gt;1/2&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;Ambainis2002&amp;quot;/&amp;gt;&amp;lt;ref&amp;gt;{{Cite journal |last=Hayashi |first=M |last2=Iwama |first2=K |last3=Nishimura |first3=H |last4=Raymond |first4=R |last5=Yamashita |first5=S |date=2006-08-04 |title=(4,1)-Quantum random access coding does not exist—one qubit is not enough to recover one of four bits |url=https://iopscience.iop.org/article/10.1088/1367-2630/8/8/129 |journal=New Journal of Physics |volume=8 |issue=8 |pages=129–129 |doi=10.1088/1367-2630/8/8/129 |issn=1367-2630|arxiv=quant-ph/0604061 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Entanglement-Assisted QRACs ==&lt;br /&gt;
The concept can be extended to scenarios where the sender and receiver share [[Quantum entanglement|entanglement]]. In an &amp;#039;&amp;#039;&amp;#039;Entanglement-Assisted Random Access Code&amp;#039;&amp;#039;&amp;#039; (EARAC), the parties share a maximally entangled state. The sender performs a measurement on their half of the entangled state based on the input string &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; and sends the classical outcome (or a quantum system) to the receiver. This setup allows for &amp;quot;superdense coding&amp;quot; variants of RACs, achieving higher success probabilities or compression rates than unentangled QRACs.&amp;lt;ref name=&amp;quot;Pawlowski2010&amp;quot;&amp;gt;{{cite journal |last1=Pawłowski |first1=M. |last2=Żukowski |first2=M. |title=Entanglement-assisted random access codes |journal=Physical Review A |volume=81 |issue=4 |article-number=042326 |year=2010 |doi=10.1103/PhysRevA.81.042326 |arxiv=0912.3524 |bibcode=2010PhRvA..81d2326P }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Applications ==&lt;br /&gt;
&lt;br /&gt;
=== Quantum Finite Automata ===&lt;br /&gt;
QRACs were originally developed to prove lower bounds on the size of [[Quantum finite automaton|Quantum Finite Automata]] (QFA). If a QFA recognizes a language with high probability, its states effectively encode the history of the input string. Nayak&amp;#039;s bound on QRACs translates to a lower bound on the number of states required for the automaton.&amp;lt;ref name=&amp;quot;Ambainis2002&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Foundations of Quantum Mechanics ===&lt;br /&gt;
QRACs are closely related to the study of &amp;#039;&amp;#039;&amp;#039;contextuality&amp;#039;&amp;#039;&amp;#039;. The inability to simultaneously retrieve all encoded bits reflects the uncertainty principle and the disturbance caused by measurement. The success probabilities of QRACs appear as bounds in various Bell inequalities and non-contextuality inequalities. For instance, the success probability of the 2-to-1 QRAC is related to the Tsirelson bound of the CHSH inequality.&amp;lt;ref name=&amp;quot;Tavakoli2015&amp;quot;&amp;gt;{{cite journal |last1=Tavakoli |first1=A. |last2=Hameedi |first2=A. |last3=Marques |first3=B. |last4=Bourennane |first4=M. |title=Quantum random access codes using single d-level systems |journal=Physical Review Letters |volume=114 |issue=17 |article-number=170502 |year=2015 |doi=10.1103/PhysRevLett.114.170502 |pmid=25978213 |arxiv=1411.6669 |bibcode=2015PhRvL.114q0502T }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Network Coding ===&lt;br /&gt;
In quantum network coding, QRACs provide a primitive for compressing information sent over bottleneck channels in a quantum network. They help in optimizing the throughput of quantum information transfer.&amp;lt;ref name=&amp;quot;Hayashi2006&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=See also=&lt;br /&gt;
{{#invoke:PhysicsQC|tocHeadingAndList|Physics:Quantum basics/See also}}&lt;br /&gt;
&lt;br /&gt;
=References=&lt;br /&gt;
{{reflist|3}}&lt;br /&gt;
&lt;br /&gt;
{{Author|Harold Foppele}}&lt;br /&gt;
&lt;br /&gt;
{{Sourceattribution|Random access code|1}}&lt;/div&gt;</summary>
		<author><name>imported&gt;WikiHarold</name></author>
	</entry>
</feed>