Skip to content

Fix failing OTOC tutorial - #499

Draft
mhucka wants to merge 1 commit into
quantumlib:mainfrom
mhucka:fix-otoc-tutorial
Draft

mhucka wants to merge 1 commit into
quantumlib:mainfrom
mhucka:fix-otoc-tutorial

Conversation

@mhucka

@mhucka mhucka commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

In Cirq up to version 1.3.x, there used to be a `PhasedFSimEngineSimulator class. It was used in the OTOC example tutorial at https://quantumai.google/cirq/experiments/otoc/otoc_example. The class no longer exists in Cirq 1.4+, and the tutorial fails to run.

This PR updates the tutorial to avoid the underlying error.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Replace removed cirq_google calibration and compilation APIs in
docs/otoc/otoc_example.ipynb:

- Replace cg.PhasedFSimEngineSimulator and cg.Bristlecone with a
  cirq.Sampler wrapper around cirq.Simulator that applies coherent
  Gaussian PhasedFSimGate drift per qubit pair.
- Remove deprecated gate_set_name argument from cg.get_engine_sampler.
- Replace cg.optimized_for_sycamore with
  cirq.optimize_for_target_gateset(..., SqrtIswapTargetGateset()).
- Re-execute the notebook and refresh the output figures.
@mhucka
mhucka force-pushed the fix-otoc-tutorial branch from 0a4c728 to 680e399 Compare October 20, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant