Improve speed of selected Cirq transformers

Open
#7,797 3 comments 1 reaction 1 assignee View on GitHub

Maintainers usually reply within 1 day

@pavoljuhas is already working on this.

Since Dec 8, 2025.

Assessment

This issue has not been assessed yet.

Description

area/performance good part-time project kind/task priority/before-1.8 triage/accepted

Summarize the task

The following transformers would benefit from performance optimization for larger-size circuits:

  • cirq.transformers.gauge_compiling.CZGaugeTransformer
    (checked as fixed, because it takes less than 10% of overall duration per timing below)
  • cirq.merge_single_qubit_moments_to_phxz

Acceptance criteria – when will the task be considered done?

Each of these transformers is covered by pytest-benchmark and has a PR with significant performance improvement.

Resources

  • cirq_dynamical_decoupling_timing.py.txt - timing script for steps in the Colab analysis workflow to be optimized.
    Equivalent to the dynamical_decoupling_perf.py::test_dynamical_decoupling_sweep and
    dynamical_decoupling_perf.py::test_dynamical_decoupling_batch benchmarks, but with durations of each step

Mirroring b/452757715

Dominant language
Python
Stars
5.1k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
48

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quantumlib/Cirq

All issues in quantumlib/Cirq

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.