Understanding a quantum algorithm to estimate inner productsCompute average value of two-qubit systemHow exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?How can I calculate the inner product of two quantum registers of different sizes?How is measurement modelled when using the density operator?Evaluate the given quantum circuitWhat happens with first phase factor in QFT?Swap Test for vector difference - how are different sized inputs combined?Estimation of Z in the quantum Euclidean algorithmUnderstanding the oracle in Deutsch's algorithmDoes the dilation in Naimark's theorem produce a state?

Does a single fopen introduce TOCTOU vulnerability?

Savage Road Signs

Why do (or did, until very recently) aircraft transponders wait to be interrogated before broadcasting beacon signals?

In The Incredibles 2, why does Screenslaver's name use a pun on something that doesn't exist in the 1950s pastiche?

How to use the word seem

Realistic, logical way for men with medieval-era weaponry to compete with much larger and physically stronger foes

How do I avoid typing "git" at the begining of every Git command?

Nth term of Van Eck Sequence

Create a cube from identical 3D objects

What class is best to play when a level behind the rest of the party?

How to represent jealousy in a cute way?

Quasar Redshifts

Attempt to de-reference a null object when calling class method from Test class

What's the difference between DHCP and NAT? Are they mutually exclusive?

How do I type a hyphen in iOS 12?

Why is my power MOSFET heating up when on?

What does this line mean in Zelazny's The Courts of Chaos?

Why are ambiguous grammars bad?

Parsing text written the millitext font

Playing a trill with grace note ending

How to make a composition of functions prettier?

In Pandemic, why take the extra step of eradicating a disease after you've cured it?

Arranging numbers in a circle such that the sums of neighbors and sums of diametric opposites are prime

How strong someone should be in order to fly without servo assisted hydraulics?



Understanding a quantum algorithm to estimate inner products


Compute average value of two-qubit systemHow exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?How can I calculate the inner product of two quantum registers of different sizes?How is measurement modelled when using the density operator?Evaluate the given quantum circuitWhat happens with first phase factor in QFT?Swap Test for vector difference - how are different sized inputs combined?Estimation of Z in the quantum Euclidean algorithmUnderstanding the oracle in Deutsch's algorithmDoes the dilation in Naimark's theorem produce a state?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4












$begingroup$


While reading the paper "Compiling basic linear algebra subroutines for quantum computers", here, in the Appendix, the author/s have included a section on quantum inner product estimation.



Consider two vectors $x,y in mathbbC^n, x= (x_1, dots , x_n), y= (y_1, ldots, y_n)$, we want to estimate the inner product $langle x | y rangle$. Assume we are given a state $|psi rangle = frac 1 sqrt 2 big(|0 rangle |x rangle + |1 rangle |y rangle big)$, after applying a Hadamard transform to the first qubit, the result is:



$$|psi rangle = frac 1 2 big(|0 rangle (|x rangle + |y rangle) + |1 rangle(|x rangle - |y rangle) big).$$



The author then states that after measuring the first qubit in the computational basis, the probability to measure $|0 rangle$ is given by $p = frac 1 2 big(1 + mathrmRe(langle x | y rangle) big)$. I do not understand this statement. From what I understand, after applying a partial measurement to the first qubit, the probability of measuring $|0 rangle$ is given by
$frac 1 4 sqrt sum_i=0^n(overline(x_i+y_i)(x_i+y_i)) ^2$ (in other words the norm of the vector squared), so I am not sure why these formulas are equivalent, or if I am mistaken.










share|improve this question











$endgroup$











  • $begingroup$
    While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:03











  • $begingroup$
    Well actually the complex inner product is a "type" of hermitian form.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:11

















4












$begingroup$


While reading the paper "Compiling basic linear algebra subroutines for quantum computers", here, in the Appendix, the author/s have included a section on quantum inner product estimation.



Consider two vectors $x,y in mathbbC^n, x= (x_1, dots , x_n), y= (y_1, ldots, y_n)$, we want to estimate the inner product $langle x | y rangle$. Assume we are given a state $|psi rangle = frac 1 sqrt 2 big(|0 rangle |x rangle + |1 rangle |y rangle big)$, after applying a Hadamard transform to the first qubit, the result is:



$$|psi rangle = frac 1 2 big(|0 rangle (|x rangle + |y rangle) + |1 rangle(|x rangle - |y rangle) big).$$



The author then states that after measuring the first qubit in the computational basis, the probability to measure $|0 rangle$ is given by $p = frac 1 2 big(1 + mathrmRe(langle x | y rangle) big)$. I do not understand this statement. From what I understand, after applying a partial measurement to the first qubit, the probability of measuring $|0 rangle$ is given by
$frac 1 4 sqrt sum_i=0^n(overline(x_i+y_i)(x_i+y_i)) ^2$ (in other words the norm of the vector squared), so I am not sure why these formulas are equivalent, or if I am mistaken.










