Skip to content

Fix example snippet in docs/google/calibration.md #7910

@pavoljuhas

Description

@pavoljuhas

Describe the issue

Problem: Whilst reviewing #7803 I found that the snippet in calibration.md uses non-existing Engine.get_job method. The method was removed in #2720.

# If you know the job-id, you can retrieve the calibration that the job used.
job = engine.get_job("projects/" + PROJECT_ID
+ "/programs/"+PROGRAM_ID
+ "/jobs/" + JOB_ID)

Desired Solution: Replace with current API for the same thing or delete altogether. It is better to have no example than a broken one.

Tell us the version of Cirq where this happens

1.7.0.dev at 912a76e

Metadata

Metadata

Assignees

Labels

kind/healthFor CI/testing/release process/refactoring/technical debt items

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions