mindquantum.algorithm.compiler
MindQuantum compiler related modules.
Fixed decompose rules
Decompose controlled |
|
Decompose controlled |
|
Decompose |
|
Decompose |
|
Decompose controlled |
|
Decompose controlled |
|
Decompose |
|
Decompose |
|
Decompose |
|
Decompose controlled |
|
Decompose controlled |
|
Decompose |
|
Decompose controlled |
|
Decompose a toffoli gate. |
|
Decompose controlled |
|
Decompose controlled |
Universal decompose rules
One-qubit Euler decomposition. |
|
Decompose arbitrary-dimension controlled-U gate. |
|
Quantum Shannon decomposition for arbitrary-dimension unitary gate. |
|
Decompose two-qubit controlled gate via ABC decomposition. |
|
KAK decomposition (CNOT basis) of an arbitrary two-qubit gate. |
|
Tensor product decomposition of a 2-qubit gate. |
Compiler rules
The basic compiler rule class. |
|
Kronecker sequential compiler. |
|
A sequential of compiler. |
|
Decompose gate into a simple gate set. |
|
A compiler that suitable for chip that use cz gate. |
|
Convert cx to cz gate. |
|
Convert cz to cx gate. |
|
Replace given gate with given circuit. |
|
Merge neighbor gate until we cannot merge anymore gates. |
|
Merge two nearby gate if possible. |
|
Directly compile a given circuit and return the result. |
DAG circuit
A Directed Acyclic Graph of a quantum circuit. |
|
Basic node in Directed Acyclic Graph. |
|
DAG node that work as quantum gate. |
|
DAG node that work as quantum qubit. |
|
Connect two DAG node through given local_index. |
|
Try to merge two gate nodes. |