QPanda3  0.1.0
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.profiling.QCircuitFeatures Namespace Reference

Functions

float compute_connectivity (pq.QCircuit circuit)
 
float compute_liveness (pq.QCircuit circuit)
 
float compute_parallelism (pq.QCircuit circuit)
 
float compute_measurement (pq.QCircuit circuit)
 
float compute_entanglement (pq.QCircuit circuit)
 
float compute_depth (pq.QCircuit circuit)
 
 radar_factory (num_vars, frame="circle")
 (https://matplotlib.org/stable/gallery/specialty_plots/radar_chart.html)
 
 plot_benchmark (data, show=True, savefn=None, spoke_labels=None, legend_loc=(0.75, 0.85))
 Create a radar plot of the given benchmarks.
 

Variables

 transAxes
 

Function Documentation

◆ compute_connectivity()

float pyqpanda3.profiling.QCircuitFeatures.compute_connectivity ( pq.QCircuit circuit)

◆ compute_depth()

float pyqpanda3.profiling.QCircuitFeatures.compute_depth ( pq.QCircuit circuit)

◆ compute_entanglement()

float pyqpanda3.profiling.QCircuitFeatures.compute_entanglement ( pq.QCircuit circuit)

◆ compute_liveness()

float pyqpanda3.profiling.QCircuitFeatures.compute_liveness ( pq.QCircuit circuit)

◆ compute_measurement()

float pyqpanda3.profiling.QCircuitFeatures.compute_measurement ( pq.QCircuit circuit)

◆ compute_parallelism()

float pyqpanda3.profiling.QCircuitFeatures.compute_parallelism ( pq.QCircuit circuit)

◆ plot_benchmark()

pyqpanda3.profiling.QCircuitFeatures.plot_benchmark ( data,
show = True,
savefn = None,
spoke_labels = None,
legend_loc = (0.75, 0.85) )

Create a radar plot of the given benchmarks.

Input

data : List Contains the title, feature data, and labels in the format: [title, [labels], [feature vecs: [con, liv, par, mea, ent] ]]

◆ radar_factory()

pyqpanda3.profiling.QCircuitFeatures.radar_factory ( num_vars,
frame = "circle" )

(https://matplotlib.org/stable/gallery/specialty_plots/radar_chart.html)

Create a radar chart with num_vars axes.

This function creates a RadarAxes projection and registers it.

Parameters

num_vars : int Number of variables for radar chart. frame : {'circle', 'polygon'} Shape of frame surrounding axes.

Variable Documentation

◆ transAxes

pyqpanda3.profiling.QCircuitFeatures.transAxes