Skip to content

2025-T3: Optimize circuit serialization

Open
No due date
Last updated May 14, 2025
36% complete

JSON serialization is slow and the output can be very bulky.

  • Determine if it is worthwhile to switch to a faster third-party JSON library (helps with speed, but not size).
  • Explore the use of protobuf, and in particular, determine if proto size limits are sufficient for the upcoming large circuits or if a different format is needed.
  • If the proto format is good, implement protobuf serialization for an essential subset of JSON-serializable gates and encode the rest as proto-wrapped JSON.

List view

  • Improve Serialization performance in Cirq

    good first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.
    kind/taskA task that's part of a larger effort
    no QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.
    status/needs-agreed-designWe want to do this, but it needs an agreed upon design before implementation
    triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on
    Status: Open.
    #6110 In quantumlib/Cirq;
    · tanujkhattar opened on May 29, 2023
  • JSON serialization: namespaces for cirq_type

    good part-time projectA meaty non-urgent issue with a substantial amount of work to be done.
    kind/healthFor CI/testing/release process/refactoring/technical debt items
    no QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.
    priority/p2Next release should contain it
    triage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on
    Status: Open.
    #4377 In quantumlib/Cirq;
    · mpharrigan opened on Aug 2, 2021
  • Status: Open.
    #4321 In quantumlib/Cirq;
    · mpharrigan opened on Jul 14, 2021
  • Status: Open.
    #3846 In quantumlib/Cirq;
    · jarthurgross opened on Feb 23, 2021
  • Status: Open.
    #6538 In quantumlib/Cirq;
    · nikita-astronaut opened on Apr 1, 2024
  • Status: Open.
    #2677 In quantumlib/Cirq;
    · MichaelBroughton opened on Jan 14, 2020
  • Status: Open.
    #5216 In quantumlib/Cirq;
    · Cynocracy opened on Apr 7, 2022