share|improve this question











$endgroup$











  • $begingroup$
    While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:03











  • $begingroup$
    Well actually the complex inner product is a "type" of hermitian form.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:11













4












4








4





$begingroup$


While reading the paper "Compiling basic linear algebra subroutines for quantum computers", here, in the Appendix, the author/s have included a section on quantum inner product estimation.



Consider two vectors $x,y in mathbbC^n, x= (x_1, dots , x_n), y= (y_1, ldots, y_n)$, we want to estimate the inner product $langle x | y rangle$. Assume we are given a state $|psi rangle = frac 1 sqrt 2 big(|0 rangle |x rangle + |1 rangle |y rangle big)$, after applying a Hadamard transform to the first qubit, the result is:



$$|psi rangle = frac 1 2 big(|0 rangle (|x rangle + |y rangle) + |1 rangle(|x rangle - |y rangle) big).$$



The author then states that after measuring the first qubit in the computational basis, the probability to measure $|0 rangle$ is given by $p = frac 1 2 big(1 + mathrmRe(langle x | y rangle) big)$. I do not understand this statement. From what I understand, after applying a partial measurement to the first qubit, the probability of measuring $|0 rangle$ is given by
$frac 1 4 sqrt sum_i=0^n(overline(x_i+y_i)(x_i+y_i)) ^2$ (in other words the norm of the vector squared), so I am not sure why these formulas are equivalent, or if I am mistaken.










share|improve this question











$endgroup$




While reading the paper "Compiling basic linear algebra subroutines for quantum computers", here, in the Appendix, the author/s have included a section on quantum inner product estimation.



Consider two vectors $x,y in mathbbC^n, x= (x_1, dots , x_n), y= (y_1, ldots, y_n)$, we want to estimate the inner product $langle x | y rangle$. Assume we are given a state $|psi rangle = frac 1 sqrt 2 big(|0 rangle |x rangle + |1 rangle |y rangle big)$, after applying a Hadamard transform to the first qubit, the result is:



$$|psi rangle = frac 1 2 big(|0 rangle (|x rangle + |y rangle) + |1 rangle(|x rangle - |y rangle) big).$$



The author then states that after measuring the first qubit in the computational basis, the probability to measure $|0 rangle$ is given by $p = frac 1 2 big(1 + mathrmRe(langle x | y rangle) big)$. I do not understand this statement. From what I understand, after applying a partial measurement to the first qubit, the probability of measuring $|0 rangle$ is given by
$frac 1 4 sqrt sum_i=0^n(overline(x_i+y_i)(x_i+y_i)) ^2$ (in other words the norm of the vector squared), so I am not sure why these formulas are equivalent, or if I am mistaken.







algorithm quantum-state mathematics measurement






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 5 at 10:47









glS

5,1281944




5,1281944










asked Jun 5 at 0:30









IntegrateThisIntegrateThis

1726




1726











  • $begingroup$
    While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:03











  • $begingroup$
    Well actually the complex inner product is a "type" of hermitian form.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:11
















  • $begingroup$
    While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:03











  • $begingroup$
    Well actually the complex inner product is a "type" of hermitian form.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:11















$begingroup$
While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
$endgroup$
– IntegrateThis
Jun 5 at 2:03





$begingroup$
While reading about the complex inner product, also referred to as a "Hermitian Form" I came across the fact that $cos theta = frac Re langle x, y rangle $, so I'm sure this has something to do with it, where $theta$ is the angle between $x,y$.
$endgroup$
– IntegrateThis
Jun 5 at 2:03













$begingroup$
Well actually the complex inner product is a "type" of hermitian form.
$endgroup$
– IntegrateThis
Jun 5 at 2:11




$begingroup$
Well actually the complex inner product is a "type" of hermitian form.
$endgroup$
– IntegrateThis
Jun 5 at 2:11










1 Answer
1






active

oldest

votes


















5












$begingroup$

You just need to do a bit more algebra: Note that
$$ sum_i=0^n (overlinex_i+y_i)(x_i+y_i)=langle x+y|x+yrangle$$



and then you can distribute the right-hand side to get



$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle.$$



Since $| xrangle$ and $| yrangle$ are normalized, we know that $langle x|xrangle=langle y|yrangle=1$. We also know a property of inner products:



$$langle x|yrangle=overlinexrangle$$



Further, if you add a complex number to its conjugate, you get twice its real part, so we have
$$langle x|yrangle+langle y|xrangle=2 Re(langle x|yrangle)$$



Thus, altogether, we have
$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle=2+2Re(langle x|yrangle)$$



I think the probability you computed is off by a factor of 2: There is a $frac12$ as a coefficient of $|0rangle$, so since the norm is squared, this will give a factor of $frac14$. This gives the answer you are supposed to get.






share|improve this answer









