Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Classes | Namespaces | Functions | Variables
test_circuit.py File Reference

Go to the source code of this file.

Classes

class  tests.gates.test_circuit.TestApplyDerivateTo
 
class  tests.gates.test_circuit.TestApplyDerivateToF32
 
class  tests.gates.test_circuit.TestApplyFromRight
 
class  tests.gates.test_circuit.TestApplyToCombined
 
class  tests.gates.test_circuit.TestApplyToFloat32
 
class  tests.gates.test_circuit.TestApplyToFloat64
 
class  tests.gates.test_circuit.TestApplyToList
 
class  tests.gates.test_circuit.TestApplyToListF32
 
class  tests.gates.test_circuit.TestCircuitMisc
 
class  tests.gates.test_circuit.TestGateFusion
 
class  tests.gates.test_circuit.TestGeneralOperation
 
class  tests.gates.test_circuit.TestNestedCircuit
 
class  tests.gates.test_circuit.TestRectangularApplyRoutes
 

Namespaces

 tests.gates.test_circuit
 

Functions

def tests.gates.test_circuit._assert_state_close (a, b, rtol=1e-6)
 
def tests.gates.test_circuit._assert_unitary_close (a, b, rtol=1e-6)
 
def tests.gates.test_circuit._build_rx_rz_cnot_circuit (qbit_num)
 
def tests.gates.test_circuit._identity (n, dtype=np.complex128)
 
def tests.gates.test_circuit._params32 (n)
 
def tests.gates.test_circuit._params64 (n)
 
def tests.gates.test_circuit._random_state (n, dtype=np.complex128, seed=42)
 
def tests.gates.test_circuit._random_unitary (dim, seed=123)
 
def tests.gates.test_circuit._ref_matrix64 (circuit)
 

Variables

 tests.gates.test_circuit.QBIT_NUMS_ALL
 
 tests.gates.test_circuit.QBIT_NUMS_MEDIUM
 
 tests.gates.test_circuit.QBIT_NUMS_SMALL
 
 tests.gates.test_circuit.RECT_COLS_MAX