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

Fix the leaking noise objects #89

Merged
merged 2 commits into from
Aug 3, 2021
Merged

Fix the leaking noise objects #89

merged 2 commits into from
Aug 3, 2021

Commits on Aug 1, 2021

  1. Fix the leaking noise objects

    A list of noise objects defined by the user is passed to the function. However, when adding T1 and T2 noise, the generated objects were added directly to the list. This changes the `noise_list` defined by the user and is a problem if the same `Processor` instance is used to perform more than one simulation. The T1,T2 noise objects from the previous run will accumulate in the `noise_list`. Therefore, we copy the list before add T1 T2 noise.
    BoxiLi committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    9533b8d View commit details
    Browse the repository at this point in the history
  2. add test

    BoxiLi committed Aug 1, 2021
    Configuration menu
    Copy the full SHA
    4b88585 View commit details
    Browse the repository at this point in the history