$endgroup$












  • $begingroup$
    Ok, thanks, very helpful.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:36











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "694"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6339%2funderstanding-a-quantum-algorithm-to-estimate-inner-products%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









5












$begingroup$

You just need to do a bit more algebra: Note that
$$ sum_i=0^n (overlinex_i+y_i)(x_i+y_i)=langle x+y|x+yrangle$$



and then you can distribute the right-hand side to get



$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle.$$



Since $| xrangle$ and $| yrangle$ are normalized, we know that $langle x|xrangle=langle y|yrangle=1$. We also know a property of inner products:



$$langle x|yrangle=overlinexrangle$$



Further, if you add a complex number to its conjugate, you get twice its real part, so we have
$$langle x|yrangle+langle y|xrangle=2 Re(langle x|yrangle)$$



Thus, altogether, we have
$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle=2+2Re(langle x|yrangle)$$



I think the probability you computed is off by a factor of 2: There is a $frac12$ as a coefficient of $|0rangle$, so since the norm is squared, this will give a factor of $frac14$. This gives the answer you are supposed to get.






share|improve this answer









$endgroup$












  • $begingroup$
    Ok, thanks, very helpful.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:36















5












$begingroup$

You just need to do a bit more algebra: Note that
$$ sum_i=0^n (overlinex_i+y_i)(x_i+y_i)=langle x+y|x+yrangle$$



and then you can distribute the right-hand side to get



$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle.$$



Since $| xrangle$ and $| yrangle$ are normalized, we know that $langle x|xrangle=langle y|yrangle=1$. We also know a property of inner products:



$$langle x|yrangle=overlinexrangle$$



Further, if you add a complex number to its conjugate, you get twice its real part, so we have
$$langle x|yrangle+langle y|xrangle=2 Re(langle x|yrangle)$$



Thus, altogether, we have
$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle=2+2Re(langle x|yrangle)$$



I think the probability you computed is off by a factor of 2: There is a $frac12$ as a coefficient of $|0rangle$, so since the norm is squared, this will give a factor of $frac14$. This gives the answer you are supposed to get.






share|improve this answer









$endgroup$












  • $begingroup$
    Ok, thanks, very helpful.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:36













5












5








5





$begingroup$

You just need to do a bit more algebra: Note that
$$ sum_i=0^n (overlinex_i+y_i)(x_i+y_i)=langle x+y|x+yrangle$$



and then you can distribute the right-hand side to get



$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle.$$



Since $| xrangle$ and $| yrangle$ are normalized, we know that $langle x|xrangle=langle y|yrangle=1$. We also know a property of inner products:



$$langle x|yrangle=overlinexrangle$$



Further, if you add a complex number to its conjugate, you get twice its real part, so we have
$$langle x|yrangle+langle y|xrangle=2 Re(langle x|yrangle)$$



Thus, altogether, we have
$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle=2+2Re(langle x|yrangle)$$



I think the probability you computed is off by a factor of 2: There is a $frac12$ as a coefficient of $|0rangle$, so since the norm is squared, this will give a factor of $frac14$. This gives the answer you are supposed to get.






share|improve this answer









$endgroup$



You just need to do a bit more algebra: Note that
$$ sum_i=0^n (overlinex_i+y_i)(x_i+y_i)=langle x+y|x+yrangle$$



and then you can distribute the right-hand side to get



$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle.$$



Since $| xrangle$ and $| yrangle$ are normalized, we know that $langle x|xrangle=langle y|yrangle=1$. We also know a property of inner products:



$$langle x|yrangle=overlinexrangle$$



Further, if you add a complex number to its conjugate, you get twice its real part, so we have
$$langle x|yrangle+langle y|xrangle=2 Re(langle x|yrangle)$$



Thus, altogether, we have
$$langle x|xrangle+langle x|yrangle+langle y|xrangle+langle y|yrangle=2+2Re(langle x|yrangle)$$



I think the probability you computed is off by a factor of 2: There is a $frac12$ as a coefficient of $|0rangle$, so since the norm is squared, this will give a factor of $frac14$. This gives the answer you are supposed to get.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jun 5 at 2:31









Sam JaquesSam Jaques

4987




4987











  • $begingroup$
    Ok, thanks, very helpful.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:36
















  • $begingroup$
    Ok, thanks, very helpful.
    $endgroup$
    – IntegrateThis
    Jun 5 at 2:36















$begingroup$
Ok, thanks, very helpful.
$endgroup$
– IntegrateThis
Jun 5 at 2:36




$begingroup$
Ok, thanks, very helpful.
$endgroup$
– IntegrateThis
Jun 5 at 2:36

















draft saved

draft discarded
















































Thanks for contributing an answer to Quantum Computing Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fquantumcomputing.stackexchange.com%2fquestions%2f6339%2funderstanding-a-quantum-algorithm-to-estimate-inner-products%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?