Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
This report summarizes scanner evidence for Qiskit/qiskit, a Python project with 7,883 GitHub stars. SynthScan examined 586,219 lines of code across 3842 source files, recording 10529 pattern matches distributed across 24 syntactic categories. The legacy adjusted pattern signal is 26.1 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 7477 finding(s).
Are imports declared and package/API names verified? 1306 finding(s).
Are wrappers, guards, and repeated structures necessary? 5517 finding(s).
Which changes need focused human review? 10529 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 10529 distinct pattern matches across 24 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | qiskit/visualization/circuit/circuit_visualization.py | 697 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM⚡ | qiskit/visualization/circuit/circuit_visualization.py | 699 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | qiskit/visualization/circuit/circuit_visualization.py | 397 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | qiskit/visualization/circuit/circuit_visualization.py | 399 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | qiskit/visualization/circuit/circuit_visualization.py | 494 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | qiskit/visualization/circuit/circuit_visualization.py | 496 | # ----------------------------------------------------------------------------- | STRING |
| MEDIUM | qiskit/circuit/library/standard_gates/s.py | 76 | # ┌────────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/s.py | 78 | # └────────┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/s.py | 194 | # ┌─────────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/s.py | 196 | # └─────────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 323 | # q_0: ┤ T ├──■───────────■─────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 324 | # └───┘┌─┴─┐┌─────┐┌─┴─┐┌───┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 325 | # q_1: ─────┤ X ├┤ Tdg ├┤ X ├┤ T ├ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 326 | # └───┘└─────┘└───┘└───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 412 | # ┌─────┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 413 | # q_0: ┤ Tdg ├──■─────────■───────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 414 | # └─────┘┌─┴─┐┌───┐┌─┴─┐┌─────┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 415 | # q_1: ───────┤ X ├┤ T ├┤ X ├┤ Tdg ├ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/s.py | 416 | # └───┘└───┘└───┘└─────┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/rz.py | 81 | # ┌──────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/rz.py | 83 | # └──────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rz.py | 258 | # q_0: ─────────────■────────────────■── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rz.py | 259 | # ┌─────────┐┌─┴─┐┌──────────┐┌─┴─┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rz.py | 261 | # └─────────┘└───┘└──────────┘└───┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/u1.py | 107 | # ┌──────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/u1.py | 109 | # └──────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/u1.py | 252 | # ┌────────┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/u1.py | 253 | # q_0: ┤ P(θ/2) ├──■───────────────■──────────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/u1.py | 254 | # └────────┘┌─┴─┐┌─────────┐┌─┴─┐┌────────┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/u1.py | 255 | # q_1: ──────────┤ X ├┤ P(-θ/2) ├┤ X ├┤ P(θ/2) ├ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/u1.py | 256 | # └───┘└─────────┘└───┘└────────┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/r.py | 73 | # ┌───────────────────────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/r.py | 75 | # └───────────────────────┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/swap.py | 251 | # q_0: ───────■─────── | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/y.py | 88 | # ┌──────────────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/y.py | 90 | # └──────────────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/y.py | 238 | # q_0: ─────────■─────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/y.py | 239 | # ┌─────┐┌─┴─┐┌───┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/y.py | 241 | # └─────┘└───┘└───┘ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/x.py | 91 | # ┌──────────┐ | COMMENT |
| MEDIUM | qiskit/circuit/library/standard_gates/x.py | 93 | # └──────────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 385 | # q_0: ───────────────────■─────────────────────■────■───┤ T ├───■── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 387 | # q_1: ───────■───────────┼─────────■───┤ T ├───┼──┤ X ├┤ Tdg ├┤ X ├ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 388 | # ┌───┐┌─┴─┐┌─────┐┌─┴─┐┌───┐┌─┴─┐┌┴───┴┐┌─┴─┐├───┤└┬───┬┘└───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 389 | # q_2: ┤ H ├┤ X ├┤ Tdg ├┤ X ├┤ T ├┤ X ├┤ Tdg ├┤ X ├┤ T ├─┤ H ├────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 390 | # └───┘└───┘└─────┘└───┘└───┘└───┘└─────┘└───┘└───┘ └───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 487 | # q_0: ────────────────────────■──────────────────────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 489 | # q_1: ────────────■───────────┼─────────■────────────── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 490 | # ┌───┐┌───┐┌─┴─┐┌─────┐┌─┴─┐┌───┐┌─┴─┐┌─────┐┌───┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/x.py | 492 | # └───┘└───┘└───┘└─────┘└───┘└───┘└───┘└─────┘└───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rzz.py | 105 | # q_0: ──■─────────────■── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rzz.py | 106 | # ┌─┴─┐┌───────┐┌─┴─┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/rzz.py | 108 | # └───┘└───────┘└───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/xx_minus_yy.py | 80 | # ┌─────┐ ┌────┐┌───┐ ┌─────────┐ ┌─────┐ ┌──────┐┌───┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/xx_minus_yy.py | 82 | # ┌┴─────┴─┐├───┬┘└───┘┌─┴─┐├─────────┴┐┌─┴─┐├─────┤┌┴──────┤└───┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/xx_minus_yy.py | 83 | # q_1: ┤ Rz(-β) ├┤ S ├──────┤ X ├┤ Ry(-θ/2) ├┤ X ├┤ Sdg ├┤ Rz(β) ├───── | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/xx_minus_yy.py | 84 | # └────────┘└───┘ └───┘└──────────┘└───┘└─────┘└───────┘ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/ryy.py | 93 | # ┌──────┐ ┌────┐ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/ryy.py | 94 | # q_0: ┤ √Xdg ├──■─────────────■──┤ √X ├ | COMMENT |
| MEDIUM⚡ | qiskit/circuit/library/standard_gates/ryy.py | 95 | # ├──────┤┌─┴─┐┌───────┐┌─┴─┐├────┤ | COMMENT |
| 1338 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/visualization/counts_visualization.py | 48 | def _is_deprecated_data_format(data) -> bool: | CODE |
| LOW | qiskit/visualization/pass_manager_visualization.py | 116 | def staged_pass_manager_drawer(pass_manager, filename=None, style=None, raw=False): | CODE |
| LOW | qiskit/visualization/library.py | 21 | def _generate_circuit_library_visualization(circuit: QuantumCircuit): | CODE |
| LOW | qiskit/visualization/bloch.py | 771 | def _hide_tick_lines_and_labels(axis): | CODE |
| LOW | qiskit/visualization/transition_visualization.py | 81 | def _multiply_with_quaternion(self, q_2): | CODE |
| LOW | qiskit/visualization/utils.py | 39 | def matplotlib_close_if_inline(figure): | CODE |
| LOW⚡ | qiskit/visualization/circuit/circuit_visualization.py | 702 | def _matplotlib_circuit_drawer( | STRING |
| LOW | qiskit/visualization/circuit/_utils.py | 413 | def _get_layered_instructions( | CODE |
| LOW | qiskit/transpiler/layout.py | 887 | def relabel_virtual_to_physical(virtual_index: int): | STRING |
| LOW | qiskit/transpiler/layout.py | 890 | def relabel_physical_to_virtual(physical_index: int): | STRING |
| LOW | qiskit/transpiler/coupling.py | 413 | def largest_connected_component(self): | CODE |
| LOW | qiskit/transpiler/passmanager.py | 352 | def _generate_expanded_stages(self) -> Iterator[str]: | CODE |
| LOW | qiskit/transpiler/target.py | 323 | def get_non_global_operation_names(self, strict_direction=False): | CODE |
| LOW | qiskit/transpiler/target.py | 465 | def update_instruction_properties(self, instruction, qargs, properties): | CODE |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 408 | def _collect_adjacent_delay_blocks( | CODE |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 819 | def _get_transformation_matrix(n): | CODE |
| LOW | qiskit/transpiler/passes/layout/sabre_layout.py | 338 | def _layout_and_route_passmanager(self, initial_layout): | CODE |
| LOW | qiskit/transpiler/passes/layout/disjoint_utils.py | 23 | def require_layout_isolated_to_component(dag: DAGCircuit, components_source: Target | CouplingMap): | CODE |
| LOW | …spiler/passes/optimization/collect_linear_functions.py | 82 | def _collapse_to_linear_function(circuit): | CODE |
| LOW | …it/transpiler/passes/optimization/optimize_1q_gates.py | 365 | def _split_runs_on_parameters(runs): | CODE |
| LOW | …transpiler/passes/optimization/collect_and_collapse.py | 91 | def collect_using_filter_function( | CODE |
| LOW | qiskit/transpiler/passes/optimization/hoare_opt.py | 241 | def _remove_successive_identity(self, dag, qubit, from_idx=None): | CODE |
| LOW | …t/transpiler/passes/optimization/optimize_annotated.py | 399 | def _recursively_process_definitions(self, op: Operation) -> bool: | CODE |
| LOW | …es/optimization/template_matching/template_matching.py | 143 | def _list_qubit_clbit_circuit(self, list_first_match, permutation): | CODE |
| LOW | …asses/optimization/template_matching/backward_match.py | 172 | def _find_backward_candidates(self, template_blocked, matches): | CODE |
| LOW | …asses/optimization/template_matching/backward_match.py | 319 | def _init_matched_blocked_list(self): | CODE |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 85 | def _init_successors_to_visit(self): | CODE |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 93 | def _init_matched_with_circuit(self): | CODE |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 101 | def _init_matched_with_template(self): | CODE |
| LOW | …passes/optimization/template_matching/forward_match.py | 114 | def _init_is_blocked_template(self): | CODE |
| LOW | …kit/transpiler/passes/utils/merge_adjacent_barriers.py | 83 | def _collect_potential_merges(dag, barriers): | CODE |
| LOW | qiskit/transpiler/passes/utils/unroll_forloops.py | 72 | def _body_contains_continue_or_break(circuit): | CODE |
| LOW | …iler/passes/synthesis/clifford_unitary_synth_plugin.py | 72 | def supports_natural_direction(self): | CODE |
| LOW | …it/transpiler/passes/synthesis/ross_selinger_plugin.py | 68 | def supports_natural_direction(self): | CODE |
| LOW | …ranspiler/passes/synthesis/solovay_kitaev_synthesis.py | 280 | def supports_natural_direction(self): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/hls_plugins.py | 642 | def _is_coupling_map_all_to_all(coupling_map: CouplingMap) -> bool: | STRING |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 94 | def supports_natural_direction(self): | STRING |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 110 | def supports_gate_lengths_by_qubit(self): | STRING |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 114 | def supports_gate_errors_by_qubit(self): | STRING |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 459 | def supports_natural_direction(self): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 478 | def supports_gate_lengths_by_qubit(self): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 504 | def supports_gate_errors_by_qubit(self): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 649 | def unitary_synthesis_plugin_names(): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/plugin.py | 723 | def high_level_synthesis_plugin_names(op_name: str) -> list[str]: | CODE |
| LOW | …it/transpiler/passes/synthesis/high_level_synthesis.py | 307 | def _synthesize_op_using_plugins( | CODE |
| LOW | qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 407 | def _build_gate_lengths_by_qubit(target=None): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 429 | def _build_gate_errors_by_qubit(target=None): | CODE |
| LOW | qiskit/transpiler/passes/synthesis/aqc_plugin.py | 75 | def supports_natural_direction(self): | CODE |
| LOW | …piler/passes/synthesis/default_unitary_synth_plugin.py | 77 | def supports_natural_direction(self): | CODE |
| LOW | …piler/passes/synthesis/default_unitary_synth_plugin.py | 93 | def supports_gate_lengths_by_qubit(self): | CODE |
| LOW | …piler/passes/synthesis/default_unitary_synth_plugin.py | 97 | def supports_gate_errors_by_qubit(self): | CODE |
| LOW | qiskit/transpiler/passes/routing/star_prerouting.py | 207 | def collect_all_matching_blocks( | CODE |
| LOW | qiskit/transpiler/passes/routing/star_prerouting.py | 288 | def determine_star_blocks_processing( | CODE |
| LOW | qiskit/transpiler/passes/routing/lookahead_swap.py | 370 | def _transform_gate_for_system(gate, state): | CODE |
| LOW | …/commuting_2q_gate_routing/commuting_2q_gate_router.py | 269 | def _edge_coloring_build_sub_layers( | STRING |
| LOW | …ses/routing/commuting_2q_gate_routing/swap_strategy.py | 288 | def inverse_composed_permutation(self, idx: int) -> list[int]: | CODE |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 482 | def _optimization_check_fixed_point(): | CODE |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 490 | def _optimization_check_fixed_point_clifford_t(): | CODE |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 508 | def _optimization_check_fixed_point_clifford_rz(): | CODE |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 523 | def _optimization_check_minimum_point(prefix: str): | CODE |
| 3638 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | constraints.txt | 1 | # There are minor differences in output between pydot 2, 3 and 4 for | COMMENT |
| LOW | setup.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/version.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/mir.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/user_config.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/exceptions.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/counts_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/pass_manager_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/state_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/library.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/bloch.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/bloch.py | 21 | # met: | COMMENT |
| LOW | qiskit/visualization/bloch.py | 221 | # Width of wireframe, default = 1 | COMMENT |
| LOW | qiskit/visualization/style.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/transition_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/gate_map.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/dag_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/utils.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/exceptions.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/array.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/text.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/qcstyle.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/latex.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/_utils.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/circuit/styles/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/dag/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/dag/dagstyle.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/dag/styles/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/drawings.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/interface.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/core.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/types.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/generators.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/stylesheet.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/layouts.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/plotters/base_plotter.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/plotters/matplotlib.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/visualization/timeline/plotters/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/timing_constraints.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/layout.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/layout.py | 841 | # | COMMENT |
| LOW | qiskit/transpiler/layout.py | 861 | # want the permutation that adds back in what `ElidePermutations` might have removed, or | COMMENT |
| LOW | qiskit/transpiler/coupling.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/optimization_metric.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/basepasses.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/passmanager.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/passmanager_config.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/exceptions.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/target.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/instruction_durations.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/passes/__init__.py | 1 | # This code is part of Qiskit. | COMMENT |
| LOW | qiskit/transpiler/passes/analysis/dag_longest_path.py | 1 | # This code is part of Qiskit. | COMMENT |
| 2677 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | qiskit/visualization/counts_visualization.py | 29 | Calculate the Hamming distance between two bit strings Args: str1 (str): First string. str2 (str): | STRING |
| HIGH | qiskit/visualization/counts_visualization.py | 72 | Plot a histogram of input counts data. Args: data (list or dict): This is either a list of dictionaries or | STRING |
| HIGH | qiskit/visualization/counts_visualization.py | 179 | Plot a distribution from input sampled data. Args: data (list or dict): This is either a list of dictionari | STRING |
| HIGH | qiskit/visualization/pass_manager_visualization.py | 35 | Draws the pass manager. This function needs `pydot <https://github.com/pydot/pydot>`__, which in turn needs | STRING |
| HIGH | qiskit/visualization/pass_manager_visualization.py | 117 | Draws the staged pass manager. This function needs `pydot <https://github.com/erocarrera/pydot>`__, which | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 39 | Plot a hinton diagram for the density matrix of a quantum state. The hinton diagram represents the values of a matr | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 192 | Plot the Bloch sphere. Plot a Bloch sphere with the specified coordinates, that can be given in both cartesian | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 271 | Plot a Bloch sphere for each qubit. Each component :math:`(x,y,z)` of the Bloch sphere labeled as 'qubit i' represe | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 389 | Plot the cityscape of quantum state. Plot two 3d bar graphs (two dimensional) of the real and imaginary part of | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 634 | Plot the Pauli-vector representation of a quantum state as bar graph. The Pauli-vector of a density matrix :math:`\ | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 771 | Return the lex index of a combination.. Args: n (int): the total number of options . k (int): The | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 824 | Plot the qsphere representation of a quantum state. Here, the size of the points is proportional to the probability | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 1110 | Generates shaded facecolors for shaded bars. This is here to work around a Matplotlib bug where alpha does not | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 1436 | Returns a visualization of the state. **repr**: ASCII TextMatrix of the state's ``_repr_``. **text**: ASCII Te | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 1519 | Return list of Bloch vectors for each qubit Args: state (DensityMatrix or Statevector): an N-qubit state. | STRING |
| HIGH | qiskit/visualization/state_visualization.py | 1549 | Return paulivec data for plotting. Args: state (DensityMatrix or Statevector): an N-qubit state. Retur | STRING |
| HIGH | qiskit/visualization/transition_visualization.py | 130 | Creates animation showing transitions between states of a single qubit by applying quantum gates. Args: | STRING |
| HIGH | qiskit/visualization/gate_map.py | 44 | Plots the gate map of a device. Args: backend (Backend): The backend instance that will be used to plot the | STRING |
| HIGH | qiskit/visualization/gate_map.py | 958 | Plots an arbitrary coupling map of qubits (embedded in a plane). .. warning:: This function will call the s | STRING |
| HIGH | qiskit/visualization/gate_map.py | 1133 | Plot the layout of a circuit transpiled for a given target backend. Args: circuit (QuantumCircuit): Inp | STRING |
| HIGH | qiskit/visualization/gate_map.py | 1237 | Plots the error map of a given backend. Args: backend (Backend): Given backend. figsize (tuple): Fi | STRING |
| HIGH | qiskit/visualization/dag_visualization.py | 84 | Plot the directed acyclic graph (dag) to represent operation dependencies in a quantum circuit. This function c | STRING |
| HIGH | qiskit/visualization/array.py | 70 | Latex representation of a complex numpy array (with maximum dimension 2) Args: matrix (ndarray): The matrix | STRING |
| HIGH | qiskit/visualization/array.py | 150 | Latex representation of a complex numpy array (with dimension 1 or 2) Args: array (ndarray): The array to b | STRING |
| HIGH | qiskit/visualization/circuit/circuit_visualization.py | 80 | Draw the quantum circuit. Use the output parameter to choose the drawing format: ``text`` ASCII art TextDra | STRING |
| HIGH | qiskit/visualization/circuit/circuit_visualization.py | 420 | Draws a circuit using ascii art. Args: circuit (QuantumCircuit): Input circuit filename (str): Opti | STRING |
| HIGH | qiskit/visualization/circuit/circuit_visualization.py | 517 | Draw a quantum circuit based on latex (Qcircuit package) Requires version >=2.6.0 of the qcircuit LaTeX package. | STRING |
| HIGH | qiskit/visualization/circuit/_utils.py | 422 | Given a circuit, return a tuple (qubits, clbits, nodes) where qubits and clbits are the quantum and classical r | STRING |
| HIGH | qiskit/visualization/timeline/interface.py | 52 | Generate visualization data for scheduled circuit programs. .. deprecated:: 1.3 The ``target`` parameter nee | STRING |
| HIGH | qiskit/transpiler/timing_constraints.py | 28 | Initialize a TimingConstraints object Args: granularity: An integer value representing minimum puls | STRING |
| HIGH | qiskit/transpiler/layout.py | 240 | Combines self and another_layout into an "edge map". For example:: self another_layout re | STRING |
| HIGH | qiskit/transpiler/layout.py | 310 | Converts a list of integers to a Layout mapping virtual qubits (index of the list) to physical qubits (t | STRING |
| HIGH | qiskit/transpiler/layout.py | 348 | Populates a Layout from a list containing virtual qubits, Qubit or None. Args: qub | STRING |
| HIGH | qiskit/transpiler/coupling.py | 191 | Returns the undirected distance between physical_qubit1 and physical_qubit2. Args: physical_qubit1 | STRING |
| HIGH | qiskit/transpiler/coupling.py | 214 | Returns the shortest undirected path between physical_qubit1 and physical_qubit2. Args: physical_qu | STRING |
| HIGH | qiskit/transpiler/coupling.py | 262 | Returns a reduced coupling map that corresponds to the subgraph of qubits selected in the mapping. | STRING |
| HIGH | qiskit/transpiler/passmanager.py | 204 | Draw the pass manager. This function needs `pydot <https://github.com/erocarrera/pydot>`__, which in turn needs | STRING |
| HIGH | qiskit/transpiler/passmanager_config.py | 117 | Construct a configuration based on a backend and user input. This method automatically generates a PassManagerC | STRING |
| HIGH | qiskit/transpiler/target.py | 616 | Get a :class:`~qiskit.transpiler.CouplingMap` from this target. If there is a mix of two qubit operations that | STRING |
| HIGH | qiskit/transpiler/target.py | 795 | Create a target object from the individual global configuration Prior to the creation of the :class:`~.Target` | STRING |
| HIGH | qiskit/transpiler/instruction_durations.py | 68 | Construct an :class:`InstructionDurations` object from the backend. Args: backend: backend from whi | STRING |
| HIGH | qiskit/transpiler/instruction_durations.py | 86 | Update self with inst_durations (inst_durations overwrite self). Args: inst_durations: Instruction | STRING |
| HIGH | qiskit/transpiler/instruction_durations.py | 158 | Get the duration of the instruction with the name, qubits, and parameters. Some instructions may have a paramet | STRING |
| HIGH | …t/transpiler/passes/scheduling/time_unit_conversion.py | 60 | Run the TimeUnitAnalysis pass on `dag`. Args: dag (DAGCircuit): DAG to be checked. Returns | STRING |
| HIGH | qiskit/transpiler/passes/scheduling/scheduling/alap.py | 29 | Run the ALAPSchedule pass on `dag`. Args: dag (DAGCircuit): DAG to schedule. Returns: | STRING |
| HIGH | qiskit/transpiler/passes/scheduling/scheduling/asap.py | 28 | Run the ASAPSchedule pass on `dag`. Args: dag (DAGCircuit): DAG to schedule. Returns: | STRING |
| HIGH | …t/transpiler/passes/scheduling/padding/base_padding.py | 103 | Run the padding pass on ``dag``. Args: dag: DAG to be checked. Returns: DAGCir | STRING |
| HIGH | qiskit/transpiler/passes/layout/sabre_layout.py | 194 | Run the SabreLayout pass on `dag`. Args: dag (DAGCircuit): DAG to find layout for. Returns | STRING |
| HIGH | qiskit/transpiler/passes/layout/enlarge_with_ancilla.py | 30 | Run the EnlargeWithAncilla pass on `dag`. Args: dag (DAGCircuit): DAG to extend. Returns: | STRING |
| HIGH | …it/transpiler/passes/layout/full_ancilla_allocation.py | 51 | Run the FullAncillaAllocation pass on `dag`. Extend the layout with new (physical qubit, virtual qubit) pairs. | STRING |
| HIGH | qiskit/transpiler/passes/layout/apply_layout.py | 49 | Run the ApplyLayout pass on ``dag``. Args: dag (DAGCircuit): DAG to map. Returns: | STRING |
| HIGH | …it/transpiler/passes/optimization/optimize_1q_gates.py | 55 | Run the Optimize1qGates pass on `dag`. Args: dag (DAGCircuit): the DAG to be optimized. Re | STRING |
| HIGH | …nspiler/passes/optimization/litinski_transformation.py | 118 | Run the LitinskiTransformation pass on ``dag``. Args: dag: The input DAG. Returns: | STRING |
| HIGH | …ranspiler/passes/optimization/template_optimization.py | 90 | Args: dag(DAGCircuit): DAG circuit. Returns: DAGCircuit: optimized DAG circuit. | STRING |
| HIGH | …iler/passes/optimization/convert_to_pauli_rotations.py | 56 | Run the ConvertToPauliRotations optimization pass on ``dag``. Args: dag: the input DAG. Re | STRING |
| HIGH | …t/transpiler/passes/optimization/optimize_annotated.py | 98 | Run the OptimizeAnnotated pass on `dag`. Args: dag: input dag. Returns: Output | STRING |
| HIGH | qiskit/transpiler/passes/utils/gate_direction.py | 69 | Run the GateDirection pass on `dag`. Flips the cx nodes to match the directed coupling map. Modifies the | STRING |
| HIGH | …ranspiler/passes/synthesis/solovay_kitaev_synthesis.py | 188 | Run the ``SolovayKitaev`` pass on `dag`. Args: dag: The input dag. Returns: Ou | STRING |
| HIGH | …it/transpiler/passes/synthesis/high_level_synthesis.py | 274 | Run the HighLevelSynthesis pass on `dag`. Args: dag: input dag. Returns: Outpu | STRING |
| HIGH | …kit/transpiler/passes/routing/layout_transformation.py | 77 | Apply the specified partial permutation to the circuit. Args: dag (DAGCircuit): DAG to transform th | STRING |
| 309 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/__init__.py | 149 | CODE | |
| LOW | qiskit/__init__.py | 149 | CODE | |
| LOW | qiskit/__init__.py | 150 | CODE | |
| LOW | qiskit/__init__.py | 153 | CODE | |
| LOW | qiskit/__init__.py | 154 | CODE | |
| LOW | qiskit/__init__.py | 155 | CODE | |
| LOW | qiskit/__init__.py | 156 | CODE | |
| LOW | qiskit/__init__.py | 161 | CODE | |
| LOW | qiskit/__init__.py | 162 | CODE | |
| LOW | qiskit/__init__.py | 166 | CODE | |
| LOW | qiskit/__init__.py | 167 | CODE | |
| LOW | qiskit/__init__.py | 168 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/__init__.py | 170 | CODE | |
| LOW | qiskit/mir.py | 24 | CODE | |
| LOW | qiskit/visualization/circuit_visualization.py | 19 | CODE | |
| LOW | qiskit/visualization/pass_manager_visualization.py | 17 | CODE | |
| LOW | qiskit/visualization/__init__.py | 272 | CODE | |
| LOW | qiskit/visualization/__init__.py | 274 | CODE | |
| LOW | qiskit/visualization/__init__.py | 275 | CODE | |
| LOW | qiskit/visualization/__init__.py | 275 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 276 | CODE | |
| LOW | qiskit/visualization/__init__.py | 285 | CODE | |
| LOW | qiskit/visualization/__init__.py | 286 | CODE | |
| LOW | qiskit/visualization/__init__.py | 287 | CODE | |
| LOW | qiskit/visualization/__init__.py | 287 | CODE | |
| LOW | qiskit/visualization/__init__.py | 287 | CODE | |
| LOW | qiskit/visualization/__init__.py | 287 | CODE | |
| LOW | qiskit/visualization/__init__.py | 288 | CODE | |
| LOW | qiskit/visualization/__init__.py | 289 | CODE | |
| LOW | qiskit/visualization/__init__.py | 291 | CODE | |
| LOW | qiskit/visualization/__init__.py | 293 | CODE | |
| LOW | qiskit/visualization/__init__.py | 297 | CODE | |
| LOW | qiskit/visualization/__init__.py | 297 | CODE | |
| LOW | qiskit/visualization/__init__.py | 297 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 27 | CODE | |
| LOW | qiskit/visualization/circuit/__init__.py | 15 | CODE | |
| LOW | qiskit/visualization/circuit/qcstyle.py | 15 | CODE | |
| LOW | qiskit/visualization/dag/dagstyle.py | 15 | CODE | |
| LOW | qiskit/visualization/timeline/__init__.py | 18 | CODE | |
| LOW | qiskit/visualization/timeline/__init__.py | 21 | CODE | |
| LOW | qiskit/visualization/timeline/__init__.py | 21 | CODE | |
| LOW | qiskit/visualization/timeline/__init__.py | 21 | CODE | |
| LOW | qiskit/visualization/timeline/core.py | 51 | CODE | |
| LOW | qiskit/visualization/timeline/plotters/__init__.py | 16 | CODE | |
| 1222 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …er/passes/optimization/optimize_swap_before_measure.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …transpiler/passes/optimization/collect_and_collapse.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …t/transpiler/passes/optimization/remove_final_reset.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …s/optimization/remove_diagonal_gates_before_measure.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …iler/passes/optimization/remove_reset_in_zero_state.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …spiler/passes/optimization/commutative_cancellation.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …spiler/passes/optimization/commutative_optimization.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …piler/passes/optimization/optimize_1q_decomposition.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …t/transpiler/passes/optimization/optimize_cliffords.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …t/transpiler/passes/utils/remove_final_measurements.py | 0 | run the removefinalmeasurements pass on `dag`. args: dag (dagcircuit): the dag to be optimized. returns: dagcircuit: the | STRING |
| HIGH | …asses/optimization/commutative_inverse_cancellation.py | 0 | run the inversecancellation pass on `dag`. args: dag: the directed acyclic graph to run on. returns: dagcircuit: transfo | STRING |
| HIGH | …/transpiler/passes/optimization/optimize_clifford_t.py | 0 | run the inversecancellation pass on `dag`. args: dag: the directed acyclic graph to run on. returns: dagcircuit: transfo | STRING |
| HIGH | …transpiler/passes/optimization/inverse_cancellation.py | 0 | run the inversecancellation pass on `dag`. args: dag: the directed acyclic graph to run on. returns: dagcircuit: transfo | STRING |
| HIGH | …it/transpiler/passes/synthesis/ross_selinger_plugin.py | 0 | the plugin does not support natural direction, it assumes bidirectional two qubit gates. | STRING |
| HIGH | …ranspiler/passes/synthesis/solovay_kitaev_synthesis.py | 0 | the plugin does not support natural direction, it assumes bidirectional two qubit gates. | STRING |
| HIGH | qiskit/transpiler/passes/synthesis/aqc_plugin.py | 0 | the plugin does not support natural direction, it assumes bidirectional two qubit gates. | STRING |
| HIGH | …it/transpiler/passes/synthesis/ross_selinger_plugin.py | 0 | the plugin does not support optimization of pulses. | STRING |
| HIGH | …ranspiler/passes/synthesis/solovay_kitaev_synthesis.py | 0 | the plugin does not support optimization of pulses. | STRING |
| HIGH | qiskit/transpiler/passes/synthesis/aqc_plugin.py | 0 | the plugin does not support optimization of pulses. | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucrz.py | 0 | uniformly controlled pauli-x rotations. implements the :class:`.ucgate` for the special case that all unitaries are paul | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucry.py | 0 | uniformly controlled pauli-x rotations. implements the :class:`.ucgate` for the special case that all unitaries are paul | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucrx.py | 0 | uniformly controlled pauli-x rotations. implements the :class:`.ucgate` for the special case that all unitaries are paul | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucrz.py | 0 | args: angle_list: list of rotation angles :math:`[a_0, ..., a_{2^{k-1}}]`. | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucry.py | 0 | args: angle_list: list of rotation angles :math:`[a_0, ..., a_{2^{k-1}}]`. | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/ucrx.py | 0 | args: angle_list: list of rotation angles :math:`[a_0, ..., a_{2^{k-1}}]`. | STRING |
| HIGH | qiskit/circuit/library/generalized_gates/mcmt.py | 0 | return a controlled version of the mcphasegate gate. the controlled gate is implemented as :class:`.mcphasegate`, regard | STRING |
| HIGH | qiskit/circuit/library/standard_gates/u1.py | 0 | return a controlled version of the mcphasegate gate. the controlled gate is implemented as :class:`.mcphasegate`, regard | STRING |
| HIGH | qiskit/circuit/library/standard_gates/x.py | 0 | return a controlled version of the mcphasegate gate. the controlled gate is implemented as :class:`.mcphasegate`, regard | STRING |
| HIGH | qiskit/circuit/library/standard_gates/p.py | 0 | return a controlled version of the mcphasegate gate. the controlled gate is implemented as :class:`.mcphasegate`, regard | STRING |
| HIGH | qiskit/circuit/library/boolean_logic/quantum_xor.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/boolean_logic/quantum_and.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/boolean_logic/quantum_or.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/swap.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/y.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/x.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/z.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/ecr.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | qiskit/circuit/library/standard_gates/h.py | 0 | return inverted h gate (itself). args: annotated: when set to ``true``, this is typically used to return an :class:`.ann | STRING |
| HIGH | …skit/circuit/library/arithmetic/piecewise_chebyshev.py | 0 | set the number of state qubits. note that this changes the underlying quantum register, if the number of state qubits ch | STRING |
| HIGH | …rcuit/library/arithmetic/functional_pauli_rotations.py | 0 | set the number of state qubits. note that this changes the underlying quantum register, if the number of state qubits ch | STRING |
| HIGH | …t/circuit/library/arithmetic/linear_pauli_rotations.py | 0 | set the number of state qubits. note that this changes the underlying quantum register, if the number of state qubits ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/s.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/swap.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/y.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/z.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/sx.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/h.py | 0 | return a controlled version of the h gate. for a single control qubit, the controlled gate is implemented as :class:`.ch | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rz.py | 0 | return a controlled version of the u3 gate. for a single control qubit, the controlled gate is implemented as :class:`.c | STRING |
| HIGH | qiskit/circuit/library/standard_gates/u.py | 0 | return a controlled version of the u3 gate. for a single control qubit, the controlled gate is implemented as :class:`.c | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rx.py | 0 | return a controlled version of the u3 gate. for a single control qubit, the controlled gate is implemented as :class:`.c | STRING |
| HIGH | qiskit/circuit/library/standard_gates/ry.py | 0 | return a controlled version of the u3 gate. for a single control qubit, the controlled gate is implemented as :class:`.c | STRING |
| HIGH | qiskit/circuit/library/standard_gates/u3.py | 0 | return a controlled version of the u3 gate. for a single control qubit, the controlled gate is implemented as :class:`.c | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rz.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rzz.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/ryy.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rzx.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rxx.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rx.py | 0 | return inverse crx gate (i.e. with the negative rotation angle). args: annotated: when set to ``true``, this is typicall | STRING |
| HIGH | qiskit/circuit/library/standard_gates/u1.py | 0 | args: theta: the rotation angle. label: an optional label for the gate. | STRING |
| HIGH | qiskit/circuit/library/standard_gates/rzz.py | 0 | args: theta: the rotation angle. label: an optional label for the gate. | STRING |
| 105 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | qiskit/visualization/bloch.py | 14 | # This file is part of QuTiP: Quantum Toolbox in Python. | COMMENT |
| MEDIUM | qiskit/visualization/circuit/matplotlib.py | 559 | # Create an empty circuit at the head of the circuit_list if a Switch box | COMMENT |
| MEDIUM | qiskit/visualization/circuit/text.py | 1362 | # Create an empty circuit at the head of the circuit_list if a Switch box | COMMENT |
| MEDIUM | qiskit/visualization/circuit/_utils.py | 455 | # Create a mapping of each register to the max layer number for all measure ops | COMMENT |
| MEDIUM | qiskit/transpiler/__init__.py | 76 | # Create the pass manager for the transpilation ... | STRING |
| MEDIUM | qiskit/transpiler/__init__.py | 1278 | # The following code is only needed to display the image in the documentation. If you | STRING |
| MEDIUM | qiskit/transpiler/__init__.py | 1349 | # The following code is only needed to display the image in the documentation. If you | STRING |
| MEDIUM | qiskit/transpiler/__init__.py | 1415 | # The following code is only needed to display the image in the documentation. If you | STRING |
| MEDIUM | qiskit/transpiler/passes/optimization/hoare_opt.py | 38 | # This module is just a script that adds several post conditions onto existing classes. | COMMENT |
| MEDIUM | …ptimization/template_matching/template_substitution.py | 562 | # Create the fake binding dict and check | COMMENT |
| MEDIUM | qiskit/transpiler/passes/synthesis/plugin.py | 698 | # Create a dict, mapping <OperationName> to the list of its <SynthesisMethodName>s. | COMMENT |
| MEDIUM | qiskit/transpiler/passes/routing/star_prerouting.py | 268 | # Create a new DAGCircuit / DAGDependency / DAGDependencyV2, replacing each | COMMENT |
| MEDIUM | …/commuting_2q_gate_routing/commuting_2q_gate_router.py | 72 | # Define the circuit on virtual qubits | STRING |
| MEDIUM | …/commuting_2q_gate_routing/commuting_2q_gate_router.py | 77 | # Define the swap strategy on qubits before the initial_layout is applied. | STRING |
| MEDIUM | qiskit/transpiler/preset_passmanagers/plugin.py | 190 | """This method is designed to return a :class:`~.PassManager` for the stage this implements | STRING |
| MEDIUM | qiskit/transpiler/preset_passmanagers/plugin.py | 217 | """This method is designed to return a :class:`~.PassManager` for the stage this implements | STRING |
| MEDIUM | qiskit/transpiler/preset_passmanagers/pbc/plugins.py | 92 | """This method is designed to return a :class:`~.PassManager` for the stage this implements | STRING |
| MEDIUM | qiskit/circuit/__init__.py | 76 | # Create a circuit with a register of three qubits | COMMENT |
| MEDIUM | qiskit/circuit/delay.py | 52 | # This method is a centralization of the unit-handling logic, so used elsewhere in Qiskit | COMMENT |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 3605 | # This function is deliberately meant to be a bit harder to find, to have a long descriptive | COMMENT |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 129 | # Create a new circuit with two qubits | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 3154 | # Create a parametrized circuit. | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 3230 | # Create a circuit and create a variable in it. | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 3302 | # Create a circuit and create a variable in it. | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 4286 | # Create a 2-qubit quantum circuit | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 4290 | # Create an ancilla register with 1 qubit | STRING |
| MEDIUM | qiskit/circuit/quantumcircuit.py | 4314 | # Create a new circuit with two qubits and one classical bit | STRING |
| MEDIUM | …ircuit/library/generalized_gates/mcg_up_to_diagonal.py | 130 | # Define the role of the qubits | STRING |
| MEDIUM | …t/circuit/library/generalized_gates/linear_function.py | 126 | # The following function will raise a CircuitError if there are nonlinear gates. | STRING |
| MEDIUM | …t/circuit/library/generalized_gates/linear_function.py | 137 | # The following function will raise a CircuitError if clifford does not correspond | STRING |
| MEDIUM | qiskit/circuit/library/generalized_gates/isometry.py | 316 | # Define the role of the qubits | STRING |
| MEDIUM | qiskit/circuit/library/n_local/qaoa_ansatz.py | 358 | # Create a permutation to take us from (cost_1, mixer_1, cost_2, mixer_2, ...) | COMMENT |
| MEDIUM | qiskit/circuit/controlflow/builder.py | 15 | # This file is in circuit.controlflow rather than the root of circuit because the constructs here | COMMENT |
| MEDIUM | qiskit/circuit/controlflow/builder.py | 749 | # Create the concrete instruction listing. | COMMENT |
| MEDIUM | qiskit/providers/fake_provider/__init__.py | 42 | # Create a simple circuit | STRING |
| MEDIUM | qiskit/providers/basic_provider/basic_provider_job.py | 14 | """This module implements the job class used by Basic Aer Provider.""" | STRING |
| MEDIUM | qiskit/dagcircuit/collect_blocks.py | 30 | """This class implements various strategies of dividing a DAG (directed acyclic graph) | STRING |
| MEDIUM | qiskit/dagcircuit/collect_blocks.py | 335 | """This class implements various strategies of consolidating blocks of nodes | STRING |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 107 | # Define a target circuit as a unitary matrix | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 110 | # Define a number of qubits for the algorithm, at least 3 qubits | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 120 | # Define a targeted depth of the approximate circuit in the number of CNOT units. | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 131 | # Create an optimizer to be used by AQC | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 134 | # Create an instance | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 137 | # Create a template circuit that will approximate our target circuit | COMMENT |
| MEDIUM⚡ | qiskit/synthesis/unitary/aqc/__init__.py | 140 | # Create an objective that defines our optimization problem | COMMENT |
| MEDIUM | qiskit/synthesis/unitary/aqc/__init__.py | 161 | # Create an objective that defines our optimization problem | COMMENT |
| MEDIUM | qiskit/synthesis/clifford/clifford_decompose_layers.py | 402 | # Create the Pauli | COMMENT |
| MEDIUM | qiskit/synthesis/stabilizer/stabilizer_decompose.py | 148 | # Create the Pauli | COMMENT |
| MEDIUM | qiskit/synthesis/linear_phase/cnot_phase_synth.py | 30 | r"""This function is an implementation of the `GraySynth` algorithm of | CODE |
| MEDIUM | qiskit/primitives/statevector_estimator.py | 63 | # Define a circuit with two parameters. | STRING |
| MEDIUM | qiskit/primitives/statevector_estimator.py | 72 | # Define a sweep over parameter values, where the second axis is over | STRING |
| MEDIUM | qiskit/primitives/statevector_sampler.py | 84 | # Define a quantum circuit with two parameters. | STRING |
| MEDIUM | qiskit/primitives/statevector_sampler.py | 97 | # Define a sweep over parameter values, where the second axis is over | STRING |
| MEDIUM | qiskit/qpy/type_keys.py | 129 | # This class is deliberately raw integers and not in terms of ASCII characters for backwards | COMMENT |
| MEDIUM | qiskit/quantum_info/operators/symplectic/pauli_list.py | 639 | # Create a single array of Pauli's and phases for calling np.unique on | COMMENT |
| MEDIUM | …t/quantum_info/operators/symplectic/sparse_pauli_op.py | 354 | # This method is the outer version of `BasePauli.compose`. | COMMENT |
| MEDIUM | crates/pyext/build.rs | 31 | # This file is generated by Qiskit's build process | COMMENT |
| MEDIUM | test/python/visualization/test_pass_manager_drawer.py | 55 | # Create a pass manager with a variety of passes and flow control structures | COMMENT |
| MEDIUM | test/python/transpiler/test_linear_functions_passes.py | 85 | # Create a circuit with a nonlinear gate (h) cleanly separating it into two linear blocks. | COMMENT |
| MEDIUM | test/python/transpiler/test_linear_functions_passes.py | 178 | # Create a circuit with multiple non-linear blocks | COMMENT |
| 84 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/user_config.py | 57 | CODE | |
| LOW | qiskit/visualization/counts_visualization.py | 264 | CODE | |
| LOW | qiskit/visualization/counts_visualization.py | 440 | CODE | |
| LOW | qiskit/visualization/state_visualization.py | 814 | CODE | |
| LOW | qiskit/visualization/bloch.py | 277 | CODE | |
| LOW | qiskit/visualization/bloch.py | 658 | CODE | |
| LOW | qiskit/visualization/style.py | 87 | CODE | |
| LOW | qiskit/visualization/transition_visualization.py | 129 | CODE | |
| LOW | qiskit/visualization/gate_map.py | 939 | CODE | |
| LOW | qiskit/visualization/gate_map.py | 1132 | CODE | |
| LOW | qiskit/visualization/gate_map.py | 1236 | CODE | |
| LOW | qiskit/visualization/dag_visualization.py | 78 | CODE | |
| LOW | qiskit/visualization/dag_visualization.py | 189 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 56 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 502 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 295 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 407 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 753 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1078 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1226 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1601 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1784 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 1823 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 976 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 1101 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 1312 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 1416 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 1577 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 1830 | CODE | |
| LOW | qiskit/visualization/circuit/latex.py | 256 | CODE | |
| LOW | qiskit/visualization/circuit/latex.py | 383 | CODE | |
| LOW | qiskit/visualization/circuit/latex.py | 442 | CODE | |
| LOW | qiskit/visualization/circuit/latex.py | 476 | CODE | |
| LOW | qiskit/visualization/circuit/_utils.py | 53 | CODE | |
| LOW | qiskit/visualization/circuit/_utils.py | 241 | CODE | |
| LOW | qiskit/visualization/circuit/_utils.py | 413 | CODE | |
| LOW | qiskit/visualization/circuit/_utils.py | 604 | CODE | |
| LOW | qiskit/visualization/circuit/_utils.py | 661 | CODE | |
| LOW | qiskit/visualization/timeline/core.py | 141 | CODE | |
| LOW | qiskit/visualization/timeline/core.py | 443 | CODE | |
| LOW | qiskit/visualization/timeline/plotters/matplotlib.py | 84 | CODE | |
| LOW | qiskit/transpiler/layout.py | 166 | CODE | |
| LOW | qiskit/transpiler/target.py | 585 | CODE | |
| LOW | qiskit/transpiler/target.py | 784 | CODE | |
| LOW | qiskit/transpiler/instruction_durations.py | 85 | CODE | |
| LOW | …iler/passes/scheduling/padding/dynamical_decoupling.py | 265 | CODE | |
| LOW | …t/transpiler/passes/scheduling/padding/base_padding.py | 102 | CODE | |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 276 | CODE | |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 408 | CODE | |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 517 | CODE | |
| LOW | qiskit/transpiler/passes/layout/dense_layout.py | 171 | CODE | |
| LOW | qiskit/transpiler/passes/layout/csp_layout.py | 75 | CODE | |
| LOW | …er/passes/optimization/optimize_swap_before_measure.py | 31 | CODE | |
| LOW | …it/transpiler/passes/optimization/optimize_1q_gates.py | 54 | CODE | |
| LOW | qiskit/transpiler/passes/optimization/hoare_opt.py | 195 | CODE | |
| LOW | qiskit/transpiler/passes/optimization/hoare_opt.py | 241 | CODE | |
| LOW | …asses/optimization/commutative_inverse_cancellation.py | 95 | CODE | |
| LOW | …piler/passes/optimization/collect_multiqubit_blocks.py | 94 | CODE | |
| LOW | …transpiler/passes/optimization/inverse_cancellation.py | 35 | CODE | |
| LOW | …es/optimization/contract_idle_wires_in_control_flow.py | 23 | CODE | |
| 274 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | qiskit/__init__.py | 26 | except importlib.metadata.PackageNotFoundError: | CODE |
| HIGH | qiskit/visualization/counts_visualization.py | 413 | except AttributeError: | CODE |
| HIGH | qiskit/visualization/state_visualization.py | 370 | except AttributeError: | CODE |
| HIGH | qiskit/visualization/state_visualization.py | 748 | except AttributeError: | CODE |
| HIGH | qiskit/visualization/circuit/_utils.py | 629 | except StopIteration: | CODE |
| HIGH | qiskit/visualization/timeline/plotters/matplotlib.py | 190 | except AttributeError: | CODE |
| HIGH | …it/transpiler/passes/optimization/optimize_1q_gates.py | 119 | except TypeError: | CODE |
| HIGH | qiskit/transpiler/passes/optimization/hoare_opt.py | 101 | except AttributeError: | CODE |
| HIGH | …ranspiler/passes/optimization/template_optimization.py | 122 | except TypeError: | CODE |
| HIGH | …iler/passes/synthesis/clifford_unitary_synth_plugin.py | 120 | except QiskitError: | CODE |
| HIGH | qiskit/circuit/parameterexpression.py | 78 | except TypeError as _: | CODE |
| HIGH | qiskit/circuit/instruction.py | 183 | except (ValueError, TypeError): | CODE |
| HIGH | qiskit/circuit/instruction.py | 191 | except TypeError: | CODE |
| HIGH | qiskit/circuit/instruction.py | 244 | except TypeError: | CODE |
| HIGH | qiskit/circuit/library/n_local/n_local.py | 491 | except AttributeError: | CODE |
| HIGH | qiskit/circuit/library/n_local/n_local.py | 1227 | except TypeError: | CODE |
| HIGH | qiskit/circuit/controlflow/_builder_utils.py | 61 | except (TypeError, ValueError): | CODE |
| HIGH | qiskit/synthesis/two_qubit/xx_decompose/polytopes.py | 98 | except np.linalg.LinAlgError: | CODE |
| HIGH | qiskit/quantum_info/operators/operator.py | 807 | except QiskitError: | CODE |
| HIGH | …quantum_info/operators/symplectic/clifford_circuits.py | 181 | except QiskitError: | CODE |
| HIGH | …quantum_info/operators/symplectic/clifford_circuits.py | 301 | except QiskitError: | CODE |
| HIGH | qiskit/quantum_info/operators/channel/superop.py | 327 | except QiskitError: | CODE |
| HIGH | test/python/transpiler/test_instruction_durations.py | 52 | except Exception: | CODE |
| HIGH | test/python/transpiler/test_unitary_synthesis_plugin.py | 55 | except KeyError: | CODE |
| HIGH | test/python/circuit/test_control_flow_builders.py | 4014 | except CircuitError: | CODE |
| HIGH | test/python/circuit/test_unitary.py | 45 | except Exception: | CODE |
| HIGH | test/python/circuit/test_controlled_gate.py | 1239 | except AttributeError: | CODE |
| HIGH | test/python/circuit/test_controlled_gate.py | 1270 | except AttributeError: | CODE |
| HIGH | test/python/dagcircuit/test_dagdependency.py | 28 | except ImportError: | CODE |
| HIGH | test/python/dagcircuit/test_dagdependency_v2.py | 29 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/__init__.py | 194 | __all__ = [ | CODE |
| LOW | qiskit/visualization/bloch.py | 49 | __all__ = ["Bloch"] | CODE |
| LOW | qiskit/visualization/__init__.py | 299 | __all__ = [ | CODE |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 53 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/visualization/circuit/__init__.py | 17 | __all__ = ["circuit_drawer"] | CODE |
| LOW | qiskit/visualization/timeline/__init__.py | 23 | __all__ = [ | CODE |
| LOW | qiskit/visualization/timeline/plotters/__init__.py | 18 | __all__ = ["MplPlotter"] | CODE |
| LOW | qiskit/transpiler/__init__.py | 1619 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passmanager.py | 358 | def _update_passmanager(self) -> None: | CODE |
| LOW | qiskit/transpiler/target.py | 46 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/passes/__init__.py | 204 | __all__ = [] | CODE |
| LOW | qiskit/transpiler/passes/analysis/__init__.py | 25 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/scheduling/__init__.py | 24 | __all__ = [ | CODE |
| LOW | …it/transpiler/passes/scheduling/scheduling/__init__.py | 19 | __all__ = ["ALAPScheduleAnalysis", "ASAPScheduleAnalysis", "SetIOLatency"] | CODE |
| LOW | …iler/passes/scheduling/padding/dynamical_decoupling.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/passes/scheduling/padding/__init__.py | 19 | __all__ = [ | CODE |
| LOW | …t/transpiler/passes/scheduling/padding/base_padding.py | 27 | logger = logging.getLogger(__name__) | CODE |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 39 | logger = logging.getLogger(__name__) | CODE |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 790 | def set_max_order(self, max_order: int) -> None: | CODE |
| LOW | …it/transpiler/passes/scheduling/alignments/__init__.py | 81 | __all__ = ["ConstrainedReschedule", "InstructionDurationCheck"] | CODE |
| LOW | qiskit/transpiler/passes/layout/sabre_layout.py | 35 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/passes/layout/vf2_utils.py | 17 | __all__ = ["ErrorMap"] | CODE |
| LOW | qiskit/transpiler/passes/layout/__init__.py | 28 | __all__ = [ | CODE |
| LOW | …t/transpiler/passes/optimization/elide_permutations.py | 22 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/passes/optimization/__init__.py | 50 | __all__ = [ | CODE |
| LOW | …piler/passes/optimization/optimize_1q_decomposition.py | 41 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nspiler/passes/optimization/optimize_1q_commutation.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | …iler/passes/optimization/template_matching/__init__.py | 21 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/utils/__init__.py | 35 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/synthesis/__init__.py | 25 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/routing/__init__.py | 23 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/routing/lookahead_swap.py | 28 | logger = logging.getLogger(__name__) | CODE |
| LOW | …r/passes/routing/commuting_2q_gate_routing/__init__.py | 27 | __all__ = ["Commuting2qGateRouter", "FindCommutingPauliEvolutions", "SwapStrategy"] | CODE |
| LOW | qiskit/transpiler/passes/routing/algorithms/__init__.py | 35 | __all__ = ["ApproximateTokenSwapper"] | CODE |
| LOW | …/transpiler/passes/routing/algorithms/token_swapper.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/passes/basis/__init__.py | 21 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/passes/basis/basis_translator.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | qiskit/transpiler/preset_passmanagers/__init__.py | 93 | __all__ = [ | CODE |
| LOW | qiskit/transpiler/preset_passmanagers/pbc/__init__.py | 23 | __all__ = [ | CODE |
| LOW | qiskit/qasm3/__init__.py | 246 | __all__ = [ | CODE |
| LOW | qiskit/result/__init__.py | 65 | __all__ = [ | CODE |
| LOW | qiskit/result/distributions/__init__.py | 19 | __all__ = [ | CODE |
| LOW | qiskit/qasm2/__init__.py | 525 | __all__ = [ | STRING |
| LOW | qiskit/qasm2/export.py | 17 | __all__ = ["dump", "dumps"] | CODE |
| LOW | qiskit/capi/__init__.py | 97 | __all__ = ["get_include", "get_lib"] | STRING |
| LOW | qiskit/circuit/annotation.py | 198 | __all__ = [ | CODE |
| LOW | qiskit/circuit/parametervector.py | 15 | __all__ = ["ParameterVector", "ParameterVectorElement"] | CODE |
| LOW | qiskit/circuit/__init__.py | 1431 | __all__ = [ | STRING |
| LOW | qiskit/circuit/equivalence.py | 30 | __all__ = [ | CODE |
| LOW | qiskit/circuit/tools/__init__.py | 18 | __all__ = ["pi_check"] | CODE |
| LOW | qiskit/circuit/library/__init__.py | 929 | __all__ = [ | STRING |
| LOW | qiskit/circuit/library/generalized_gates/__init__.py | 33 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/basis_change/__init__.py | 17 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/data_preparation/__init__.py | 47 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/boolean_logic/__init__.py | 20 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/arithmetic/__init__.py | 38 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/arithmetic/adders/__init__.py | 20 | __all__ = [ | CODE |
| LOW | …kit/circuit/library/arithmetic/multipliers/__init__.py | 19 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/standard_gates/__init__.py | 48 | __all__ = [ | CODE |
| LOW | qiskit/circuit/library/templates/__init__.py | 94 | __all__ = [ | CODE |
| 80 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/visualization/circuit/matplotlib.py | 491 | # Check if a ControlFlowOp - node_data load for these gates is done here | COMMENT |
| LOW | qiskit/transpiler/layout.py | 328 | # Check if list is too short to cover all qubits | COMMENT |
| LOW | qiskit/transpiler/coupling.py | 466 | # Set payload to index | COMMENT |
| LOW | …iler/passes/scheduling/padding/dynamical_decoupling.py | 201 | # Check if physical circuit is given | COMMENT |
| LOW | …iler/passes/scheduling/padding/dynamical_decoupling.py | 216 | # Check if DD sequence is identity | COMMENT |
| LOW | qiskit/transpiler/passes/optimization/light_cone.py | 108 | # Check if the node belongs to the light-cone | COMMENT |
| LOW | …es/optimization/template_matching/template_matching.py | 339 | # Add the matches to the list. | COMMENT |
| LOW | …es/optimization/template_matching/template_matching.py | 365 | # Add the matches to the list. | COMMENT |
| LOW | …ptimization/template_matching/template_substitution.py | 281 | # Check if two groups of matches are incompatible. | COMMENT |
| LOW | …asses/optimization/template_matching/backward_match.py | 504 | # Check if the qubit, clbit configuration are compatible for a match, | COMMENT |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 397 | # Check if the qubit, clbit configuration are compatible for a match, | COMMENT |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 404 | # Check if parameters match the template or not. | COMMENT |
| LOW⚡ | …passes/optimization/template_matching/forward_match.py | 413 | # Check if the potential match is valid by attempting | COMMENT |
| LOW | …ranspiler/passes/synthesis/solovay_kitaev_synthesis.py | 325 | # Check if we didn't yet construct the Solovay-Kitaev instance (which contains the basic | COMMENT |
| LOW | …er/preset_passmanagers/generate_preset_pass_manager.py | 623 | # Check if coupling map has been provided (either standalone or through backend) | COMMENT |
| LOW | qiskit/result/utils.py | 249 | # Check if we do not need to marginalize and if so, trim | COMMENT |
| LOW | qiskit/circuit/library/generalized_gates/uc.py | 99 | # Check if number of gates in gate_list is a positive power of two | STRING |
| LOW | qiskit/circuit/library/generalized_gates/uc.py | 106 | # Check if the single-qubit gates are unitaries | STRING |
| LOW | …ircuit/library/generalized_gates/mcg_up_to_diagonal.py | 57 | # Check if the gate has the right dimension | STRING |
| LOW | …ircuit/library/generalized_gates/mcg_up_to_diagonal.py | 60 | # Check if the single-qubit gate is unitary | STRING |
| LOW | …skit/circuit/library/generalized_gates/uc_pauli_rot.py | 47 | # Check if angle_list has type "list" | STRING |
| LOW | …skit/circuit/library/generalized_gates/uc_pauli_rot.py | 50 | # Check if the angles in angle_list are real numbers | STRING |
| LOW | qiskit/circuit/library/generalized_gates/isometry.py | 93 | # Check if the isometry has the right dimension and if the columns are orthonormal | STRING |
| LOW | qiskit/circuit/library/generalized_gates/isometry.py | 199 | # Check if a MCG is required | STRING |
| LOW | …/circuit/library/data_preparation/state_preparation.py | 196 | # Check if param is a power of 2 | COMMENT |
| LOW | …/circuit/library/data_preparation/pauli_feature_map.py | 692 | # Check if the entanglement is specified for all the pauli blocks being used | COMMENT |
| LOW | …skit/circuit/library/arithmetic/piecewise_chebyshev.py | 255 | # Append directly to list of polynomials | COMMENT |
| LOW | …skit/circuit/library/arithmetic/piecewise_chebyshev.py | 474 | # Append directly to list of polynomials | STRING |
| LOW | qiskit/circuit/library/n_local/efficient_su2.py | 119 | # Set entanglement_blocks to None when num_qubits == 1 | STRING |
| LOW | qiskit/circuit/library/n_local/real_amplitudes.py | 121 | # Set entanglement_blocks to None when num_qubits == 1 | STRING |
| LOW | qiskit/providers/basic_provider/basic_simulator.py | 143 | # Set num_qubits to None to signal the transpiler not to | COMMENT |
| LOW | qiskit/providers/basic_provider/basic_simulator.py | 651 | # Check if circuit is Clifford and use optimized simulation | COMMENT |
| LOW | qiskit/providers/basic_provider/basic_simulator.py | 668 | # Check if measure sampling is supported for current circuit | COMMENT |
| LOW | qiskit/providers/basic_provider/basic_simulator.py | 673 | # Check if we can sample measurements, if so we only perform 1 shot | COMMENT |
| LOW | qiskit/providers/basic_provider/basic_simulator.py | 701 | # Check if single qubit gate | COMMENT |
| LOW⚡ | qiskit/providers/basic_provider/basic_simulator.py | 729 | # Check if reset | COMMENT |
| LOW⚡ | qiskit/providers/basic_provider/basic_simulator.py | 734 | # Check if barrier | COMMENT |
| LOW⚡ | qiskit/providers/basic_provider/basic_simulator.py | 737 | # Check if measure | COMMENT |
| LOW | qiskit/quantum_info/operators/predicates.py | 174 | # Check if square identity | COMMENT |
| LOW | qiskit/quantum_info/operators/measures.py | 355 | # Check if CVXPY package is installed | COMMENT |
| LOW | qiskit/quantum_info/operators/symplectic/base_pauli.py | 567 | # Check if gate is a valid Clifford basis gate string | COMMENT |
| LOW | …quantum_info/operators/symplectic/clifford_circuits.py | 106 | # Check if gate is a valid Clifford basis gate string | COMMENT |
| LOW | …quantum_info/operators/symplectic/clifford_circuits.py | 226 | # Check if gate is a valid Clifford basis gate string | COMMENT |
| LOW | qiskit/quantum_info/operators/symplectic/pauli_list.py | 637 | # Check if we need to stack the phase array | COMMENT |
| LOW | …skit/quantum_info/operators/channel/transformations.py | 223 | # Check if hermitian matrix | COMMENT |
| LOW | qiskit/quantum_info/operators/channel/kraus.py | 95 | # Check if it is a single unitary matrix A for channel: | STRING |
| LOW | qiskit/quantum_info/operators/channel/kraus.py | 102 | # Check if single Kraus set [A_i] for channel: | STRING |
| LOW | qiskit/quantum_info/operators/channel/kraus.py | 117 | # Check if generalized Kraus set ([A_i], [B_i]) for channel: | STRING |
| LOW | …skit/quantum_info/operators/channel/quantum_channel.py | 249 | # Check if input is an N-qubit CPTP channel. | COMMENT |
| LOW | …skit/quantum_info/operators/channel/quantum_channel.py | 281 | # Check if the partial trace is the identity matrix | COMMENT |
| LOW | qiskit/quantum_info/states/stabilizerstate.py | 320 | # Check if there is a stabilizer that anti-commutes with an odd number of qubits | COMMENT |
| LOW | qiskit/quantum_info/states/stabilizerstate.py | 334 | # Check if destabilizer anti-commutes | COMMENT |
| LOW | qiskit/quantum_info/states/stabilizerstate.py | 592 | # Check if there exists stabilizer anticommuting with Z[qubit] | COMMENT |
| LOW | test/python/transpiler/test_preset_passmanagers.py | 1522 | # Check if both are instances of PassManager | COMMENT |
| LOW | test/python/transpiler/test_preset_passmanagers.py | 156 | self.assertNotIn("u1", op_nodes) # Check if the diagonal Z-Gates (u1) were removed | CODE |
| LOW⚡ | test/python/result/test_quasi.py | 196 | # Check if distance calculation is correct | COMMENT |
| LOW | test/python/capi/test_circuit.py | 50 | # Check if the integer case happens and load the integer within a pointer. | COMMENT |
| LOW | test/python/circuit/test_random_circuit.py | 291 | # Check if reset is applied. | COMMENT |
| LOW | test/python/circuit/test_random_circuit.py | 489 | # Check if conditionals are present on 1Q and 2Q gates. | COMMENT |
| LOW | test/python/circuit/test_random_circuit.py | 552 | # Check if the probabilities of occurrences of edges in the circuit, | COMMENT |
| 10 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | qiskit/transpiler/passes/optimization/hoare_opt.py | 120 | self.solver.push() | CODE |
| HIGH | qiskit/transpiler/passes/optimization/hoare_opt.py | 133 | self.solver.push() | CODE |
| HIGH | qiskit/transpiler/passes/optimization/hoare_opt.py | 188 | self.solver.push() | CODE |
| HIGH | qiskit/transpiler/passes/optimization/hoare_opt.py | 331 | self.solver.push() | CODE |
| HIGH | qiskit/circuit/classical/expr/expr.py | 122 | """Logical "and". ``lhs && rhs``.""" | STRING |
| HIGH | qiskit/circuit/classical/expr/expr.py | 124 | """Logical "or". ``lhs || rhs``.""" | STRING |
| HIGH | test/python/visualization/test_circuit_text_drawer.py | 4640 | "q_0: ┤ ┤ ──■── ├─┤ If-1 c && a == 128 ┤ H ├ End-1 ├─ ├─", | CODE |
| HIGH | test/python/utils/test_lazy_loaders.py | 69 | """Implementation of the abstract (but undefined) method.""" | STRING |
| HIGH | test/python/quantum_info/operators/test_operator.py | 300 | # Non-unitary should return false | COMMENT |
| HIGH | …st/python/quantum_info/operators/channel/test_kraus.py | 116 | # Non-CPTP should return false | COMMENT |
| HIGH | test/python/quantum_info/operators/channel/test_choi.py | 100 | # Non-CPTP should return false | COMMENT |
| HIGH | test/python/quantum_info/operators/channel/test_ptm.py | 91 | # Non-CPTP should return false | COMMENT |
| HIGH | …/python/quantum_info/operators/channel/test_superop.py | 195 | # Non-CPTP should return false | COMMENT |
| HIGH | test/python/quantum_info/operators/channel/test_chi.py | 83 | # Non-CPTP should return false | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/visualization/counts_visualization.py | 59 | CODE | |
| LOW | qiskit/visualization/counts_visualization.py | 166 | CODE | |
| LOW | qiskit/visualization/counts_visualization.py | 264 | CODE | |
| LOW | qiskit/visualization/pass_manager_visualization.py | 97 | CODE | |
| LOW | qiskit/visualization/pass_manager_visualization.py | 192 | CODE | |
| LOW | qiskit/visualization/transition_visualization.py | 91 | CODE | |
| LOW | qiskit/visualization/transition_visualization.py | 102 | CODE | |
| LOW | qiskit/visualization/gate_map.py | 28 | CODE | |
| LOW | qiskit/visualization/gate_map.py | 939 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 56 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 402 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 502 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 625 | CODE | |
| LOW | qiskit/visualization/circuit/circuit_visualization.py | 702 | CODE | |
| LOW | qiskit/visualization/circuit/matplotlib.py | 96 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 86 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 97 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 113 | CODE | |
| LOW | qiskit/visualization/circuit/text.py | 700 | CODE | |
| LOW | qiskit/visualization/circuit/latex.py | 53 | CODE | |
| LOW | qiskit/visualization/timeline/interface.py | 34 | CODE | |
| LOW | qiskit/transpiler/passmanager_config.py | 29 | CODE | |
| LOW | qiskit/transpiler/passmanager_config.py | 173 | CODE | |
| LOW | qiskit/transpiler/target.py | 243 | CODE | |
| LOW | qiskit/transpiler/target.py | 964 | CODE | |
| LOW | qiskit/transpiler/target.py | 990 | CODE | |
| LOW | …iler/passes/scheduling/padding/dynamical_decoupling.py | 116 | CODE | |
| LOW | …it/transpiler/passes/synthesis/high_level_synthesis.py | 188 | CODE | |
| LOW | qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 57 | CODE | |
| LOW | qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 271 | CODE | |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 1290 | CODE | |
| LOW | …er/preset_passmanagers/generate_preset_pass_manager.py | 59 | CODE | |
| LOW | …er/preset_passmanagers/generate_preset_pass_manager.py | 293 | CODE | |
| LOW | …er/preset_passmanagers/generate_preset_pass_manager.py | 584 | CODE | |
| LOW | qiskit/transpiler/preset_passmanagers/common.py | 194 | CODE | |
| LOW | qiskit/transpiler/preset_passmanagers/common.py | 441 | CODE | |
| LOW | qiskit/qasm3/exporter.py | 208 | CODE | |
| LOW | qiskit/result/result.py | 44 | CODE | |
| LOW | qiskit/circuit/quantumcircuit.py | 2135 | CODE | |
| LOW | qiskit/circuit/quantumcircuit.py | 2152 | CODE | |
| LOW | qiskit/circuit/quantumcircuit.py | 2168 | CODE | |
| LOW | qiskit/circuit/quantumcircuit.py | 3971 | CODE | |
| LOW | qiskit/circuit/library/blueprintcircuit.py | 208 | CODE | |
| LOW | qiskit/circuit/library/generalized_gates/isometry.py | 260 | CODE | |
| LOW | …/circuit/library/data_preparation/pauli_feature_map.py | 44 | CODE | |
| LOW | …/circuit/library/data_preparation/pauli_feature_map.py | 481 | CODE | |
| LOW | …kit/circuit/library/n_local/evolved_operator_ansatz.py | 288 | CODE | |
| LOW | qiskit/circuit/library/n_local/n_local.py | 54 | CODE | |
| LOW | qiskit/circuit/library/n_local/n_local.py | 317 | CODE | |
| LOW | qiskit/circuit/library/n_local/efficient_su2.py | 31 | CODE | |
| LOW | qiskit/circuit/library/n_local/efficient_su2.py | 201 | CODE | |
| LOW | qiskit/circuit/library/n_local/real_amplitudes.py | 245 | CODE | |
| LOW | qiskit/circuit/library/n_local/excitation_preserving.py | 26 | CODE | |
| LOW | qiskit/circuit/library/n_local/excitation_preserving.py | 221 | CODE | |
| LOW | qiskit/circuit/library/n_local/two_local.py | 145 | CODE | |
| LOW | qiskit/circuit/random/utils.py | 79 | CODE | |
| LOW | qiskit/dagcircuit/dagdepnode.py | 63 | CODE | |
| LOW | qiskit/synthesis/evolution/suzuki_trotter.py | 61 | CODE | |
| LOW | qiskit/synthesis/evolution/qdrift.py | 44 | CODE | |
| LOW | qiskit/quantum_info/analysis/z2_symmetries.py | 169 | CODE | |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/visualization/pass_manager_visualization.py | 84 | # can't just use python's id in case the exact same pass was | COMMENT |
| LOW | qiskit/visualization/pass_manager_visualization.py | 169 | # can't just use python's id in case the exact same pass was | COMMENT |
| LOW | qiskit/visualization/circuit/matplotlib.py | 646 | # register_bit is small enough, the gate will just use the WID width. | COMMENT |
| LOW | …heduling/padding/context_aware_dynamical_decoupling.py | 873 | # case we just return 0, which will mean we join all idle times | COMMENT |
| LOW | qiskit/transpiler/passes/utils/gate_direction.py | 89 | # A _FakeTarget path, no basis gates, just use the coupling map | COMMENT |
| LOW | qiskit/transpiler/passes/utils/check_gate_direction.py | 55 | # A _FakeTarget path, no basis gates, just use the coupling map | COMMENT |
| LOW | qiskit/transpiler/passes/synthesis/unitary_synthesis.py | 182 | # and just return. | COMMENT |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 179 | # qubits being used to figure out the fidelity so just use the default fidelity parameter | COMMENT |
| LOW | …skit/transpiler/preset_passmanagers/builtin_plugins.py | 1108 | # qubits being used to figure out the fidelity so just use the default fidelity parameter | COMMENT |
| LOW | qiskit/circuit/quantumcircuit.py | 7989 | # QuantumCircuit._append is semi-public, so we just call back to it. | COMMENT |
| LOW | …skit/circuit/library/arithmetic/piecewise_chebyshev.py | 240 | # and the user takes that into account we just add an identity) | COMMENT |
| LOW | …skit/circuit/library/arithmetic/piecewise_chebyshev.py | 457 | # and the user takes that into account we just add an identity) | STRING |
| LOW | qiskit/providers/options.py | 79 | # We need to make attribute setting simply set options as well, to support statements of the | COMMENT |
| LOW | qiskit/synthesis/arithmetic/adders/draper_qft_adder.py | 100 | # simply use qr_sum[(j + k)] here and avoid synthesizing two swap networks, which | STRING |
| LOW | qiskit/passmanager/lowering_passmanager.py | 126 | # state we'll just use the regular display. | COMMENT |
| LOW | qiskit/quantum_info/operators/scalar_op.py | 207 | # we simply return the other operator reshaped so that its | COMMENT |
| MEDIUM | crates/transpiler/src/equivalence.rs | 335 | /// It also ensures seamless conversion back to [`QuantumCircuit`] once sent | COMMENT |
| MEDIUM | crates/transpiler/src/passes/high_level_synthesis.rs | 755 | /// Essentially this function constructs a default definition for a unitary gate, in which case | COMMENT |
| MEDIUM | crates/qpy/src/params.rs | 136 | // this is no longer used in the rust-based parameter expressions, so we do not fully utilize the formats | COMMENT |
| LOW⚡ | test/python/transpiler/test_consolidate_blocks.py | 212 | # can't just add all the nodes to one block as in other tests | COMMENT |
| LOW⚡ | test/python/utils/test_lazy_loaders.py | 419 | # We can just use existing modules for this. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …senotes/notes/1.1/fix-pub-coerce-5d13700e15126421.yaml | 5 | Fixed a bug where ``qiskit.primitives.containers.estimator_pub.EstimatorPub.coerce()`` and | CODE |
| CRITICAL | …senotes/notes/1.1/fix-pub-coerce-5d13700e15126421.yaml | 6 | ``qiskit.primitives.containers.sampler_pub.SamplerPub.coerce()`` | CODE |
| CRITICAL | …es/notes/1.1/obs-array-coerce-0d-28b192fb3d004d4a.yaml | 4 | Fixed `qiskit.primitives.containers.observables_array.ObservablesArray.coerce()` | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 520 | // Step 3: the actual MCX action — flip the target iff the ancilla AND | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 523 | // Step 4: undo Steps 1-2, restoring every control qubit and the ancilla | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 719 | // Step 1: prime -- turn ancilla0 into a conditionally clean qubit holding | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 724 | // Step 2: fold -- log-depth AND-folding ladder over the remaining controls. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 726 | // Step 3: finish -- flip the target iff AND(all k controls) holds. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 734 | // Step 4: unfold -- undo step 2, restoring all control qubits. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 736 | // Step 5: unprime -- undo step 1, restoring ancilla0 to its initial state. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 70 | # Step 1: Create virtual environment with the old Qiskit release. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 76 | # Step 2: Load the pre-generated QPY files using the venv. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 83 | # Step 3: Clean up virtual environment. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 520 | // Step 3: the actual MCX action — flip the target iff the ancilla AND | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 523 | // Step 4: undo Steps 1-2, restoring every control qubit and the ancilla | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 719 | // Step 1: prime -- turn ancilla0 into a conditionally clean qubit holding | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 724 | // Step 2: fold -- log-depth AND-folding ladder over the remaining controls. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 726 | // Step 3: finish -- flip the target iff AND(all k controls) holds. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 734 | // Step 4: unfold -- undo step 2, restoring all control qubits. | COMMENT |
| LOW⚡ | crates/synthesis/src/multi_controlled/mcx.rs | 736 | // Step 5: unprime -- undo step 1, restoring ancilla0 to its initial state. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 70 | # Step 1: Create virtual environment with the old Qiskit release. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 76 | # Step 2: Load the pre-generated QPY files using the venv. | COMMENT |
| LOW⚡ | test/qpy_compat/process_forward_version.sh | 83 | # Step 3: Clean up virtual environment. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/version.py | 74 | except Exception: | CODE |
| LOW | …kit/transpiler/passes/routing/layout_transformation.py | 99 | except Exception as ex: | CODE |
| LOW | …kit/transpiler/passes/routing/layout_transformation.py | 106 | except Exception as ex: | CODE |
| LOW | …kit/transpiler/passes/basis/translate_parameterized.py | 143 | except Exception as exc: | CODE |
| LOW | qiskit/circuit/library/n_local/n_local.py | 1278 | except Exception as exc: | CODE |
| LOW | qiskit/providers/basic_provider/basic_provider.py | 114 | except Exception as err: | CODE |
| LOW | qiskit/passmanager/base_tasks.py | 106 | except Exception: | CODE |
| LOW⚡ | test/python/transpiler/test_instruction_durations.py | 52 | except Exception: | CODE |
| LOW⚡ | test/python/circuit/test_unitary.py | 37 | except Exception as err: | CODE |
| LOW⚡ | test/python/circuit/test_unitary.py | 45 | except Exception: | CODE |
| LOW | test/qpy_compat/test_qpy.py | 1242 | except Exception as ex: | CODE |
| LOW | test/qpy_compat/test_qpy.py | 1287 | except Exception: | CODE |
| LOW | test/randomized/test_transpiler_equivalence.py | 311 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/circuit/controlflow/builder.py | 324 | the scope can also contain "placeholder" instructions, which may need extra resources filling in | STRING |
| LOW⚡ | crates/cext/src/classical_expr.rs | 1086 | operand: dummy_value, | CODE |
| LOW⚡ | crates/cext/src/classical_expr.rs | 1092 | left: dummy_value.clone(), | CODE |
| LOW⚡ | crates/cext/src/classical_expr.rs | 1093 | right: dummy_value, | CODE |
| LOW⚡ | crates/cext/src/classical_expr.rs | 1098 | operand: dummy_value, | CODE |
| LOW | crates/cext/src/classical_expr.rs | 1056 | let dummy_value = match &rust_type { | CODE |
| LOW | crates/cext/src/classical_expr.rs | 1109 | CExprNodeKind::Value => dummy_value, | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | crates/cext/src/circuit_library/suzuki_trotter.rs | 22 | /// In this implementation, the operators are provided as sum terms of a Pauli operator. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …kit/synthesis/arithmetic/comparators/compare_greedy.py | 50 | # make sure to always choose the comparison where we have to place less than | STRING |
| LOW | test/python/transpiler/test_mappers.py | 57 | circuit = QuantumCircuit(qr, cr, # and don't forget to put a name | STRING |
| LOW | test/python/transpiler/test_mappers.py | 57 | circuit = QuantumCircuit(qr, cr, # and don't forget to put a name | STRING |
| MEDIUM | …otes/notes/0.19/ignis-mitigators-70492690cbcf99ca.yaml | 25 | It's worth noting that unlike the equivalent classes from ``qiskit-ignis`` | CODE |
| MEDIUM | …notes/notes/0.9/new-features-0.9-159645f977a139f7.yaml | 73 | However, it's worth noting that while these arguments are set for the 0.9 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | qiskit/quantum_info/states/quantum_state.py | 327 | # TODO: implement a more efficient state update method for | COMMENT |
| LOW | crates/circuit/src/dag_circuit.rs | 6921 | // TODO: implement once additional_wires becomes Python-free | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | test/c/CMakeLists.txt | 6 | # Since we only use CMake to scaffold `ctest`, we just have the whole | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …t/synthesis/arithmetic/adders/rv_ripple_carry_adder.py | 42 | def helper(qubit_indices, alphas) -> list[list[int]]: | STRING |
| LOW | test/python/utils/test_deprecation.py | 54 | def my_method(self): | CODE |