pyqpanda.Algorithm.demo.Deustch_Jozsa

Quantum Algorithm Easy Demo: Deutsch-Jozsa Algorithm

This algorithm takes a function as the input. Task is to judge it whether "Constant" (same outputs with all inputs) or "Balanced" (half outputs 0 and half outputs 1)

Copyright (C) Origin Quantum 2017-2018

Licensed Under Apache Licence 2.0

Module Contents

Functions

Two_Qubit_DJ_Circuit([function])

Create a 2-qubit DJ algorithm circuit

Two_Qubit_DJ_Demo()

QPanda Easy Demo

pyqpanda.Algorithm.demo.Deustch_Jozsa.Two_Qubit_DJ_Circuit(function='f(x)=0')[源代码]

Create a 2-qubit DJ algorithm circuit

pyqpanda.Algorithm.demo.Deustch_Jozsa.Two_Qubit_DJ_Demo()[源代码]

QPanda Easy Demo

Quantum Algorithm Easy Demo: Deustch-Jozsa algorithm