Repository Analysis

quantumlib/Cirq

Python framework for creating, editing, and running Noisy Intermediate-Scale Quantum (NISQ) circuits.

28.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of quantumlib/Cirq, a Python project with 5,013 GitHub stars. SynthScan v2.0 examined 375,538 lines of code across 1646 source files, recording 9624 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 28.7 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

28.7
Adjusted Score
28.7
Raw Score
100%
Time Factor
2026-07-11
Last Push
5.0K
Stars
Python
Language
375.5K
Lines of Code
1.6K
Files
9.6K
Pattern Hits
2026-07-14
Scan Date
0.27
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 29HIGH 423MEDIUM 235LOW 8937

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 9624 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers4309 hits · 4003 pts
SeverityFileLineSnippetContext
LOWconftest.py24def pytest_collection_modifyitems(config, items):CODE
LOWcirq-web/cirq_web/widget_test.py59def test_generate_html_file_with_browser(tmpdir) -> None:STRING
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py26def test_init_bloch_sphere_type() -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py32def test_valid_bloch_sphere_radius(sphere_radius) -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py38def test_invalid_bloch_sphere_radius(sphere_radius) -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py43def test_valid_bloch_sphere_vector() -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py50def test_no_state_vector_given() -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py55def test_bloch_sphere_default_client_code() -> None:CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py68def test_bloch_sphere_default_client_code_comp_basis() -> None:STRING
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py81def test_bloch_sphere_default_bundle_name() -> None:STRING
LOWcirq-web/cirq_web/circuits/circuit_test.py74def test_circuit_client_code_unsupported_qubit_type() -> None:STRING
LOWcirq-web/cirq_web/circuits/circuit_test.py82def test_circuit_default_bundle_name() -> None:STRING
LOWcirq-web/cirq_web/circuits/symbols_test.py53def test_resolve_operation_hadamard() -> None:CODE
LOWcirq-web/cirq_web/circuits/symbols_test.py67def test_resolve_operation_x_pow() -> None:CODE
LOWcirq-web/cirq_web/circuits/symbols_test.py82def test_resolve_operation_invalid_diagram_info(custom_gate) -> None:CODE
LOWcirq-web/cirq_web/circuits/symbols_test.py97def test_unresolvable_operation_() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset.py49 def _decompose_single_qubit_operation(self, op: cirq.Operation, _: int) -> DecomposeResult:CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset.py64 def _decompose_two_qubit_operation(self, op: cirq.Operation, _) -> DecomposeResult:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_metadata_test.py51def test_aqtdevice_duration_of(metadata, qubits) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py103def test_aqt_sampler_submit_job_error_handling() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py123def test_aqt_sampler_get_result_error_handling() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py145def test_aqt_sampler_empty_circuit() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py232def test_aqt_sampler_sim_xtalk() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py268def test_aqt_device_wrong_op_str() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py277def test_aqt_sampler_parses_legacy_json_correctly() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py301def test_aqt_sampler_submits_jobs_correctly() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py339def test_measurement_not_at_end_is_not_allowed() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py347def test_multiple_measurements_are_not_allowed() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py355def test_unknown_gate_in_json() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py365def test_aqt_sampler_raises_exception_on_bad_result_response() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py382def test_aqt_sampler_print_resources_shows_hint_if_no_workspaces() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py394def test_aqt_sampler_print_resources_shows_hint_if_no_resources() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py410def test_aqt_sampler_print_resources_includes_received_resources_in_table() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py443def test_aqt_sampler_fetch_resources_returns_retrieved_resources() -> None:CODE
LOWcirq-aqt/cirq_aqt/json_resolver_cache.py25def _class_resolver_dictionary() -> dict[str, ObjectFactory]:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py92def test_validate_measurement_non_adjacent_qubits_ok(device) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py98def test_validate_operation_existing_qubits(device) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py117def test_validate_operation_supported_gate(device) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py136def test_validate_circuit_repeat_measurement_keys(device) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py150def test_aqt_device_pretty_repr(device) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler.py276 def _parse_legacy_circuit_json(self, json_str: str) -> list[Operation]:CODE
LOWcirq-aqt/cirq_aqt/aqt_device.py193 def generate_circuit_from_list(self, json_string: str) -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_device.py376def _verify_unique_measurement_keys(operations: Iterable[cirq.Operation]):CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset_test.py60def test_decompose_single_qubit_operation() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset_test.py81def test_decompose_two_qubit_operation() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset_test.py91def test_postprocess_transformers() -> None:CODE
LOWcirq-aqt/cirq_aqt/aqt_simulator_test.py30def test_ms_crosstalk_n_noise() -> None:CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py32def test_serialize_single_circuit_empty_circuit_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py39def test_serialize_many_circuits_empty_circuit_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py46def test_serialize_single_circuit_non_terminal_measurements():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py54def test_serialize_many_circuits_non_terminal_measurements():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py62def test_serialize_single_circuit_not_line_qubits_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py70def test_serialize_many_circuits_not_line_qubits_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py78def test_serialize_single_circuit_parameterized_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py86def test_serialize_many_circuits_parameterized_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py94def test_serialize_single_circuit_implicit_num_qubits():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py102def test_serialize_many_circuits_implicit_num_qubits():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py110def test_serialize_single_circuit():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py158def test_serialize_single_circuit_non_gate_op_invalid():CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py166def test_serialize_many_circuits_non_gate_op_invalid():CODE
4249 more matches not shown…
Unused Imports3097 hits · 2394 pts
SeverityFileLineSnippetContext
LOWcirq-web/cirq_web/widget_test.py15CODE
LOWcirq-web/cirq_web/widget.py15CODE
LOWcirq-web/cirq_web/__init__.py15CODE
LOWcirq-web/cirq_web/__init__.py17CODE
LOWcirq-web/cirq_web/__init__.py19CODE
LOWcirq-web/cirq_web/__init__.py21CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere.py15CODE
LOWcirq-web/cirq_web/bloch_sphere/__init__.py15CODE
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py15CODE
LOWcirq-web/cirq_web/circuits/circuit.py15CODE
LOWcirq-web/cirq_web/circuits/__init__.py15CODE
LOWcirq-web/cirq_web/circuits/__init__.py17CODE
LOWcirq-web/cirq_web/circuits/circuit_test.py15CODE
LOWcirq-web/cirq_web/circuits/symbols_test.py15CODE
LOWcirq-web/cirq_web/circuits/symbols.py18CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset.py17CODE
LOWcirq-aqt/cirq_aqt/aqt_device_metadata_test.py17CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py15CODE
LOWcirq-aqt/cirq_aqt/json_resolver_cache.py15CODE
LOWcirq-aqt/cirq_aqt/aqt_device_test.py15CODE
LOWcirq-aqt/cirq_aqt/__init__.py17CODE
LOWcirq-aqt/cirq_aqt/__init__.py18CODE
LOWcirq-aqt/cirq_aqt/__init__.py18CODE
LOWcirq-aqt/cirq_aqt/__init__.py22CODE
LOWcirq-aqt/cirq_aqt/aqt_sampler.py25CODE
LOWcirq-aqt/cirq_aqt/aqt_device.py27CODE
LOWcirq-aqt/cirq_aqt/aqt_target_gateset_test.py17CODE
LOWcirq-aqt/cirq_aqt/aqt_simulator_test.py15CODE
LOWcirq-aqt/cirq_aqt/aqt_device_metadata.py17CODE
LOWcirq-aqt/cirq_aqt/json_test_data/__init__.py20CODE
LOWcirq-ionq/cirq_ionq/serializer_test.py15CODE
LOWcirq-ionq/cirq_ionq/service.py16CODE
LOWcirq-ionq/cirq_ionq/ionq_gateset.py17CODE
LOWcirq-ionq/cirq_ionq/ionq_exceptions_test.py15CODE
LOWcirq-ionq/cirq_ionq/ionq_exceptions.py16CODE
LOWcirq-ionq/cirq_ionq/results.py16CODE
LOWcirq-ionq/cirq_ionq/calibration_test.py15CODE
LOWcirq-ionq/cirq_ionq/ionq_client.py16CODE
LOWcirq-ionq/cirq_ionq/job.py16CODE
LOWcirq-ionq/cirq_ionq/json_resolver_cache.py15CODE
LOWcirq-ionq/cirq_ionq/__init__.py15CODE
LOWcirq-ionq/cirq_ionq/__init__.py17CODE
LOWcirq-ionq/cirq_ionq/__init__.py19CODE
LOWcirq-ionq/cirq_ionq/__init__.py21CODE
LOWcirq-ionq/cirq_ionq/__init__.py21CODE
LOWcirq-ionq/cirq_ionq/__init__.py26CODE
LOWcirq-ionq/cirq_ionq/__init__.py26CODE
LOWcirq-ionq/cirq_ionq/__init__.py31CODE
LOWcirq-ionq/cirq_ionq/__init__.py31CODE
LOWcirq-ionq/cirq_ionq/__init__.py31CODE
LOWcirq-ionq/cirq_ionq/__init__.py31CODE
LOWcirq-ionq/cirq_ionq/__init__.py38CODE
LOWcirq-ionq/cirq_ionq/__init__.py40CODE
LOWcirq-ionq/cirq_ionq/__init__.py40CODE
LOWcirq-ionq/cirq_ionq/__init__.py42CODE
LOWcirq-ionq/cirq_ionq/__init__.py44CODE
LOWcirq-ionq/cirq_ionq/__init__.py44CODE
LOWcirq-ionq/cirq_ionq/__init__.py46CODE
LOWcirq-ionq/cirq_ionq/__init__.py48CODE
LOWcirq-ionq/cirq_ionq/__init__.py48CODE
3037 more matches not shown…
Docstring Block Structure316 hits · 1580 pts
SeverityFileLineSnippetContext
HIGHcirq-aqt/cirq_aqt/aqt_sampler.py231Generates the JSON string from a Circuit. The json format is defined as follows: [[op_string,gate_expoSTRING
HIGHcirq-aqt/cirq_aqt/aqt_sampler.py330Sends the json string to the remote AQT device. Submits a pre-prepared JSON string representing a circuit to thSTRING
HIGHcirq-aqt/cirq_aqt/aqt_device.py60Find the string representation for a given gate or operation. Args: op_obj: Gate or operation object. Gate STRING
HIGHcirq-aqt/cirq_aqt/aqt_device.py223Samples the circuit. Args: repetitions: Number of times the circuit is simulated. Returns:STRING
HIGHcirq-ionq/cirq_ionq/service.py279Create a new job to run the given circuit. Args: circuit: The circuit to run. repetitioSTRING
HIGHcirq-ionq/cirq_ionq/service.py347Create a new job to run the given circuit. Args: circuits: The circuits to run. repetitSTRING
HIGHcirq-ionq/cirq_ionq/service.py404Gets a job that has been created on the IonQ API. Args: job_id: The UUID of the job. Jobs are assigSTRING
HIGHcirq-ionq/cirq_ionq/service.py423Lists jobs that have been created on the IonQ API. Args: status: If supplied will filter to only joSTRING
HIGHcirq-ionq/cirq_ionq/service.py464List calibrations via the API. Args: start: If supplied, only calibrations after this date and timeSTRING
HIGHcirq-ionq/cirq_ionq/results.py114Returns a `cirq.Result` for these results. `cirq.Result` contains a less dense representation of results than tSTRING
HIGHcirq-ionq/cirq_ionq/results.py239Samples from the simulation probability result, producing a `cirq.Result`. The IonQ simulator returns the probaSTRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py121Create a job. Args: serialized_program: The `cirq_ionq.SerializedProgram` containing the serializedSTRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py194Get the job from the IonQ API. Args: job_id: The UUID of the job (returned when the job was createdSTRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py215Get job results from IonQ API. Args: job_id: The UUID of the job (returned when the job was createdSTRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py258Lists jobs from the IonQ API. Args: status: If not None, filter to jobs with this status. STRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py327Lists calibrations from the IonQ API. Args: start: If supplied, only calibrations after this date aSTRING
HIGHcirq-ionq/cirq_ionq/ionq_client.py393Make a request to the API, retrying if necessary. Args: request: A function that returns a `requestSTRING
HIGHcirq-ionq/cirq_ionq/job.py207Polls the IonQ api for results. Args: timeout_seconds: The total number of seconds to poll for. STRING
HIGHcirq-ionq/cirq_ionq/serializer.py405Serializes measurement ops into a form suitable to be passed via metadata. IonQ API does not contain measuremenSTRING
HIGHcirq-core/cirq/_compat.py450Replace module with a wrapper that gives warnings for deprecated attributes. Args: module_name: Absolute naSTRING
HIGHcirq-core/cirq/study/sweepable.py79Converts the argument into a ``cirq.Sweep``. Args: sweep_or_resolver_list: The object to try to turn into aSTRING
HIGHcirq-core/cirq/study/flatten_expressions.py33Creates a copy of `val` with any symbols or expressions replaced with new symbols. `val` can be a `Circuit`, `Gate`STRING
HIGHcirq-core/cirq/study/resolver.py111Attempt to resolve a parameter to its assigned value. Scalars are returned without modification. Strings are rSTRING
HIGHcirq-core/cirq/linalg/predicates.py241Returns an index corresponding to a desired subset of an np.ndarray. It is assumed that the np.ndarray's shape is oSTRING
HIGHcirq-core/cirq/linalg/combinators.py62Computes the kronecker product of a sequence of values and control tags. Use `cirq.CONTROL_TAG` to represent controSTRING
HIGHcirq-core/cirq/linalg/combinators.py113Computes the dot/matrix product of a sequence of values. Performs the computation in serial order without regard toSTRING
HIGHcirq-core/cirq/linalg/combinators.py146Concatenates blocks into a block diagonal matrix. Args: *blocks: Square matrices to place along the diagonaSTRING
HIGHcirq-core/cirq/linalg/decompositions.py102Gives the guaranteed unitary eigendecomposition of a normal matrix. All Hermitian and unitary matrices are normal mSTRING
HIGHcirq-core/cirq/linalg/decompositions.py162Splits a 4x4 matrix U = kron(A, B) into A, B, and a global factor. Requires the matrix to be the kronecker product STRING
HIGHcirq-core/cirq/linalg/decompositions.py212Finds 2x2 special-unitaries A, B where mat = Mag.H @ kron(A, B) @ Mag. Mag is the magic basis matrix: 1 0STRING
HIGHcirq-core/cirq/linalg/decompositions.py526Plots the interaction coefficients of many two-qubit operations. Plots: A point for the (x, y, z) normalizeSTRING
HIGHcirq-core/cirq/linalg/decompositions.py789Decomposes a 2-qubit unitary into 1-qubit ops and XX/YY/ZZ interactions. Args: unitary_object: The value toSTRING
HIGHcirq-core/cirq/linalg/decompositions.py859Compute the KAK vectors of one or more two qubit unitaries. Any 2 qubit unitary may be expressed as $$ U = k_lSTRING
HIGHcirq-core/cirq/linalg/decompositions.py1005Returns the min number of CNOT/CZ gates required by a two-qubit unitary. See Proposition III.1, III.2, III.3 in SheSTRING
HIGHcirq-core/cirq/linalg/transformations.py111Left-multiplies the given axes of the target tensor by the given matrix. Note that the matrix must have a compatiblSTRING
HIGHcirq-core/cirq/linalg/transformations.py317Left-multiplies an NxN matrix onto N slices of a numpy array. One example is that the 4x4 matrix of a fractional SWSTRING
HIGHcirq-core/cirq/linalg/transformations.py427Returns a mixture representing a state vector with only some qubits kept. The input state vector can have any shapeSTRING
HIGHcirq-core/cirq/linalg/transformations.py486Attempts to factor a state vector into two parts and return one of them. The input `state_vector` must have shape `STRING
HIGHcirq-core/cirq/linalg/transformations.py644Factors a state vector into two independent state vectors. This function should only be called on state vectors thaSTRING
HIGHcirq-core/cirq/linalg/transformations.py690Factors a density matrix into two independent density matrices. This function should only be called on density matrSTRING
HIGHcirq-core/cirq/linalg/diagonalize.py29Returns an orthogonal matrix that diagonalizes the given matrix. Args: matrix: A real symmetric matrix to dSTRING
HIGHcirq-core/cirq/linalg/diagonalize.py87Returns an orthogonal matrix that diagonalizes both given matrices. The given matrices must commute. GuaranteesSTRING
HIGHcirq-core/cirq/linalg/diagonalize.py161Finds orthogonal matrices that diagonalize both mat1 and mat2. Requires mat1 and mat2 to be real. Requires mat1STRING
HIGHcirq-core/cirq/linalg/diagonalize.py232Finds orthogonal matrices L, R such that L @ matrix @ R is diagonal. Args: mat: A unitary matrix. rSTRING
HIGHcirq-core/cirq/circuits/circuit.py347Finds the index of the next moment that touches the given qubits. Args: qubits: We're looking for oSTRING
HIGHcirq-core/cirq/circuits/circuit.py402Finds the index of the previous moment that touches the given qubits. Args: qubits: We're looking fSTRING
HIGHcirq-core/cirq/circuits/circuit.py447Determines how far can be reached into a circuit under certain rules. The location L = (qubit, moment_index) isSTRING
HIGHcirq-core/cirq/circuits/circuit.py1072Converts the circuit into a unitary matrix, if possible. Returns the same result as `cirq.unitary`, but provideSTRING
HIGHcirq-core/cirq/circuits/circuit.py1151Returns the state vector resulting from acting operations on a state. This is equivalent to calling cirq.final_STRING
HIGHcirq-core/cirq/circuits/circuit.py1448Combines operations from circuits in a moment-by-moment fashion. Moment k of the resulting circuit will have alSTRING
HIGHcirq-core/cirq/circuits/circuit.py2066Returns the same circuit, but with different qubits. This function will return a new `Circuit` with the same gaSTRING
HIGHcirq-core/cirq/circuits/circuit.py2259Inserts operations into the circuit. Operations are inserted into the moment specified by the index and STRING
HIGHcirq-core/cirq/circuits/circuit.py2340Writes operations inline into an area of the circuit. Args: start: The start of the range (inclusivSTRING
HIGHcirq-core/cirq/circuits/circuit.py2980Groups runs of items that are identical according to a keying function. Args: items: The items to group. STRING
HIGHcirq-core/cirq/circuits/moment.py203Returns an equal moment, but with the given op added. Any tags on the Moment will be dropped. Args: STRING
HIGHcirq-core/cirq/circuits/moment.py233Returns a new moment with the given contents added. Any tags on the original Moment object are dropped if the MSTRING
HIGHcirq-core/cirq/circuits/moment.py456Returns self expanded to given superset of qubits by making identities explicit. Args: qubits: IterSTRING
HIGHcirq-core/cirq/circuits/circuit_operation.py588Returns a copy of this operation repeated 'repetitions' times. Each repetition instance will be identified by aSTRING
HIGHcirq-core/cirq/circuits/circuit_operation.py699Returns a copy of this operation with an updated qubit mapping. Users should pass either 'qubit_map' or 'transfSTRING
HIGHcirq-core/cirq/circuits/circuit_operation.py738Returns a copy of this operation with an updated qubit mapping. Args: *new_qubits: A list of qubitsSTRING
256 more matches not shown…
Over-Commented Block1159 hits · 1140 pts
SeverityFileLineSnippetContext
LOWconftest.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWsetup.py1# Copyright 2018 The Cirq DevelopersCOMMENT
LOW.yamllint.yaml1# Copyright 2025 The Cirq DevelopersCOMMENT
LOW.yamllint.yaml21 line-length:COMMENT
LOWcirq-web/setup.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/widget_test.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/conftest.py1# Copyright 2025 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/widget.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/_version.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/__init__.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/vitest.setup.ts1// Copyright 2025 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/bloch_sphere/__init__.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/bloch_sphere/bloch_sphere_test.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/circuits/circuit.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/circuits/__init__.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/circuits/circuit_test.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/circuits/symbols_test.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/circuits/symbols.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOW…web/cirq_web/e2e/bloch_sphere/bloch_sphere_e2e_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/e2e/circuit/circuit_e2e_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/main.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/main.ts41// ie.COMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/bloch_sphere_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/bloch_sphere.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…eb/cirq_web/src/bloch_sphere/components/sphere_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/components/axes.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/components/sphere.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…b/cirq_web/src/bloch_sphere/components/state_vector.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/components/text.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…-web/cirq_web/src/bloch_sphere/components/axes_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/bloch_sphere/components/scene.ts1/* istanbul ignore file */COMMENT
LOW…-web/cirq_web/src/bloch_sphere/components/meridians.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…-web/cirq_web/src/bloch_sphere/components/text_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…cirq_web/src/bloch_sphere/components/meridians_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…q_web/src/bloch_sphere/components/state_vector_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/main.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/main.ts181// allowing for createGridCircuit to be called in <script> tags,COMMENT
LOWcirq-web/cirq_web/src/circuit/grid_circuit.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/grid_circuit_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOW…web/cirq_web/src/circuit/components/grid_qubit_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/components/types_test.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/components/meshes.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/components/types.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-web/cirq_web/src/circuit/components/grid_qubit.ts1// Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-aqt/setup.py1# Copyright 2018 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_target_gateset.py1# Copyright 2022 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/conftest.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_device_metadata_test.py1# Copyright 2022 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/_version.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_sampler_test.py1# Copyright 2019 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/json_resolver_cache.py1# Copyright 2021 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_device_test.py1# Copyright 2022 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/__init__.py1# Copyright 2019 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_sampler.py1# Copyright 2019 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_device.py1# Copyright 2019 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_target_gateset_test.py1# Copyright 2022 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_simulator_test.py1# Copyright 2019 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/aqt_device_metadata.py1# Copyright 2022 The Cirq DevelopersCOMMENT
LOWcirq-aqt/cirq_aqt/json_test_data/__init__.py1# Copyright 2021 The Cirq DevelopersCOMMENT
1099 more matches not shown…
Cross-File Repetition100 hits · 500 pts
SeverityFileLineSnippetContext
HIGHcirq-aqt/cirq_aqt/aqt_target_gateset.py0list of transformers which should be run after decomposing individual operations.STRING
HIGHcirq-ionq/cirq_ionq/ionq_gateset.py0list of transformers which should be run after decomposing individual operations.STRING
HIGHcirq-ionq/cirq_ionq/ionq_native_target_gateset.py0list of transformers which should be run after decomposing individual operations.STRING
HIGH…re/cirq/contrib/paulistring/clifford_target_gateset.py0list of transformers which should be run after decomposing individual operations.STRING
HIGH…sformers/target_gatesets/compilation_target_gateset.py0list of transformers which should be run after decomposing individual operations.STRING
HIGHcirq-aqt/cirq_aqt/_version.py0define version number here, read it from setup.py automaticallySTRING
HIGHcirq-ionq/cirq_ionq/_version.py0define version number here, read it from setup.py automaticallySTRING
HIGHdev_tools/modules_test_data/mod2/pack2/_version.py0define version number here, read it from setup.py automaticallySTRING
HIGHdev_tools/modules_test_data/mod1/pack1/_version.py0define version number here, read it from setup.py automaticallySTRING
HIGHcirq-pasqal/cirq_pasqal/_version.py0define version number here, read it from setup.py automaticallySTRING
HIGHcirq-core/cirq/circuits/insert_strategy.py0returns a tuple of args to pass to __new__ when unpickling.STRING
HIGHcirq-core/cirq/ops/named_qubit.py0returns a tuple of args to pass to __new__ when unpickling.STRING
HIGHcirq-core/cirq/devices/grid_qubit.py0returns a tuple of args to pass to __new__ when unpickling.STRING
HIGHcirq-core/cirq/devices/line_qubit.py0returns a tuple of args to pass to __new__ when unpickling.STRING
HIGHcirq-google/cirq_google/ops/coupler.py0returns a tuple of args to pass to __new__ when unpickling.STRING
HIGHcirq-core/cirq/experiments/xeb_fitting.py0estimation of fidelity associated with experimental circuit executions.STRING
HIGHcirq-core/cirq/experiments/xeb_sampling.py0estimation of fidelity associated with experimental circuit executions.STRING
HIGHcirq-core/cirq/experiments/fidelity_estimation.py0estimation of fidelity associated with experimental circuit executions.STRING
HIGHcirq-core/cirq/experiments/xeb_simulation.py0estimation of fidelity associated with experimental circuit executions.STRING
HIGHcirq-core/cirq/contrib/quimb/mps_simulator.py0copies the object. args: deep_copy_buffers: true by default, false to reuse the existing buffers. returns: a copy of theSTRING
HIGHcirq-core/cirq/sim/state_vector_simulation_state.py0copies the object. args: deep_copy_buffers: true by default, false to reuse the existing buffers. returns: a copy of theSTRING
HIGHcirq-core/cirq/sim/density_matrix_simulation_state.py0copies the object. args: deep_copy_buffers: true by default, false to reuse the existing buffers. returns: a copy of theSTRING
HIGHcirq-core/cirq/contrib/quimb/mps_simulator.py0samples the density matrix. args: axes: the axes to sample. repetitions: the number of samples to make. seed: the randomSTRING
HIGHcirq-core/cirq/sim/state_vector_simulation_state.py0samples the density matrix. args: axes: the axes to sample. repetitions: the number of samples to make. seed: the randomSTRING
HIGHcirq-core/cirq/sim/density_matrix_simulation_state.py0samples the density matrix. args: axes: the axes to sample. repetitions: the number of samples to make. seed: the randomSTRING
HIGH…irq/transformers/target_gatesets/sqrt_iswap_gateset.py0target gateset used for compiling circuits to sycamore + 1-q rotations + measurement gates.STRING
HIGH…q-core/cirq/transformers/target_gatesets/cz_gateset.py0target gateset used for compiling circuits to sycamore + 1-q rotations + measurement gates.STRING
HIGH…oogle/transformers/target_gatesets/sycamore_gateset.py0target gateset used for compiling circuits to sycamore + 1-q rotations + measurement gates.STRING
HIGHcirq-core/cirq/ops/diagonal_gate.py0a two qubit gate with only diagonal elements. this gate's off-diagonal elements are zero and its on-diagonal elements arSTRING
HIGHcirq-core/cirq/ops/three_qubit_gates.py0a two qubit gate with only diagonal elements. this gate's off-diagonal elements are zero and its on-diagonal elements arSTRING
HIGHcirq-core/cirq/ops/two_qubit_diagonal_gate.py0a two qubit gate with only diagonal elements. this gate's off-diagonal elements are zero and its on-diagonal elements arSTRING
HIGHcirq-core/cirq/qis/quantum_state_representation.py0creates a copy of the object. args: deep_copy_buffers: if true, buffers will also be deep-copied. otherwise the copy wilSTRING
HIGHcirq-core/cirq/sim/simulation_state.py0creates a copy of the object. args: deep_copy_buffers: if true, buffers will also be deep-copied. otherwise the copy wilSTRING
HIGHcirq-core/cirq/sim/simulation_state_base.py0creates a copy of the object. args: deep_copy_buffers: if true, buffers will also be deep-copied. otherwise the copy wilSTRING
HIGHcirq-google/cirq_google/engine/abstract_local_engine.py0returns a list of previously executed quantum programs. args: created_after: retrieve programs that were created after tSTRING
HIGHcirq-google/cirq_google/engine/engine.py0returns a list of previously executed quantum programs. args: created_after: retrieve programs that were created after tSTRING
HIGH…-google/cirq_google/engine/abstract_local_processor.py0returns a list of previously executed quantum programs. args: created_after: retrieve programs that were created after tSTRING
HIGHcirq-google/cirq_google/engine/abstract_local_engine.py0returns the list of jobs that match the specified criteria. all historical jobs can be retrieved using this method and fSTRING
HIGHcirq-google/cirq_google/engine/engine.py0returns the list of jobs that match the specified criteria. all historical jobs can be retrieved using this method and fSTRING
HIGHcirq-google/cirq_google/engine/abstract_engine.py0returns the list of jobs that match the specified criteria. all historical jobs can be retrieved using this method and fSTRING
HIGHcirq-google/cirq_google/engine/abstract_local_engine.py0returns an engineprocessor for a quantum engine processor. args: processor_id: the processor unique identifier. returns:STRING
HIGHcirq-google/cirq_google/engine/abstract_engine.py0returns an engineprocessor for a quantum engine processor. args: processor_id: the processor unique identifier. returns:STRING
HIGHcirq-google/cirq_google/engine/engine.py0returns an engineprocessor for a quantum engine processor. args: processor_id: the processor unique identifier. returns:STRING
HIGH…rq-google/cirq_google/engine/abstract_local_program.py0returns the parent engine object. returns: the program's parent engine.STRING
HIGHcirq-google/cirq_google/engine/abstract_processor.py0returns the parent engine object. returns: the program's parent engine.STRING
HIGHcirq-google/cirq_google/engine/engine_program.py0returns the parent engine object. returns: the program's parent engine.STRING
HIGHcirq-google/cirq_google/engine/engine_processor.py0returns the parent engine object. returns: the program's parent engine.STRING
HIGHcirq-google/cirq_google/engine/abstract_program.py0returns the parent engine object. returns: the program's parent engine.STRING
HIGH…rq-google/cirq_google/engine/abstract_local_program.py0sets (overwriting) the labels for a previously created quantum program. params: labels: the entire set of new program laSTRING
HIGHcirq-google/cirq_google/engine/abstract_program.py0sets (overwriting) the labels for a previously created quantum program. params: labels: the entire set of new program laSTRING
HIGHcirq-google/cirq_google/engine/engine_program.py0sets (overwriting) the labels for a previously created quantum program. params: labels: the entire set of new program laSTRING
HIGH…rq-google/cirq_google/engine/abstract_local_program.py0adds new labels to a previously created quantum program. params: labels: new labels to add to the existing program labelSTRING
HIGHcirq-google/cirq_google/engine/abstract_program.py0adds new labels to a previously created quantum program. params: labels: new labels to add to the existing program labelSTRING
HIGHcirq-google/cirq_google/engine/engine_program.py0adds new labels to a previously created quantum program. params: labels: new labels to add to the existing program labelSTRING
HIGH…rq-google/cirq_google/engine/abstract_local_program.py0removes labels with given keys from the labels of a previously created quantum program. params: label_keys: label keys tSTRING
HIGHcirq-google/cirq_google/engine/abstract_program.py0removes labels with given keys from the labels of a previously created quantum program. params: label_keys: label keys tSTRING
HIGHcirq-google/cirq_google/engine/engine_program.py0removes labels with given keys from the labels of a previously created quantum program. params: label_keys: label keys tSTRING
HIGH…rq-google/cirq_google/engine/abstract_local_program.py0returns the cirq circuit for the quantum engine program. this is only supported if the program was created with the v2 pSTRING
HIGHcirq-google/cirq_google/engine/abstract_program.py0returns the cirq circuit for the quantum engine program. this is only supported if the program was created with the v2 pSTRING
HIGHcirq-google/cirq_google/engine/engine_program.py0returns the cirq circuit for the quantum engine program. this is only supported if the program was created with the v2 pSTRING
40 more matches not shown…
Hallucination Indicators29 hits · 300 pts
SeverityFileLineSnippetContext
CRITICAL…-core/cirq/interop/quirk/cells/input_rotation_cells.py48 f'cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell('CODE
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py425 cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('+=A2', [a, b], [(c, d, e)])STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py426 mapped_cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell(STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py433 cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('+=A2', [a, b], [None])STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py434 mapped_cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('+=A2', [a2, b2], [None])STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py439 cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('+=A2', [a, b], [42])STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py440 mapped_cell = cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('+=A2', [a2, b2], [42])STRING
CRITICAL…core/cirq/interop/quirk/cells/arithmetic_cells_test.py336 cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell(STRING
CRITICALcirq-core/cirq/interop/quirk/cells/arithmetic_cells.py192 f'cirq.interop.quirk.cells.arithmetic_cells.ArithmeticCell('CODE
CRITICALcirq-core/cirq/interop/quirk/cells/control_cells.py40 f'cirq.interop.quirk.cells.control_cells.ControlCell('CODE
CRITICALcirq-core/cirq/interop/quirk/cells/control_cells.py84 f'cirq.interop.quirk.cells.control_cells.ParityControlCell('CODE
CRITICALcirq-core/cirq/interop/quirk/cells/swap_cell_test.py52 cell = cirq.interop.quirk.cells.swap_cell.SwapCell(qubits=[a, b], controls=[c, d])CODE
CRITICALcirq-core/cirq/interop/quirk/cells/swap_cell_test.py53 mapped_cell = cirq.interop.quirk.cells.swap_cell.SwapCell(qubits=[a2, b2], controls=[c2, d2])CODE
CRITICALcirq-core/cirq/interop/quirk/cells/swap_cell_test.py61 cirq.interop.quirk.cells.swap_cell.SwapCell(qubits=[a, b], controls=[c, d])CODE
CRITICALcirq-core/cirq/interop/quirk/cells/swap_cell.py64 f'cirq.interop.quirk.cells.swap_cell.SwapCell('CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py114 cell = cirq.interop.quirk.cells.control_cells.ControlCell(a, [cirq.Y(b) ** 0.5])CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py115 mapped_cell = cirq.interop.quirk.cells.control_cells.ControlCell(a2, [cirq.Y(b2) ** 0.5])CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py123 cell = cirq.interop.quirk.cells.control_cells.ParityControlCell([a, b], [cirq.Y(c) ** 0.5])CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py124 mapped_cell = cirq.interop.quirk.cells.control_cells.ParityControlCell(CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py134 cirq.interop.quirk.cells.control_cells.ControlCell(a, [cirq.Y(b) ** 0.5])CODE
CRITICAL…rq-core/cirq/interop/quirk/cells/control_cells_test.py137 cirq.interop.quirk.cells.control_cells.ParityControlCell([a, b], [cirq.Y(c) ** 0.5])CODE
CRITICAL…/cirq/interop/quirk/cells/input_rotation_cells_test.py151 cell = cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell(STRING
CRITICAL…/cirq/interop/quirk/cells/input_rotation_cells_test.py158 cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell(STRING
CRITICAL…/cirq/interop/quirk/cells/input_rotation_cells_test.py170 cell = cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell(STRING
CRITICAL…/cirq/interop/quirk/cells/input_rotation_cells_test.py177 cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell(STRING
CRITICAL…/cirq/interop/quirk/cells/input_rotation_cells_test.py189 cirq.interop.quirk.cells.input_rotation_cells.InputRotationCell(STRING
CRITICAL…ogle/cirq_google/serialization/op_deserializer_test.py98 p1.value.arg_value.bool_values.values.extend([True, False])CODE
CRITICAL…e/cirq_google/serialization/circuit_serializer_test.py826 op_symbol.xpowgate.exponent.func.args.add().arg_value.float_value = 2.0CODE
CRITICAL…e/cirq_google/serialization/circuit_serializer_test.py827 op_symbol.xpowgate.exponent.func.args.add().symbol = 't'CODE
Self-Referential Comments127 hits · 286 pts
SeverityFileLineSnippetContext
MEDIUMcirq-core/cirq/study/flatten_expressions.py283 # Create a new symbolCOMMENT
MEDIUMcirq-core/cirq/circuits/circuit_test.py5122 # Create a circuit with every operation in a separate momentSTRING
MEDIUMcirq-core/cirq/experiments/xeb_fitting.py118 """This function is applied per cycle_depth in the following groupby aggregation."""STRING
MEDIUMcirq-core/cirq/experiments/z_phase_calibration.py266 # Create a 16x9 rectangle.COMMENT
MEDIUMcirq-core/cirq/contrib/ghz/ghz_2d_test.py159 # Define the graphCOMMENT
MEDIUMcirq-core/cirq/contrib/ghz/ghz_2d_test.py167 # Create the base circuitCOMMENT
MEDIUMcirq-core/cirq/contrib/ghz/ghz_2d_test.py172 # Create the transformed circuitCOMMENT
MEDIUM…ore/cirq/contrib/quantum_volume/quantum_volume_test.py162 # Create a circuit that will require some swaps.COMMENT
MEDIUM…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py596 # Create a new column.COMMENT
MEDIUM…ng/pauli_string_measurement_with_readout_mitigation.py848 # Create a mask for the relevant qubits in the measurement resultsCOMMENT
MEDIUM…core/cirq/transformers/randomized_measurements_test.py24 # Create a 4-qubit circuitCOMMENT
MEDIUM…core/cirq/transformers/randomized_measurements_test.py42 # Create a 4-qubit circuitCOMMENT
MEDIUM…core/cirq/transformers/randomized_measurements_test.py56 # Create a 4-qubit circuitCOMMENT
MEDIUM…rq-core/cirq/transformers/dynamical_decoupling_test.py805 # Create a mock _Grid instance that would lead to an unabsorbed Pauli.STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py260 # Create a sub-circuit with a CleanQubit placeholderCOMMENT
MEDIUM…q-core/cirq/transformers/diagonal_optimization_test.py191 # Create a custom diagonal 4x4 unitary (not a CZPowGate)COMMENT
MEDIUM…q-core/cirq/transformers/diagonal_optimization_test.py308 # Create a sub-circuit with CZ before measurements on both qubitsCOMMENT
MEDIUM…q-core/cirq/transformers/diagonal_optimization_test.py332 # Create a sub-circuit with Z before measurementCOMMENT
MEDIUM…q-core/cirq/transformers/diagonal_optimization_test.py348 # Create a sub-circuit with a tagged Z before measurementCOMMENT
MEDIUM…re/cirq/transformers/routing/route_circuit_cqc_test.py306 # Create a mixed graph with both bidirectional and reverse-only edgesCOMMENT
MEDIUM…re/cirq/transformers/routing/route_circuit_cqc_test.py309 # Create a path: 0<->1->2<-3 (1->2 is forward-only, 3->2 is reverse-only)COMMENT
MEDIUM…re/cirq/transformers/routing/route_circuit_cqc_test.py41 # Create a simple directed graph: q0 -> q1 (one-way only)COMMENT
MEDIUM…re/cirq/transformers/routing/route_circuit_cqc_test.py321 # Create a circuit that requires a swap on the reverse-only edgeCOMMENT
MEDIUM…re/cirq/transformers/routing/route_circuit_cqc_test.py349 # Create a graph: 0 <-> 1 -> 2COMMENT
MEDIUMcirq-core/cirq/work/zeros_sampler_test.py40 # Create a circuit whose measurements are always zeros, and check thatCOMMENT
MEDIUMcirq-core/cirq/ops/parallel_gate.py110 # Create a unitary which corresponds to applying the gateCOMMENT
MEDIUMcirq-core/cirq/sim/density_matrix_utils.py171 # Create a mask which is False for only the slice.COMMENT
MEDIUMcirq-core/cirq/sim/state_vector.py304 # Create a mask which is False for only the slice.STRING
MEDIUMcirq-core/cirq/protocols/kraus_protocol_test.py206 # Create the expected channel and get its Kraus operatorsCOMMENT
MEDIUMdocs/_book.yaml16# This file defines the menu structure for the Cirq sub-site within the largerCOMMENT
MEDIUMdev_tools/bash_scripts_test.py42 # Create a unique temporary directoryCOMMENT
MEDIUM…_google/experimental/noise_models/noise_models_test.py130 # Create the circuit and apply the noise model.COMMENT
MEDIUM…_google/experimental/noise_models/noise_models_test.py184 # Create the circuit and apply the noise model.COMMENT
MEDIUM…_google/experimental/noise_models/noise_models_test.py230 # Create the circuit and apply the noise model.COMMENT
MEDIUM…_google/experimental/noise_models/noise_models_test.py274 # Create the circuit and apply the noise model.COMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py767 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py842 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py917 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1009 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1074 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1149 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1225 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1300 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1375 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1467 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1532 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1607 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1672 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1764 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1839 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py1931 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2007 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2103 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2218 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2331 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2423 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2498 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2573 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2648 # Create a clientCOMMENT
MEDIUM…tum_v1alpha1/services/quantum_engine_service/client.py2713 # Create a clientCOMMENT
67 more matches not shown…
Decorative Section Separators102 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMcirq-core/cirq/circuits/circuit_test.py3695 # 0: ───H───@───────────────────────────────────────@───H───STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3697 # 1: ───────@───H───@───────────────────────@───H───@───────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3699 # 2: ───────────────@───H───@───────@───H───@───────────────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3701 # 3: ───────────────────────@───H───@───────────────────────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3775 # 0: ───H───@───────────────────────────────────────@───H───STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3777 # 1: ───────@───H───@───────────────────────@───H───@───────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3779 # 2: ───────────────@───H───@───────@───H───@───────────────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py3781 # 3: ───────────────────────@───H───@───────────────────────STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py4178 # 1: ───────H───@───@───STRING
MEDIUMcirq-core/cirq/circuits/circuit_test.py4180 # 2: ───────────H───X───STRING
MEDIUM…core/cirq/interop/quirk/cells/arithmetic_cells_test.py1531: ───#2────────────CODE
MEDIUM…core/cirq/interop/quirk/cells/arithmetic_cells_test.py1552: ───#3────────────CODE
MEDIUM…core/cirq/interop/quirk/cells/arithmetic_cells_test.py2201: ───#2─────────────────────CODE
MEDIUM…core/cirq/interop/quirk/cells/arithmetic_cells_test.py2222: ───#3─────────────────────CODE
MEDIUM…core/cirq/interop/quirk/cells/arithmetic_cells_test.py2243: ───#4─────────────────────CODE
MEDIUM…-core/cirq/contrib/quantikz/circuit_to_latex_render.py58# =============================================================================STRING
MEDIUM…-core/cirq/contrib/quantikz/circuit_to_latex_render.py60# =============================================================================STRING
MEDIUM…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py86# =============================================================================STRING
MEDIUM…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py88# =============================================================================STRING
MEDIUM…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py159# =============================================================================STRING
MEDIUM…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py161# =============================================================================STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py1681: ───#2────Y[ignore]───M───────#2───────STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py1702: ───#3────@[ignore]───╫───@───#3───────STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py1723: ───#4────X───────────╫───@───#4───────STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py237 [ 1: ───────#2──────────────────────── ](loops=5)STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py2391: ───#2──────────────────────────────────────────────────STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py249 [ 1: ─────────────────────────────#2─────────────────────────── ](loops=5)STRING
MEDIUM…/cirq/transformers/optimize_for_target_gateset_test.py2511: ───#2───────────────────────────────────────────────────────────────────────────STRING
MEDIUMcirq-core/cirq/transformers/merge_k_qubit_gates_test.py1521: ───┼───────────────────────#2──────────────────────────────────────────@[ignore]───────────────────────#2────────────STRING
MEDIUMcirq-core/cirq/transformers/merge_k_qubit_gates_test.py1542: ───#2──────────────────────────────────────────────────────────────────X───────────[ 2: ───Z─── ][3]───M─────────────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py153_b(1): ─────────────────────┼───×───────#2────┼───×───────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py1781: ───────────H──────────┼───×───────#2────┼───×───────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py1991: ───────────H───┼───×───────#2────┼───×───────┼───×───────#2────┼───×───────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py2230: ───────────H───×───────#2────────×───────×───────────qft───×───────────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py2251: ───────────H───┼───×───#3────────┼───×───┼───×───────#2────┼───×───────STRING
MEDIUM…irq/transformers/qubit_management_transformers_test.py302ancilla_1: ───#2────────────────────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py149 [ 1: ───#2────────────────────────────────────────────────────────────────────── ]CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py156 [ 3: ───#2──────────────────────────────────[ │ ]────────────────────── ]CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py159 [ 4: ───────────────────────────────────────#2────────────────────────────────── ](loops=6)[external]CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1611: ───#2──────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1632: ───#3──────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1653: ───#4──────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1674: ───#5──────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py184 [ 1: ───#2────────────────────────────────────────────────────────────────────────────────────── ]CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py191 [ 3: ───#2──────────────────────────────────────────[ │ ]────────────────────── ]CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py194 [ 4: ───────────────────────────────────────────────#2────────────────────────────────────────── ](loops=6)[externCODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1961: ───#2────────────────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py1982: ───#3────────────────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py2003: ───#4────────────────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py2024: ───#5────────────────────────────────────────────────────────────────────────────────────────────────────────────────CODE
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py7651: ───┼────────────────────────────#2───────────────────────────────────────────────[ │ ]──────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py7682: ───#2────────────────────────────────────────────────────────────────────────────#2──────────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py10491: ───#2────────────────────────────────────────────────────────────────────────────#2───────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py10512: ───#3───────────────────────────────X[ignore]────────────────────────────────────#3───────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py10594: ────────────────────────────────────#2───────────────────────────────────────────@────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py10615: ───H[ignore]────────────────────────#3───────────────────────────────────────────@────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py7331: ───────┼───────────#2───────────────────────────────────────────────────────────@───────Y───────────X───STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py9211: ───H[ignore]───X[ignore]───#2───────────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py9232: ───H[ignore]───────────────#3───────────────────────────────────STRING
MEDIUM…-core/cirq/transformers/transformer_primitives_test.py9581: ───#2───────────────────────────STRING
42 more matches not shown…
Deep Nesting158 hits · 151 pts
SeverityFileLineSnippetContext
LOWcirq-aqt/cirq_aqt/aqt_sampler.py276CODE
LOWcirq-aqt/cirq_aqt/aqt_device.py59CODE
LOWcirq-aqt/cirq_aqt/aqt_device.py119CODE
LOWcirq-ionq/cirq_ionq/ionq_client.py390CODE
LOWcirq-ionq/cirq_ionq/job.py140CODE
LOWcirq-ionq/cirq_ionq/job.py167CODE
LOWcirq-ionq/cirq_ionq/serializer.py296CODE
LOWcirq-core/cirq/circuits/circuit.py1671CODE
LOWcirq-core/cirq/circuits/circuit.py163CODE
LOWcirq-core/cirq/circuits/circuit.py441CODE
LOWcirq-core/cirq/circuits/circuit.py671CODE
LOWcirq-core/cirq/circuits/circuit.py2211CODE
LOWcirq-core/cirq/circuits/circuit.py2253CODE
LOWcirq-core/cirq/circuits/moment.py588CODE
LOWcirq-core/cirq/circuits/moment.py601CODE
LOWcirq-core/cirq/circuits/circuit_test.py3519CODE
LOWcirq-core/cirq/circuits/optimization_pass_test.py63CODE
LOW…core/cirq/experiments/readout_confusion_matrix_test.py54CODE
LOWcirq-core/cirq/experiments/benchmarking/parallel_xeb.py415CODE
LOWcirq-core/cirq/experiments/benchmarking/parallel_xeb.py471CODE
LOWcirq-core/cirq/interop/quirk/url_to_circuit.py245CODE
LOWcirq-core/cirq/interop/quirk/url_to_circuit.py333CODE
LOWcirq-core/cirq/interop/quirk/cells/parse.py114CODE
LOWcirq-core/cirq/interop/quirk/cells/parse.py164CODE
LOWcirq-core/cirq/value/duration.py56CODE
LOWcirq-core/cirq/contrib/ghz/ghz_2d_test.py107CODE
LOWcirq-core/cirq/contrib/quimb/mps_simulator.py385CODE
LOWcirq-core/cirq/contrib/quimb/mps_simulator_test.py30CODE
LOWcirq-core/cirq/contrib/quimb/mps_simulator_test.py55CODE
LOWcirq-core/cirq/contrib/quimb/grid_circuits_test.py69CODE
LOWcirq-core/cirq/contrib/quimb/density_matrix.py79CODE
LOWcirq-core/cirq/contrib/quirk/export_to_quirk.py57CODE
LOWcirq-core/cirq/contrib/acquaintance/gates.py146CODE
LOWcirq-core/cirq/contrib/acquaintance/optimizers.py30CODE
LOWcirq-core/cirq/contrib/acquaintance/permutation.py244CODE
LOW…-core/cirq/contrib/quantikz/circuit_to_latex_render.py61CODE
LOW…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py296CODE
LOW…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py361CODE
LOW…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py465CODE
LOW…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py571CODE
LOWcirq-core/cirq/contrib/routing/device.py50CODE
LOWcirq-core/cirq/contrib/routing/greedy.py259CODE
LOWcirq-core/cirq/contrib/routing/initialization.py34CODE
LOW…ng/pauli_string_measurement_with_readout_mitigation.py242CODE
LOW…ng/pauli_string_measurement_with_readout_mitigation.py412CODE
LOW…ng/pauli_string_measurement_with_readout_mitigation.py763CODE
LOW…ng/pauli_string_measurement_with_readout_mitigation.py972CODE
LOWcirq-core/cirq/contrib/paulistring/clifford_optimize.py23CODE
LOWcirq-core/cirq/contrib/paulistring/clifford_optimize.py96CODE
LOW…uli_string_measurement_with_readout_mitigation_test.py61CODE
LOWcirq-core/cirq/testing/consistent_qasm.py27CODE
LOWcirq-core/cirq/vis/heatmap_test.py279CODE
LOWcirq-core/cirq/transformers/diagonal_optimization.py39CODE
LOWcirq-core/cirq/transformers/eject_phased_paulis.py292CODE
LOWcirq-core/cirq/transformers/measurement_transformers.py68CODE
LOWcirq-core/cirq/transformers/measurement_transformers.py102CODE
LOWcirq-core/cirq/transformers/dynamical_decoupling.py309CODE
LOWcirq-core/cirq/transformers/dynamical_decoupling.py227CODE
LOWcirq-core/cirq/transformers/stratify.py205CODE
LOWcirq-core/cirq/transformers/noise_adding.py71CODE
98 more matches not shown…
AI Structural Patterns129 hits · 84 pts
SeverityFileLineSnippetContext
LOWcirq-aqt/cirq_aqt/aqt_device.py246CODE
LOWcirq-ionq/cirq_ionq/service.py94CODE
LOWcirq-ionq/cirq_ionq/service.py167CODE
LOWcirq-ionq/cirq_ionq/service.py266CODE
LOWcirq-ionq/cirq_ionq/service.py334CODE
LOWcirq-core/cirq/study/resolver.py316CODE
LOWcirq-core/cirq/circuits/circuit.py1239CODE
LOWcirq-core/cirq/circuits/circuit.py1439CODE
LOWcirq-core/cirq/circuits/circuit_operation.py72CODE
LOWcirq-core/cirq/experiments/two_qubit_xeb.py402CODE
LOWcirq-core/cirq/experiments/two_qubit_xeb.py492CODE
LOWcirq-core/cirq/experiments/two_qubit_xeb.py549CODE
LOWcirq-core/cirq/experiments/z_phase_calibration.py39CODE
LOWcirq-core/cirq/experiments/z_phase_calibration.py150CODE
LOWcirq-core/cirq/experiments/qubit_characterizations.py233CODE
LOW…e/cirq/experiments/single_qubit_readout_calibration.py112CODE
LOW…-core/cirq/contrib/quantikz/circuit_to_latex_render.py61CODE
LOW…ore/cirq/contrib/quantikz/circuit_to_latex_quantikz.py207CODE
LOWcirq-core/cirq/contrib/qcircuit/qcircuit_diagram.py66CODE
LOWcirq-core/cirq/testing/sample_circuits.py57CODE
LOWcirq-core/cirq/testing/consistent_protocols.py86CODE
LOWcirq-core/cirq/vis/histogram.py24CODE
LOW…ytical_decompositions/controlled_gate_decomposition.py97CODE
LOWcirq-core/cirq/ops/phased_x_z_gate.py336CODE
LOWcirq-core/cirq/sim/state_vector_simulator.py145CODE
LOWdev_tools/modules.py117CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py818CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py893CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py985CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1125CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1201CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1276CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1351CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1443CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1583CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1740CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1815CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1907CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py1982CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2078CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2191CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2307CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2399CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2474CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2549CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2624CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2764CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2856CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py2931CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py3006CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py3098CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py3173CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py3265CODE
LOW…tum_v1alpha1/services/quantum_engine_service/client.py3357CODE
LOW…alpha1/services/quantum_engine_service/async_client.py378CODE
LOW…alpha1/services/quantum_engine_service/async_client.py453CODE
LOW…alpha1/services/quantum_engine_service/async_client.py547CODE
LOW…alpha1/services/quantum_engine_service/async_client.py691CODE
LOW…alpha1/services/quantum_engine_service/async_client.py767CODE
LOW…alpha1/services/quantum_engine_service/async_client.py842CODE
69 more matches not shown…
Redundant / Tautological Comments25 hits · 39 pts
SeverityFileLineSnippetContext
LOW…-core/cirq/contrib/quantikz/circuit_to_latex_render.py385 # Check if running in a Jupyter-like environment that supports displaySTRING
LOW…ng/pauli_string_measurement_with_readout_mitigation.py296 # Check if input symmetries are commuting with all Pauli strings in the circuitCOMMENT
LOWcirq-core/cirq/vis/density_matrix_test.py132 # Check if the circles are the right size ratio, given the value of the elementCOMMENT
LOW…ransformers/target_gatesets/sqrt_iswap_gateset_test.py133 # Check if unitaries are the sameCOMMENT
LOW…lytical_decompositions/two_qubit_to_sqrt_iswap_test.py230 # Check if they are close and output a helpful messageCOMMENT
LOW…lytical_decompositions/two_qubit_to_sqrt_iswap_test.py268 # Check if unitaries are the sameCOMMENT
LOW…/heuristic_decompositions/two_qubit_gate_tabulation.py452 # Check if any of the product KAK vectors are close to a previouslySTRING
LOW…rq-core/cirq/transformers/routing/route_circuit_cqc.py327 # Check if this is a routing-added SWAP operationCOMMENT
LOW…q-core/cirq/protocols/approximate_equality_protocol.py80 # Check if val defines approximate equality via _approx_eq_. This takesCOMMENT
LOWcirq-core/cirq/protocols/apply_mixture_protocol.py239 # Check if the specialized method is present. (STEP A)COMMENT
LOWcirq-core/cirq/protocols/apply_channel_protocol.py238 # Check if the specialized method is present.COMMENT
LOWcirq-core/cirq/protocols/unitary_protocol.py179 # Check if there's a decomposition.COMMENT
LOWcirq-core/cirq/protocols/inverse_protocol.py100 # Check if object defines an inverse via __pow__.COMMENT
LOWcirq-core/cirq/protocols/qid_shape_protocol.py112 # Check if val is a list of qidsCOMMENT
LOWcirq-core/cirq/protocols/qid_shape_protocol.py171 # Check if val is a list of qidsCOMMENT
LOW…-core/cirq/protocols/has_stabilizer_effect_protocol.py91 # Check if the action of the unitary on each single qubit pauli string leads to a pauli product.COMMENT
LOWcirq-google/cirq_google/line/placement/anneal_test.py349 # Check if every edge is normalizedCOMMENT
LOWcirq-google/cirq_google/line/placement/anneal_test.py353 # Check if every edge is validCOMMENT
LOWcirq-google/cirq_google/line/placement/anneal_test.py357 # Check if every edge is presentCOMMENT
LOWcirq-google/cirq_google/line/placement/anneal_test.py365 # Check if every node in the sequences appears exactly onceCOMMENT
LOWexamples/bernstein_vazirani.py78 # Check if we actually found the secret value.COMMENT
LOWexamples/grover.py111 # Check if we actually found the secret value.COMMENT
LOWexamples/hidden_shift_algorithm.py161 # Check if we actually found the secret value.COMMENT
LOWexamples/qaoa.py122 # Print the resultsCOMMENT
LOWexamples/hhl.py463 # Set C to be the smallest eigenvalue that can be represented by theCOMMENT
Cross-Language Confusion7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHcirq-core/cirq/_compat.py247 return a.equals(b)CODE
HIGHcirq-core/cirq/experiments/t1_decay_experiment.py196 return self.data.equals(other.data)CODE
HIGHcirq-core/cirq/experiments/t2_decay_experiment.py444 return self._expectation_pauli_x.equals(CODE
HIGHcirq-core/cirq/experiments/t2_decay_experiment.py446 ) and self._expectation_pauli_y.equals(other._expectation_pauli_y)CODE
HIGHcirq-core/cirq/experiments/t2_decay_experiment_test.py302 assert results.expectation_pauli_x.equals(expected)CODE
HIGHcirq-core/cirq/contrib/qasm_import/_parser_test.py315 if (a[0]==1 && a[1]==0) cx q[0],q[1];CODE
HIGH…core/cirq/ops/classically_controlled_operation_test.py296if (m_a==0 && m_b==0) x q[1];CODE
Excessive Try-Catch Wrapping20 hits · 20 pts
SeverityFileLineSnippetContext
LOWcirq-core/cirq/interop/quirk/cells/parse.py326 except Exception as ex:CODE
LOW…-core/cirq/contrib/quantikz/circuit_to_latex_render.py354 except Exception as e_ppm_other: # pragma: no coverSTRING
LOW…-core/cirq/contrib/quantikz/circuit_to_latex_render.py402 except Exception as e_disp:STRING
MEDIUM…-core/cirq/contrib/quantikz/circuit_to_latex_render.py403 print(f"Error displaying PNG in Jupyter: {e_disp}")STRING
LOWcirq-core/cirq/contrib/graph_device/graph_device.py176 except Exception as error:CODE
LOWcirq-core/cirq/testing/equivalent_repr_eval.py53 except Exception as ex:CODE
LOWcirq-core/cirq/testing/equivalent_repr_eval.py90 except Exception:CODE
LOWcirq-core/cirq/testing/consistent_qasm.py90 except Exception as ex:STRING
LOWcirq-core/cirq/work/collector.py174 except Exception as error:CODE
LOWcirq-core/cirq/protocols/json_serialization_test.py661 except Exception as ex: # pragma: no coverCODE
LOWcirq-core/cirq/protocols/json_serialization_test.py666 except Exception as ex: # pragma: no coverCODE
LOWdev_tools/check.py96 except Exception as ex:CODE
LOWdev_tools/snippets_test.py395 except Exception as ex:CODE
MEDIUM…-google/cirq_google/cloud/quantum_v1alpha1/__init__.py139def _get_version(dependency_name):CODE
LOW…-google/cirq_google/cloud/quantum_v1alpha1/__init__.py144 except Exception:CODE
LOW…-google/cirq_google/cloud/quantum_v1alpha1/__init__.py170 except Exception:CODE
LOWcirq-google/cirq_google/engine/simulated_local_job.py141 except Exception as e:CODE
LOWcirq-google/cirq_google/engine/qcs_notebook.py93 except Exception as exc:CODE
LOWcirq-google/cirq_google/engine/qcs_notebook.py104 except Exception as exc:CODE
LOWcirq-google/cirq_google/engine/qcs_notebook.py178 except Exception as exc:CODE
AI Slop Vocabulary9 hits · 17 pts
SeverityFileLineSnippetContext
LOWcirq-core/cirq/_compat_test.py904 # the default implementation is from the abstract class, which is just passCOMMENT
MEDIUMcirq-core/cirq/circuits/moment.py219 # Use private variables to facilitate a quick copy.COMMENT
MEDIUMcirq-core/cirq/circuits/moment.py253 # Use private variables to facilitate a quick copy.COMMENT
MEDIUM…ore/cirq/experiments/benchmarking/parallel_xeb_test.py334 fids.pop() # discard smallest to make the test robust to randomnessCODE
LOWcirq-core/cirq/ops/common_channels.py579 # just return first two kraus ops, we don't care aboutSTRING
LOWcirq-core/cirq/ops/common_channels.py946 # just return identity and z termSTRING
MEDIUMcirq-core/cirq/ops/linear_combinations_test.py1284 # expected_pauli_sum. This is to make the unit test more robust should Sympy change itsCOMMENT
LOWcirq-core/cirq/qis/clifford_tableau_test.py77 # Note: the stabilizers are not unique for one state. We just use the oneCOMMENT
LOWcirq-core/cirq/qis/clifford_tableau_test.py106 # We just use the one produced by the tableau algorithm.COMMENT
Verbosity Indicators7 hits · 15 pts
SeverityFileLineSnippetContext
LOW…rs/analytical_decompositions/clifford_decomposition.py160 # Step 2: Eliminate the elements in A By CNOT and phase gate (i-th row)COMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py169 # Step 3: Eliminate the elements in D By CNOT and phase gate (i-th row)COMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py180 # Step 4: Correct the phase of tableauCOMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py184 # Step 5: invert the operations by reversing the order: (AB)^{+} = B^{+} A^{+}.COMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py177 # Step 1: find alphaCOMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py207 # Step 2: find xi and etaCOMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py216 # Step 3: synthesize output circuitCOMMENT
Structural Annotation Overuse7 hits · 15 pts
SeverityFileLineSnippetContext
LOW…rs/analytical_decompositions/clifford_decomposition.py160 # Step 2: Eliminate the elements in A By CNOT and phase gate (i-th row)COMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py169 # Step 3: Eliminate the elements in D By CNOT and phase gate (i-th row)COMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py180 # Step 4: Correct the phase of tableauCOMMENT
LOW…rs/analytical_decompositions/clifford_decomposition.py184 # Step 5: invert the operations by reversing the order: (AB)^{+} = B^{+} A^{+}.COMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py177 # Step 1: find alphaCOMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py207 # Step 2: find xi and etaCOMMENT
LOW…ansformers/analytical_decompositions/cphase_to_fsim.py216 # Step 3: synthesize output circuitCOMMENT
Overly Generic Function Names10 hits · 10 pts
SeverityFileLineSnippetContext
LOWcirq-core/cirq/value/abc_alt_test.py28 def my_method(self) -> str:CODE
LOWcirq-core/cirq/value/abc_alt_test.py41 def my_method(self, arg, kw=99):CODE
LOWcirq-core/cirq/value/abc_alt_test.py53 def my_method(self, arg, kw=99):CODE
LOWcirq-core/cirq/value/abc_alt_test.py65 def my_method(self, arg, kw=99):CODE
LOWcirq-core/cirq/value/abc_alt_test.py87 def my_method(self, arg, kw=99) -> None:CODE
LOWcirq-core/cirq/value/abc_alt_test.py99 def my_method(self, arg, kw=99) -> None:CODE
LOWcirq-core/cirq/value/abc_alt_test.py117 def my_method(self, arg, kw=99):CODE
LOWcirq-core/cirq/value/abc_alt_test.py129 def my_method(self):CODE
LOWcirq-core/cirq/value/abc_alt_test.py158 def my_method(self, arg, kw=99) -> str:CODE
LOWcirq-core/cirq/value/abc_alt_test.py178 def my_method(self, arg, kw=99) -> str:CODE
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippetContext
LOWcirq-core/cirq/protocols/decompose_protocol_test.py483 result = cirq.decompose_once(op, default='placeholder')CODE
LOWcirq-core/cirq/protocols/decompose_protocol_test.py486 assert result == 'placeholder'CODE
LOWcirq-core/cirq/protocols/decompose_protocol_test.py497 result = cirq.decompose_once(op, default='placeholder')CODE
LOWcirq-core/cirq/protocols/decompose_protocol_test.py500 assert result == 'placeholder'CODE
LOWdocs/google/specification.md41PROJECT_ID = "placeholder"CODE
LOWdocs/google/engine.md75'placeholder'CODE
LOWdocs/google/calibration.md32'placeholder'CODE
LOWdev_tools/snippets_test.py527lorem ipsumCODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWdev_tools/build-protos.sh20# Usage:COMMENT
LOWdev_tools/packaging/verify-published-package.sh28# Usage:COMMENT
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWcirq-core/cirq/contrib/acquaintance/permutation.py230def update_mapping(mapping: dict[ops.Qid, LogicalIndex], operations: cirq.OP_TREE) -> None:CODE
LOWcirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py154 def update_sum(self, t, u, delta=0, alpha=0) -> None:CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…/cirq_google/experimental/noise_models/noise_models.py188 # TODO: implement per-gate amplitude damping noise.COMMENT