2022年10月29日 星期六

Deutsch-Jozsa Algorithm

 Deutsch-Jozsa Algorithm

2022/10/25

-----


https://pixabay.com/zh/photos/censorship-limitations-610101/

-----

「The Deutsch-Jozsa algorithm was the first example of a quantum algorithm that performs better than the best classical algorithm.」[1]。「Deutsch-Jozsa 算法是第一個表現優於最佳經典算法的量子算法示例。」[1].


一、先安裝 qiskit。

「!pip install qiskit

!pip install qiskit[visualization]」[8]。


二、所附程式碼有誤,以下為正確的程式碼。

「print(cbfd_test(f1,3))

print(cbfd_test(f2,3))」[9]。


「We are given a hidden Boolean function f, which takes as input a string of bits, and returns either 0 or 1, that is:

f({x0,x1,x2,...}) → 0 or 1 , where xn is 0 or  1

The property of the given Boolean function is that it is guaranteed to either be balanced or constant. A constant function returns all 0's or all 1's for any input, while a balanced function returns 0's for exactly half of all inputs and 1's for the other half. Our task is to determine whether the given function is balanced or constant.」[1]。


「一個隱藏的布爾函數 f,它以一串位元作為輸入,並傳回 0 或 1,即:

f({x0,x1,x2,...}) → 0 或 1 ,其中 xn 為 0 或 1

給定布爾函數的屬性是保證它是平衡的或恆定的。 常量函數為任何輸入傳回全 0 或全 1,而平衡函數為所有輸入的一半傳回 0,而另一半傳回 1。 我們的任務是確定給定函數是平衡的還是恆定的。」[1]。

-----

References


[1] Deutsch-Jozsa Algorithm

https://qiskit.org/textbook/ch-algorithms/deutsch-jozsa.html


[2] Deutsch-Jozsa algorithm - IBM Quantum

https://quantum-computing.ibm.com/composer/docs/iqx/guide/deutsch-jozsa-algorithm


[3] 6.2 Deutsch–Jozsa算法— QRunes_tutorial documentation

https://qrunes-tutorial.readthedocs.io/en/latest/chapters/algorithms/DJ_Algorithm.html


[4] 多伊奇-喬薩算法 - 維基百科,自由的百科全書

https://zh.wikipedia.org/zh-tw/%E5%A4%9A%E4%BC%8A%E5%A5%87-%E4%B9%94%E8%90%A8%E7%AE%97%E6%B3%95


[5] Deutsch–Jozsa algorithm - Wikipedia

https://en.wikipedia.org/wiki/Deutsch%E2%80%93Jozsa_algorithm


[6] Introduction to quantum computing: The Deutsch algorithm. — Anastasios Kyrillidis

https://akyrillidis.github.io/notes/quant_post_8


[7] Deutsch-Jozsa Algorithm: Quantum Computing Basics | by Saptashwa Bhattacharyya | A Bit of Qubit | Medium

https://medium.com/a-bit-of-qubit/deutsch-jozsa-algorithm-quantum-computing-basics-708df8c4caf7


#  colab qiskit 實作

[8] 輕鬆學量子程式設計

https://staff.csie.ncu.edu.tw/jrjiang/qbook/


#  colab qiskit 實作

[9] CHAPTER 5 Deutsch-Jozsa 演算法量子程式設計

https://staff.csie.ncu.edu.tw/jrjiang/qbook/Code-Ch5.ipynb


[10] Cirq Programming 3: The Deutsch Jozsa Algorithm | by Richard Wang | Medium

https://richardwang-qm.medium.com/cirq-programming-3-the-deutsch-jozsa-bdc31982f187


[11] Implementing Deutsch’s Algorithm in qiskit and cirq | by Jan Czechowski | Medium

https://jan-czechowski.medium.com/implementing-deutschs-algorithm-in-qiskit-and-cirq-48949d60e59d


[12] (527) 【Quantum Computing】Deutsch-Jozsa Algorithm | #4 Programming on IBM Quantum - YouTube

https://www.youtube.com/watch?v=TSoJKPde5ro


[13] (527) 【Quantum Computing】Deutsch-Jozsa Algorithm Mathematical Derivation | #1 Background Knowledge - YouTube

https://www.youtube.com/watch?v=f4_ySJsNVZQ


[14] (527) 【Quantum Computing】Deutsch-Jozsa Algorithm Mathematical Derivation | #2 Statevector on each Inspect - YouTube

https://www.youtube.com/watch?v=yBW4ARZXL5U


[15] (527) 【Quantum Computing】Deutsch-Jozsa Algorithm Mathematical Derivation | #3 How the Algorithm work - YouTube

https://www.youtube.com/watch?v=BXQr260mzFw

-----

Quantum Computing(目錄)

https://mandhistory.blogspot.com/2022/01/quantum-computing.html

-----

沒有留言:

張貼留言

注意:只有此網誌的成員可以留言。