Editing
Verification of NP-complete problems
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Pseudocode== <u>'''Stage 1'''</u> State Preparation # Merlin prepares <math>K=O(\sqrt{N})</math> copies of the state <math>|\psi_x\rangle_k=\frac{1}{\sqrt{N}}\sum_{i=1}^N(-1)^{x_i}|i\rangle</math>. # Sends each copy <math>|\psi\rangle_k</math> to Arthur through their quantum channel. # Arthur chooses at random which test to perform. <u>'''Stage 2'''</u> Satisfiability # Arthur partition the clauses in blocks so that each block contain at most one variable. #He decides at random which block to use and prepares his interferometers so that for each clause the respective optical modes will interfere as in the figure. # If he detects a photon in the first detector he rejects the proof, otherwise he accepts. <u>'''Stage 3'''</u> Uniformity # Arthur chooses a matching <math>\mathcal{M}</math> over [N]. # He then measures each copy in the basis <math>\frac{|i\rangle+|j\rangle}{\sqrt{2}}, \frac{|i\rangle-|j\rangle}{\sqrt{2}}</math>, <math>\forall (i,j)\in \mathcal{M}</math> . # He rejects if for any (i,j) he detects a photon in both detectors. <u>'''Stage 4'''</u> Symmetry # Arthur chooses at random an index <math>k\in\{2, ..., K\}</math> # Performs a SWAP test between <math>|\psi\rangle_1</math> and <math>|\psi\rangle_k</math>. # Accepts if SWAP test accepts.
Summary:
Please note that all contributions to Quantum Protocol Zoo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Quantum Protocol Zoo:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
News
Protocol Library
Certification Library
Nodal Subroutines
Codes Repository
Knowledge Graphs
Submissions
Categories
Supplementary Information
Recent Changes
Contact us
Help
Tools
What links here
Related changes
Special pages
Page information