@@ -22,44 +22,51 @@ ABCs.
2222 - Abstract Properties
2323 - Abstract Methods
2424 - Mixin Methods
25- * - :class: `.Sampler `
25+ * - :class: `.Scoped `
26+ -
2627 -
28+ - :meth: `~.Scoped.close `
29+ - :meth: `~.Scoped.__enter__ `, :meth: `~.Scoped.__exit__ `
30+ * - :class: `.Sampler `
31+ - :class: `.Scoped `
2732 - :attr: `~.Sampler.parameters `, :attr: `~.Sampler.properties `
2833 - at least one of
2934 :meth: `~.Sampler.sample `, :meth: `~.Sampler.sample_ising `, :meth: `~.Sampler.sample_qubo `
30- - :meth: `~.Sampler.sample `, :meth: `~.Sampler.sample_ising `, :meth: `~.Sampler.sample_qubo `
35+ - :meth: `~.Sampler.sample `, :meth: `~.Sampler.sample_ising `, :meth: `~.Sampler.sample_qubo `,
36+ :meth: `~.Sampler.close `
3137 * - :class: `.Structured `
3238 -
3339 - :attr: `~.Structured.nodelist `, :attr: `~.Structured.edgelist `
3440 -
3541 - :attr: `~.Structured.structure `, :attr: `~.Structured.adjacency `, :meth: `~.Structured.to_networkx_graph `
3642 * - :class: `.Composite `
37- -
43+ - :class: ` .Scoped `
3844 - :attr: `~.Composite.children `
3945 -
40- - :attr: `~.Composite.child `
46+ - :attr: `~.Composite.child `, :meth: ` ~.Composite.close `
4147 * - :class: `.ComposedSampler `
4248 - :class: `.Sampler `, :class: `.Composite `
4349 - :attr: `~.Sampler.parameters `, :attr: `~.Sampler.properties `, :attr: `~.Composite.children `
4450 - at least one of
4551 :meth: `~.Sampler.sample `, :meth: `~.Sampler.sample_ising `, :meth: `~.Sampler.sample_qubo `
4652 - :meth: `~.Sampler.sample `, :meth: `~.Sampler.sample_ising `, :meth: `~.Sampler.sample_qubo `,
47- :attr: `~.Composite.child `
53+ :attr: `~.Composite.child `, :meth: ` ~.Composite.close `
4854 * - :class: `.Initialized `
4955 -
5056 -
5157 -
5258 - :attr: `~.Initialized.parse_initial_states `
5359 * - :class: `.PolySampler `
54- -
60+ - :class: ` .Scoped `
5561 - :attr: `~.PolySampler.parameters `, :attr: `~.PolySampler.properties `
5662 - :meth: `~.PolySampler.sample_poly `
57- - :meth: `~.PolySampler.sample_hising `, :meth: `~.PolySampler.sample_hubo `
63+ - :meth: `~.PolySampler.sample_hising `, :meth: `~.PolySampler.sample_hubo `, :meth: ` ~.PolySampler.close `
5864 * - :class: `.ComposedPolySampler `
5965 - :class: `.PolySampler `, :class: `.Composite `
6066 - :attr: `~.PolySampler.parameters `, :attr: `~.PolySampler.properties `, :attr: `~.Composite.children `
6167 - :meth: `~.Sampler.sample_poly `
62- - :meth: `~.Sampler.sample_hising `, :meth: `~.Sampler.sample_hubo `, :attr: `~.Composite.child `
68+ - :meth: `~.Sampler.sample_hising `, :meth: `~.Sampler.sample_hubo `, :attr: `~.Composite.child `,
69+ :meth: `~.PolySampler.close `
6370
6471The table shows, for example, that the :class: `.Sampler ` class requires that you implement
6572the :attr: `~.Sampler.parameters ` and :attr: `~.Sampler.properties ` properties and at least
0 commit comments