Results 13 issues of David McKay

**Describe the bug** When running a long script (hrs) I get fairly regularly this warning `ResourceWarning: Enable tracemalloc to get the object allocation traceback sys:1: ResourceWarning: unclosed ` and this...

bug

### Summary Please describe what this PR changes as concisely as possible. Link to the issue(s) that this addresses, if any. ### Details and comments Some details that should be...

### Summary Add sampler option ### Details and comments Some details that should be in this section include: - Why this change was necessary - What alternative solutions were considered...