Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce insertion and thermal noise models #4664

Closed

Conversation

95-martin-orion
Copy link
Collaborator

This PR is part of #4640. It adds two noise models to Cirq:

  • InsertionNoiseModel injects noise before or after certain gates based on a user-provided map.
  • ThermalNoiseModel adds noise which simulates thermalization of a qubit - i.e. transitions from |1) to |0) or vice versa due to environmental noise.

Additionally, it packages a bundle of utility objects and methods for noise generation in noise_utils.py, notably including:

  • OpIdentifier: a (type, qubits) tuple for matching against gates to apply noise
  • PHYSICAL_GATE_TAG: a string tag to mark "real" gates in a circuit, so that noise models applied in sequence can identify which gates should have noise added to them.

None of these changes are exposed at the top level of Cirq, as their main purpose is to support the "approximate hardware noise in Cirq" use case.

@95-martin-orion 95-martin-orion requested review from cduck, vtomole and a team as code owners November 11, 2021 18:19
@google-cla google-cla bot added the cla: yes Makes googlebot stop complaining. label Nov 11, 2021
@CirqBot CirqBot added the size: XL lines changed >1000 label Nov 11, 2021
@MichaelBroughton MichaelBroughton self-assigned this Nov 11, 2021
@95-martin-orion 95-martin-orion marked this pull request as draft November 11, 2021 21:24
@95-martin-orion
Copy link
Collaborator Author

Review is on hold for this PR - it will be split into smaller components at the request of reviewers.

@95-martin-orion
Copy link
Collaborator Author

This PR has been split into #4671, #4672, and #4673.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining. size: XL lines changed >1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants