Write
262
edits
Line 35: | Line 35: | ||
A and B are presented in the [[State Dependent N-M Cloning#Pseudo Code|Pseudo Code]] section. | A and B are presented in the [[State Dependent N-M Cloning#Pseudo Code|Pseudo Code]] section. | ||
== | ==Pseudocode== | ||
'''Input:''' <math>|a\rangle^{\otimes N} \otimes |0\rangle^{\otimes M-N}</math> or <math>|b\rangle^{\otimes N} \otimes |0\rangle^{\otimes M-N}</math></br> | '''Input:''' <math>|a\rangle^{\otimes N} \otimes |0\rangle^{\otimes M-N}</math> or <math>|b\rangle^{\otimes N} \otimes |0\rangle^{\otimes M-N}</math></br> | ||
'''Output:''' <math>|\alpha_{NM}\rangle = (A + B)|a^M\rangle + (A - B)|b^M\rangle</math> or <math>|\beta_{NM}\rangle = (A - B)|a^M\rangle + (A + B)|b^M\rangle</math> | '''Output:''' <math>|\alpha_{NM}\rangle = (A + B)|a^M\rangle + (A - B)|b^M\rangle</math> or <math>|\beta_{NM}\rangle = (A - B)|a^M\rangle + (A + B)|b^M\rangle</math> |