Quantum Gate Decomposer  v1.3
Powerful decomposition of almost any unitary into U3 and CNOT gates
Classes | Functions
Random_Unitary.h File Reference

Header file for a class and methods to cerate random unitary matrices. More...

#include <map>
#include <cstdlib>
#include <time.h>
#include <ctime>
#include "qgd/common.h"
#include "qgd/U3.h"
#include "qgd/CNOT.h"
#include "qgd/matrix.h"
Include dependency graph for Random_Unitary.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Random_Unitary
 A class to cerate general random unitary matrix according to arXiv:1303:5904v1. More...
 

Functions

Matrix few_CNOT_unitary (int qbit_num, int cnot_num)
 Call to create a random unitary constructed by CNOT operation between randomly chosen qubits and by random U3 operations. More...
 

Detailed Description

Header file for a class and methods to cerate random unitary matrices.

Definition in file Random_Unitary.h.

Function Documentation

◆ few_CNOT_unitary()

Matrix few_CNOT_unitary ( int  qbit_num,
int  cnot_num 
)

Call to create a random unitary constructed by CNOT operation between randomly chosen qubits and by random U3 operations.

Parameters
qbit_numThe number of qubits spanning the unitary.
cnot_numThe number of CNOT gates composing the random unitary.
Returns
Returns with the the constructed random unitary.

Definition at line 36 of file Random_Unitary.cpp.

Here is the call graph for this function: