pyqpanda.Algorithm.demo.Grover

Easy demo for Grover algorithm

Copyright (C) Origin Quantum 2017-2018

Licensed Under Apache Licence 2.0

Module Contents

Functions

Three_Qubit_Grover_Circuit(qubits, ancilla, data_pos)

Three Qubit Grover Circuit Generator

Three_Qubit_Grover_Demo()

QPanda Easy Demo

pyqpanda.Algorithm.demo.Grover.Three_Qubit_Grover_Circuit(qubits, ancilla, data_pos)[源代码]

Three Qubit Grover Circuit Generator

list<Qubit>, Qubit, int -> QCircuit

Args:

qubits: working qubits (len=2) ancilla: ancillary qubit data_pos: suppose the data position

pyqpanda.Algorithm.demo.Grover.Three_Qubit_Grover_Demo()[源代码]

QPanda Easy Demo

Quantum algorithm easy demo : Grover's algorithm