Ya-Wen Jeng
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Quantum Error Correction - **Problem:** the quantum computer cannot be isolated from the environment, therefore, operations can be faulty. This leads to errors in quantum gates, initial state preparation, measurements. - *classical*: redundancy (by copying) - but in quantum cases, by measuring $\alpha|0\rangle+\beta|1\rangle$ will lose the information about $\alpha$ and $\beta$ - even worse for entangled state $\alpha|000\rangle+\beta|111\rangle$ - *Quantum challenges*: - not only bit flip error, but also phase flip or both - errors continuous $U(t)=e^{-iHt}$ - **Effective error model**: Stochastic independently distributed $X,Y,Z$ errors with probability $p$ ### $3$-qubit code - Idea: distribute one qubit $|\psi\rangle=\alpha|0\rangle+\beta|1\rangle$ over $3$ physical qubits. - basis state / codewords $|0\rangle=|000\rangle,|1\rangle=|111\rangle$ - span codespace $$\begin{aligned}|\psi\rangle_L&=\alpha|0\rangle+\beta|1\rangle\\ &=\alpha|000\rangle+\beta|111\rangle\end{aligned}$$ 1. Encoding: $C_1NOT_2$ and $C_1NOT_3$ on $|\psi\rangle|0\rangle|0\rangle\rightarrow |\psi\rangle_L$ 2. possible occurance of errors: - e.g. bit flip error $\alpha|000\rangle+\beta|111\rangle\xrightarrow[]{X_1}\alpha|100\rangle+\beta|011\rangle$ - by measuring: collapse onto $|011\rangle$ or $|100\rangle$ and lose the information about $\alpha$ and $\beta$ - **Solution** indirect measuremnt via ancilla qubits. Apply $C_1NOT_3, C_2NOT_3$ on state $|a\rangle|b\rangle|0_C\rangle$ and measuring $|0_C\rangle$ where $|0_C\rangle$ is an ancilla state. If $|ab\rangle=|00\rangle$ or $|ab\rangle=|11\rangle$, $|0_C\rangle$ will not change. $\Rightarrow$ even parity If $|ab\rangle=|01\rangle$ or $|ab\rangle=|10\rangle$, $|0_C\rangle$ will change to $|1_C\rangle$. $\Rightarrow$ odd parity - general consideration: consider $n$-qubit operation $U$ with eigenvalues $\pm 1$ $$\begin{aligned}|0\rangle|\psi\rangle&\xrightarrow[]{H_1}&1/\sqrt{2}(|0\rangle+|1\rangle)|\psi\rangle\\ &\xrightarrow[]{Controlled-U}&1/\sqrt{2}|0\rangle|\psi\rangle+1/\sqrt{2}|1\rangle U|\psi\rangle\\ &\xrightarrow[]{H_1} & 1/2(|0\rangle+|1\rangle)|\psi\rangle+1/2(|0\rangle-|1\rangle) U|\psi\rangle \\ & &=|0\rangle (1/2)(\mathbb{I}+U)|\psi\rangle+|1\rangle (1/2)(\mathbb{I}-U)|\psi\rangle\end{aligned}$$ where $(1/2)(\mathbb{I}\pm U)$ is $P_\pm:$ projector operator on the $\pm 1$ eigenspace of $U$ $\Rightarrow$ realize a measuremnt of $U$ For $U=Z_1Z_2$ $\Rightarrow$ This is a contrast to measure $Z_1$ and $Z_2$ individually. - Two ancilla qubits $$\begin{aligned}|\psi\rangle|00\rangle\xrightarrow[]{error}&|\psi'\rangle|00'\rangle|00\rangle_{ancilla} \\ \xrightarrow[]{C_1NOT_4, C_2NOT_4, C_2NOT_5, C_3NOT5}&|\psi'\rangle|00'\rangle Z_1Z_2|0\rangle Z_2Z_3|0\rangle \\ \xrightarrow[]{correction}& |\psi''\rangle|00''\rangle\end{aligned}$$ | $Z_1Z_2$| $Z_2Z_3$ | error/correction | |--| --|--| |$1$ |$1$ | $\mathbb{I}$| |$-1$| $1$| $X_1$ | |$-1$| $-1$| $X_2$ | |$1$| $-1$| $X_3$ | > correct only **one** $X$-error on any of the gate > If there are two $X$-errors, then QEC fails > If there are three, then it cannot be detected - *$3$-qubit code is not a complete code* - <ins>Robustness</ins> $3$-qubit code better than one qubit? - error model: - bit flip error: $p$ - no error: $1-p$ - probability to correct: $$p_{correct}=(1-p)^3+3p(1-p)^2$$ no error on $3$ qubits + the probability of one $X$ error $$p_{fail}=3p^2(1-p)+p^3$$ - For $p<1/2$, $p_{correct}>(1-p)$ where $(1-p)$ is the probability of single qubit which successes. $\Rightarrow$ $3$-qubit is better than single qubit. - How to increase robustness? 1. $5$-qubit code $p_{correct}^{(5)}\geq p_{correct}^{(3)}$ for small $p$ 2. contatenation Encode codes in codes in codes.... $$p_{fail}^{(n)}=3(p_{fail}^{(n-1)})^2-2(p_{fail}^{(n-1)})^3\leq 3 (p_{fail}^{(n-1)})^2$$ For $n$ layers of concatenation: $$p_{fail}^{(n)}\leq\frac{1}{3}(3p)^{2^n}$$ $\Rightarrow p_{fail}\rightarrow 0\text{ for }p\leq 1/3$ > double-exponentially fast in the number of layers $n$ > ### Stabilize Formalism - Idea: Fix and describe quantum state by set of commuting observations rather than explicit quantum state vector. - allows us to describe a larger class of multi-qubit states. - Example: - Stabilizer state: $|\Phi^+\rangle=1/\sqrt{2}(|00\rangle+|11\rangle)$ - Stabilizer: $S_1=Z_1Z_2, S_2=X_1X_2$ - $S_1S_2=S_2S_1$, they can commute with each other i.e. $[S_1,S_2]=0$ - $|\Phi^+\rangle$ has unique eigenstate $|\psi\rangle$ $S_1|\psi\rangle=|\psi\rangle\\S_2|\psi\rangle=|\psi\rangle$ - $S_1, S_2$ generates a $2^2=4$ Abelian group: $$\{\mathbb{I},Z_1Z_2,X_1X_2,-Y_1Y_2\}$$ - Generalization of $n$-qubit - $n$ generators $S_1,...,S_n$ - $2^n$ stabilizer operators - $S_i|\psi\rangle=|\psi\rangle,\ \forall\ i$ - Stabilizer QEC code: - $\{S_i\}$ with $[S_i,S_j] = 0,\ \forall\ i,j$ - $O_L$: logical operatoers $Z_L, X_L$, with $[O_L,S_i]=0$ - $\{Z_L,X_L\}=0$ - Quantum hamming bound: - How large must a $\mathcal{H}$ space be, so that we can accomadate QEC codes: - $n$-qubit, $k$ encoded for up to $t$ errors. - if $j$ errors, $j\leq t$ $$\sum_{j=0}^t{n\choose j}3^j\cdot 2^k\leq 2^n\\\text{ called Quantum Hamming Bound}$$ ${n\choose j}:j$ errors occur in $n$-qubits $3^j:$ $X,Y,Z$ errors $2^k:$ error codespace to an $2^k$ dimension orthogonal subspace - for 1 logical qubit $k=1$, 1 arbitrary correctable error $t=1$ $$2(1+3n)\leq2^n$$ $\Rightarrow n\geq 5$ qubits needed for smallest <ins>complete</ins> code. - *9*-qubit shor code: - $$\begin{aligned}|\psi\rangle_L&=\alpha(|000\rangle+|111\rangle)(|000\rangle+|111\rangle)(|000\rangle+|111\rangle)/\sqrt{8}\\ &+\beta(|000\rangle-|111\rangle)(|000\rangle-|111\rangle)(|000\rangle-|111\rangle)/\sqrt{8}\end{aligned}$$ - Bit flip errors $X_i$ can be detected by $\{Z_1Z_2, Z_2Z_3,Z_4Z_5,Z_5Z_6,Z_7Z_8,Z_8Z_9\}$ - phase flip errors $Z_i$ can be detected by $\{X_1X_2X_3X_4X_5X_6,X_4X_5X_6X_7X_8X_9\}$ detect the sign of any of three qubits. - after detecting a phase flip in the first block, we don't know which qubit but we can applying $Z_1$-correction we get the same correct state. - **Property:** - complete code - <ins>degenerate code</ins>: several errors have the same effect on logic state e.g. $Z_1, Z_2$ - Correction works: $$\text{attempt + error = identity or stabilizer}$$ ### Quantum Fault Tolerance - **Problem:** Errors can occur before encoding or during encoding - <ins>uncontrolled error propagation</ins> - example $(C_1NOT_2)X_1=X_1X_2(C_1NOT_2)$ $X$ error propagates from a controlled qubit through $CNOT$ gate onto a target qubit ( propagate errors from $X_1$ to $X_2$) - Fault Tolerant quantum circuit construction: avoid error spread, infection - $7$-qubit scheme code - possible, but requires non-local gates, resource overhead ### Topological QEC - idea: quantum information spread out **globally**, to protect against **local** errors. - no concatenation - increase the size of lattice to increase robustness - no braiding for gates ### Kitaev's toric code - $L\times L$ square lattice with physical qubits located on the edges - Codespace: $S_Z^{(i)}|\psi\rangle=S_X^{(j)}|\psi\rangle=|\psi\rangle$ - Periodic boundry conditions: lattice is embedded on the surface of a torus. $\Rightarrow$ Toric code - number of qubits and operatoins: - $L^2$ plaquette $\Rightarrow$ $2L^2$ physics qubits - $L^2$ plaquette $\Rightarrow$ $L^2$ $Z$-stabalizer - $L^2$ plaquette $\Rightarrow$ $L^2$ $X$-stabalizer - not all stabilizers are independent: $$\prod_i S_Z^{(i)}=\mathbb{I}\Rightarrow\prod_i^{L^2-1} S_Z^{(i)}=S_Z^{(L^2)}$$ - only $L^2-1$ independent $Z(X)$-stabalizers. - $k=$ number of logic qubits$=(\#$physical qubits$)-(\#$independent stabalizer constrains$)=2$ (encoded qubits) > Topological property: independent of size, lattice structure - minimum-weight perfect matching (MWPM) - logic quantum computations: transversal gates - **Transversality:** logic operations = bitwise physical operations (local operations) $$H^{\otimes n}=H_1\otimes H_2\otimes...\otimes H_n$$ if one $H_i$ is wrong, only effect one qubit $\Rightarrow$ Fault Tolerant

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully