tensorflow / quantum
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 103 files with 11,315 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,539 lines of code)
    • 19 medium size files (5,442 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,642 lines of code)
    • 63 very small files (1,692 lines of code)
0% | 13% | 48% | 23% | 14%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cc0% | 14% | 66% | 16% | 2%
py0% | 15% | 25% | 32% | 27%
h0% | 0% | 64% | 0% | 35%
proto0% | 0% | 0% | 80% | 19%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
tensorflow_quantum/core/src0% | 43% | 49% | 0% | 7%
tensorflow_quantum/core/serialize0% | 62% | 0% | 37% | <1%
tensorflow_quantum/core/ops0% | 0% | 71% | 20% | 7%
tensorflow_quantum/python0% | 0% | 91% | 0% | 8%
tensorflow_quantum/datasets0% | 0% | 91% | 0% | 8%
tensorflow_quantum/python/layers0% | 0% | 0% | 42% | 57%
tensorflow_quantum/python/differentiators0% | 0% | 0% | 73% | 26%
tensorflow_quantum/python/optimizers0% | 0% | 0% | 98% | 1%
tensorflow_quantum/core/proto0% | 0% | 0% | 80% | 19%
benchmarks/scripts0% | 0% | 0% | 35% | 64%
scripts0% | 0% | 0% | 0% | 100%
release0% | 0% | 0% | 0% | 100%
benchmarks/scripts/models0% | 0% | 0% | 0% | 100%
tensorflow_quantum0% | 0% | 0% | 0% | 100%
tensorflow_quantum/core0% | 0% | 0% | 0% | 100%
benchmarks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
circuit_parser_qsim.cc
in tensorflow_quantum/core/src
813 37
serializer.py
in tensorflow_quantum/core/serialize
726 41
util.py
in tensorflow_quantum/python
438 21
util_qsim.h
in tensorflow_quantum/core/src
362 12
tfq_inner_product_grad.cc
in tensorflow_quantum/core/ops/math_ops
359 4
tfq_noisy_sampled_expectation.cc
in tensorflow_quantum/core/ops/noise
331 4
parse_context.cc
in tensorflow_quantum/core/ops
329 11
tfq_noisy_expectation.cc
in tensorflow_quantum/core/ops/noise
325 4
program_resolution.cc
in tensorflow_quantum/core/src
312 6
spin_system.py
in tensorflow_quantum/datasets
295 5
tfq_adj_grad_op.cc
in tensorflow_quantum/core/ops
289 4
tfq_ps_decompose_op.cc
in tensorflow_quantum/core/ops
267 6
tfq_noisy_samples.cc
in tensorflow_quantum/core/ops/noise
263 4
cirq_ops.py
in tensorflow_quantum/core/ops
263 8
adj_util.cc
in tensorflow_quantum/core/src
256 9
tfq_simulate_sampled_expectation_op.cc
in tensorflow_quantum/core/ops
255 4
tfq_inner_product.cc
in tensorflow_quantum/core/ops/math_ops
237 4
batch_util.py
in tensorflow_quantum/core/ops
223 12
tfq_simulate_1d_sampled_expectation.cc
in tensorflow_quantum/core/ops/math_ops
221 3
tfq_simulate_samples_op.cc
in tensorflow_quantum/core/ops
213 4
tfq_simulate_expectation_op.cc
in tensorflow_quantum/core/ops
204 4
tfq_simulate_1d_samples.cc
in tensorflow_quantum/core/ops/math_ops
179 3
tfq_simulate_1d_expectation.cc
in tensorflow_quantum/core/ops/math_ops
179 3
tfq_simulate_state_op.cc
in tensorflow_quantum/core/ops
176 4
differentiator.py
in tensorflow_quantum/python/differentiators
166 8
tfq_ps_symbol_replace_op.cc
in tensorflow_quantum/core/ops
154 2
serializable_gate_set.py
in tensorflow_quantum/core/serialize
150 14
op_serializer.py
in tensorflow_quantum/core/serialize
150 8
proto
program.proto
in tensorflow_quantum/core/proto
146 -
tfq_ps_weights_from_symbols_op.cc
in tensorflow_quantum/core/ops
140 2
op_deserializer.py
in tensorflow_quantum/core/serialize
136 6
benchmark_op_gradients.py
in benchmarks/scripts
136 7
tfq_calculate_unitary_op.cc
in tensorflow_quantum/core/ops
131 2
linear_combination.py
in tensorflow_quantum/python/differentiators
126 4
pqc.py
in tensorflow_quantum/python/layers/high_level
125 5
spsa_minimizer.py
in tensorflow_quantum/python/optimizers
125 4
circuit_execution_ops.py
in tensorflow_quantum/core/ops
109 5
noisy_pqc.py
in tensorflow_quantum/python/layers/high_level
107 5
controlled_pqc.py
in tensorflow_quantum/python/layers/high_level
105 3
rotosolve_minimizer.py
in tensorflow_quantum/python/optimizers
102 4
benchmark_random_circuit.py
in benchmarks/scripts
97 6
expectation.py
in tensorflow_quantum/python/layers/circuit_executors
95 2
benchmark_clifford_circuit.py
in benchmarks/scripts
88 4
noisy_controlled_pqc.py
in tensorflow_quantum/python/layers/high_level
86 3
input_checks.py
in tensorflow_quantum/python/layers/circuit_executors
76 2
adj_util.h
in tensorflow_quantum/core/src
75 2
sampled_expectation.py
in tensorflow_quantum/python/layers/circuit_executors
75 2
tfq_resolve_parameters_op.cc
in tensorflow_quantum/core/ops
74 2
setup.py
in release
68 2
tfq_circuit_append_op.cc
in tensorflow_quantum/core/ops
65 2
Files With Most Units (Top 20)
File# lines# units
serializer.py
in tensorflow_quantum/core/serialize
726 41
circuit_parser_qsim.cc
in tensorflow_quantum/core/src
813 37
util.py
in tensorflow_quantum/python
438 21
serializable_gate_set.py
in tensorflow_quantum/core/serialize
150 14
batch_util.py
in tensorflow_quantum/core/ops
223 12
util_qsim.h
in tensorflow_quantum/core/src
362 12
quantum_context.py
in tensorflow_quantum/python
37 12
parse_context.cc
in tensorflow_quantum/core/ops
329 11
adj_util.cc
in tensorflow_quantum/core/src
256 9
cirq_ops.py
in tensorflow_quantum/core/ops
263 8
op_serializer.py
in tensorflow_quantum/core/serialize
150 8
differentiator.py
in tensorflow_quantum/python/differentiators
166 8
benchmark_op_gradients.py
in benchmarks/scripts
136 7
tfq_ps_decompose_op.cc
in tensorflow_quantum/core/ops
267 6
op_deserializer.py
in tensorflow_quantum/core/serialize
136 6
program_resolution.cc
in tensorflow_quantum/core/src
312 6
benchmark_random_circuit.py
in benchmarks/scripts
97 6
spin_system.py
in tensorflow_quantum/datasets
295 5
circuit_execution_ops.py
in tensorflow_quantum/core/ops
109 5
noisy_pqc.py
in tensorflow_quantum/python/layers/high_level
107 5
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines