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

A class and methods to cerate random unitary matrices. More...

#include "Random_Unitary.h"
Include dependency graph for Random_Unitary.cpp:

Go to the source code of this file.

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

A class and methods to cerate random unitary matrices.

Definition in file Random_Unitary.cpp.

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 37 of file Random_Unitary.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: