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

Functions

def _build_descriptor_partition
 
def _descriptor_error
 
def _descriptor_operation_mismatch_category
 
def _partition_surface_operations
 Partition the operations of a canonical planner surface into partitions. More...
 
def _validate_descriptor_request
 
def build_descriptor_audit_record
 
def build_partition_descriptor_set
 
def build_phase3_continuity_partition_descriptor_set
 
def descriptor_member_to_dict
 
def descriptor_partition_to_dict
 
def preflight_descriptor_request
 
def validate_partition_descriptor_set
 
def validate_partition_descriptor_set_against_surface
 

Function Documentation

◆ _build_descriptor_partition()

def noisy_descriptor._build_descriptor_partition (   operations)
private

Definition at line 145 of file noisy_descriptor.py.

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

◆ _descriptor_error()

def noisy_descriptor._descriptor_error (   descriptor_set)
private

Definition at line 263 of file noisy_descriptor.py.

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

◆ _descriptor_operation_mismatch_category()

def noisy_descriptor._descriptor_operation_mismatch_category (   expected)
private

Definition at line 485 of file noisy_descriptor.py.

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

◆ _partition_surface_operations()

def noisy_descriptor._partition_surface_operations (   surface)
private

Partition the operations of a canonical planner surface into partitions.

The partition is done by the following algorithm (greedy algorithm):

  1. Start with an empty partition.
  2. Add the first operation to the partition.
  3. For each subsequent operation, add it to the partition if it can be added without exceeding the maximum number of qubits allowed in a partition.
  4. If the next operation cannot be added to the partition without exceeding the maximum number of qubits allowed in a partition, start a new partition.
  5. Repeat steps 2-4 until all operations have been added to a partition.
    Parameters
    surfaceA canonical planner surface.
    max_partition_qubitsThe maximum number of qubits allowed in a partition.
    Returns
    A tuple of tuples of operations, where each tuple is a partition.

Definition at line 122 of file noisy_descriptor.py.

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

◆ _validate_descriptor_request()

def noisy_descriptor._validate_descriptor_request (   surface)
private

Definition at line 81 of file noisy_descriptor.py.

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

◆ build_descriptor_audit_record()

def noisy_descriptor.build_descriptor_audit_record (   descriptor_set)

Definition at line 613 of file noisy_descriptor.py.

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

◆ build_partition_descriptor_set()

def noisy_descriptor.build_partition_descriptor_set (   surface)

Definition at line 188 of file noisy_descriptor.py.

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

◆ build_phase3_continuity_partition_descriptor_set()

def noisy_descriptor.build_phase3_continuity_partition_descriptor_set (   vqe,
  workload_id 
)

Definition at line 219 of file noisy_descriptor.py.

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

◆ descriptor_member_to_dict()

def noisy_descriptor.descriptor_member_to_dict (   descriptor_set)

Definition at line 23 of file noisy_descriptor.py.

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

◆ descriptor_partition_to_dict()

def noisy_descriptor.descriptor_partition_to_dict (   descriptor_set)

Definition at line 48 of file noisy_descriptor.py.

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

◆ preflight_descriptor_request()

def noisy_descriptor.preflight_descriptor_request (   source_type)

Definition at line 235 of file noisy_descriptor.py.

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

◆ validate_partition_descriptor_set()

def noisy_descriptor.validate_partition_descriptor_set (   descriptor_set)

Definition at line 282 of file noisy_descriptor.py.

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

◆ validate_partition_descriptor_set_against_surface()

def noisy_descriptor.validate_partition_descriptor_set_against_surface (   surface)

Definition at line 520 of file noisy_descriptor.py.

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