Skip to content

Commit

Permalink
Fix LinearAncillaComposite docstring (args indent)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed Dec 4, 2024
1 parent 3426bdc commit 6fd0b55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dwave/system/composites/linear_ancilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class LinearAncillaComposite(dimod.ComposedSampler, dimod.Structured):
large flux-bias offset.
Args:
child_sampler (:class:`dimod.Sampler`):
A dimod sampler, such as a :class:`~dwave.system.samplers.DWaveSampler()`,
that has flux bias controls.
child_sampler (:class:`dimod.Sampler`):
A dimod sampler, such as a :class:`~dwave.system.samplers.DWaveSampler()`,
that has flux bias controls.
Examples:
This example submits a two-qubit problem consisting of linear biases with opposed signs
Expand All @@ -52,7 +52,6 @@ class LinearAncillaComposite(dimod.ComposedSampler, dimod.Structured):
>>> sampleset = sampler.sample_ising({0:1, 1:-1}, {(0, 1): 1}, fast_anneal=True) # doctest: +SKIP
>>> sampleset.first.energy # doctest: +SKIP
-3
"""

def __init__(
Expand Down

0 comments on commit 6fd0b55

Please sign in to comment.