TransWikia.com

Question on output of SWAP test

Quantum Computing Asked on December 23, 2020

Let’s say I have two arbitrary quantum states $|psirangle$ and $|phirangle$. I apply the SWAP test circuit (something like what is given here), and measure the first qubit to get either $0$ or $1$. Is there any way to get back the states $|psirangle$ and $|phirangle$, in an unentangled form, after this measurement? From what I understand, measuring the output entangles the two states.

One Answer

The output of the qubits is either $$ (Ipmtext{SWAP})|phirangle|psirangle $$ (up to normalisation). As a general rule, information is lost from this compared to $|phirangle|psirangle$ so you cannot reuse the states (unless the states happened to be eigenstates of SWAP, but if you know that, you wouldn't have bothered doing the SWAP test).

To demonstrate this, imagine that $|phirangle|psirangle$ is either $|01rangle$ or $|10rangle$. If you get the $I+text{SWAP}$ answer, the output state is the same for both, $|01rangle+|10rangle$. You cannot tell which of the two inputs it was, so you've lost information.

It could be that whatever further processing you want to do can be done on that output. For example, you might be using the SWAP test to deliberately create a symmetric state that you need for something else.

Correct answer by DaftWullie on December 23, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP