Skip to content

OTOC example tutorial fails to run #466

Description

@mhucka

Describe the issue

The tutorial notebook at https://quantumai.google/cirq/experiments/otoc/otoc_example fails to run in Cirq after Cirq 1.3. This started happening after we updated the Cirq version dependency in ReCirq because the class PhasedFSimEngineSimulator was removed by Cirq PR #6442 and does not exist in Cirq 1.4+.

How can the issue be reproduced?

Attempting to run the tutorial in Colab demonstrates the failure. The failing code is

processor_id = ""
use_noisy_simulator = use_noisy_simulator or processor_id == "" 
if use_noisy_simulator:
    print("Using a noisy simulator.")
    sampler = cg.PhasedFSimEngineSimulator.create_with_random_gaussian_sqrt_iswap(
        mean=cg.SQRT_ISWAP_INV_PARAMETERS,
        sigma=cg.PhasedFSimCharacterization(
            theta=0.01, zeta=0.10, chi=0.01, gamma=0.10, phi=0.02
        ),
    )
    device = cg.Bristlecone
else:
    sampler = cg.get_engine_sampler(processor_id, gate_set_name="sqrt_iswap")
    device = cg.get_engine_device(processor_id=processor_id)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions