aws / amazon-braket-pennylane-plugin-python
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 85 units with 408 lines of code in units (25.0% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (60 lines of code)
    • 6 small units (82 lines of code)
    • 77 very small units (266 lines of code)
0% | 0% | 14% | 20% | 65%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 14% | 20% | 65%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/braket/pennylane_plugin0% | 0% | 9% | 22% | 68%
doc0% | 0% | 92% | 0% | 7%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def batch_execute()
in src/braket/pennylane_plugin/braket_device.py
36 9 3
def run()
in doc/directives.py
24 6 1
def _tracking_data()
in src/braket/pennylane_plugin/braket_device.py
16 3 1
def _pl_to_braket_circuit()
in src/braket/pennylane_plugin/braket_device.py
15 4 3
def __init__()
in src/braket/pennylane_plugin/braket_device.py
15 1 0
def _matrix()
in src/braket/pennylane_plugin/ops.py
13 1 2
def decomposition()
in src/braket/pennylane_plugin/ops.py
12 1 2
def supported_operations()
in src/braket/pennylane_plugin/translation.py
11 5 1
def execute()
in src/braket/pennylane_plugin/braket_device.py
10 2 3
def decomposition()
in src/braket/pennylane_plugin/ops.py
10 1 2
def decomposition()
in src/braket/pennylane_plugin/ops.py
10 1 2
def _run_task()
in src/braket/pennylane_plugin/braket_device.py
9 2 2
def decomposition()
in src/braket/pennylane_plugin/ops.py
9 1 2
def __init__()
in src/braket/pennylane_plugin/braket_device.py
7 1 0
def _check_supported_result_types()
in src/braket/pennylane_plugin/braket_device.py
7 2 1
def __init__()
in src/braket/pennylane_plugin/braket_device.py
7 1 0
def decomposition()
in src/braket/pennylane_plugin/ops.py
7 1 2
def _braket_to_pl_result()
in src/braket/pennylane_plugin/braket_device.py
6 4 3
def observables()
in src/braket/pennylane_plugin/braket_device.py
5 2 1
def _matrix()
in src/braket/pennylane_plugin/ops.py
5 1 2