Sequential Quantum Gate Decomposer  v1.9.6
Powerful decomposition of general unitarias into one- and two-qubit gates gates
Functions
tests.partitioning.test_partition Namespace Reference

Functions

def test_CorrectnessOfPartitionedCircuit ()
 
def test_PartitionEmptyCircuit (max_qubits)
 
def test_PartitionMaxQubitConstraint (max_qubits)
 
def test_PartitionMaxQubitsEqualsTotalQubits (max_qubits)
 
def test_PartitionSingleGate (max_qubits)
 
def test_PartitionTotalGates (max_qubits)
 

Function Documentation

◆ test_CorrectnessOfPartitionedCircuit()

def tests.partitioning.test_partition.test_CorrectnessOfPartitionedCircuit ( )
Test correctness of partitioned circuit by comparing output states

Definition at line 84 of file test_partition.py.

Here is the call graph for this function:

◆ test_PartitionEmptyCircuit()

def tests.partitioning.test_partition.test_PartitionEmptyCircuit (   max_qubits)
Test partitioning an empty circuit

Definition at line 17 of file test_partition.py.

Here is the call graph for this function:

◆ test_PartitionMaxQubitConstraint()

def tests.partitioning.test_partition.test_PartitionMaxQubitConstraint (   max_qubits)
Test that each partition respects max qubit constraint

Definition at line 54 of file test_partition.py.

Here is the call graph for this function:

◆ test_PartitionMaxQubitsEqualsTotalQubits()

def tests.partitioning.test_partition.test_PartitionMaxQubitsEqualsTotalQubits (   max_qubits)
Test partitioning when max qubits equals total qubits

Definition at line 69 of file test_partition.py.

Here is the call graph for this function:

◆ test_PartitionSingleGate()

def tests.partitioning.test_partition.test_PartitionSingleGate (   max_qubits)
Test partitioning a circuit with a single gate

Definition at line 28 of file test_partition.py.

Here is the call graph for this function:

◆ test_PartitionTotalGates()

def tests.partitioning.test_partition.test_PartitionTotalGates (   max_qubits)
Test total gates after partitioning matches original

Definition at line 40 of file test_partition.py.

Here is the call graph for this function: