Sequential Quantum Gate Decomposer
v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
|
A simple example file for a decomposition of general random unitaries into custom structure of U3 and CNOT gates. More...
#include <iostream>
#include <stdio.h>
#include <map>
#include "common.h"
#include "N_Qubit_Decomposition.h"
#include "Random_Unitary.h"
#include "logging.h"
Go to the source code of this file.
Functions | |
Gates_block * | create_custom_gate_structure (int qbit_num) |
Function to create custom gate structure for the decomposition. More... | |
int | main () |
Decomposition of general random unitary matrix into a custom structure of U3 and CNOT gates. More... | |
A simple example file for a decomposition of general random unitaries into custom structure of U3 and CNOT gates.
Definition in file custom_gate_structure_test.cpp.
Gates_block* create_custom_gate_structure | ( | int | qbit_num | ) |
Function to create custom gate structure for the decomposition.
qbit_num | The number of qubits for which the gate structure is constructed. |
[gates block]
[gates block]
[disentangle qubit]
[disentangle qubit]
[custom structure]
[custom structure]
Definition at line 48 of file custom_gate_structure_test.cpp.
int main | ( | ) |
Decomposition of general random unitary matrix into a custom structure of U3 and CNOT gates.
Stringstream input to store the output messages.
Logging variable to set the verbosity level.
Set the verbosity level of the output messages.
[general random]
[general random]
[creating decomp class]
[creating decomp class]
[creating custom gate structure]
[creating custom gate structure]
[performing decomposition]
[performing decomposition]
Definition at line 112 of file custom_gate_structure_test.cpp.