Sequential Quantum Gate Decomposer  v1.9.3
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
decomposition_test.cpp File Reference

A simple example file for a decomposition of general random unitaries. More...

#include <iostream>
#include <stdio.h>
#include <map>
#include "common.h"
#include "N_Qubit_Decomposition.h"
#include "Random_Unitary.h"
#include "logging.h"
Include dependency graph for decomposition_test.cpp:

Go to the source code of this file.

Functions

int main ()
 Decomposition of general random unitary matrix into U3 and CNOT gates. More...
 

Detailed Description

A simple example file for a decomposition of general random unitaries.

Definition in file decomposition_test.cpp.

Function Documentation

◆ main()

int main ( )

Decomposition of general random unitary matrix into 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.

[few CNOT]

[few CNOT]

[general random]

[general random]

[creating decomp class]

[creating decomp class]

[set parameters]

[set parameters]

[performing decomposition]

[performing decomposition]

Definition at line 45 of file decomposition_test.cpp.

Here is the call graph for this function: