pyqpanda.Algorithm.fragments
Module Contents
Functions
|
CNOT all qubits (except last) with the last qubit |
|
Two qubit oracle. |
|
Mapping the data in the "addr" qubits to "data" qubit |
|
Diffusion operator. |
|
Measure a qubit and set to zero |
- pyqpanda.Algorithm.fragments.parity_check_circuit(qubit_list)[源代码]
CNOT all qubits (except last) with the last qubit
- pyqpanda.Algorithm.fragments.two_qubit_oracle(function, qubits)[源代码]
Two qubit oracle.
- Support functions:
f(x)=0 f(x)=1 f(x)=x f(x)=x XOR 1 / f(x)=x+1