Skip to content

Commit

Permalink
Fix linters.
Browse files Browse the repository at this point in the history
  • Loading branch information
rchilaka-amzn committed Oct 30, 2024
1 parent 3d82bae commit 329cad9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions src/braket/ir/jaqcd/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@

from braket.ir.gate_model_shared.results import ( # noqa: F401
AdjointGradient,
Amplitude,
DensityMatrix,
Expectation,
Probability,
Sample,
Variance,
StateVector,
DensityMatrix,
Amplitude,
Probability,
Variance,
)
22 changes: 11 additions & 11 deletions src/braket/ir/jaqcd/shared_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,26 @@
# language governing permissions and limitations under the License.

from braket.ir.gate_model_shared.shared_models import ( # noqa: F401
SingleTarget,
Angle,
CompilerDirective,
DampingProbability,
DampingSingleProbability,
DoubleControl,
DoubleTarget,
MultiControl,
MultiProbability,
MultiState,
MultiTarget,
Observable,
OptionalMultiParameter,
OptionalMultiTarget,
OptionalNestedMultiTarget,
OptionalMultiParameter,
MultiControl,
DoubleControl,
SingleControl,
Angle,
SingleProbability,
SingleProbability_34,
SingleProbability_1516,
MultiProbability,
DampingProbability,
DampingSingleProbability,
SingleTarget,
TripleProbability,
TwoDimensionalMatrix,
TwoDimensionalMatrixList,
Observable,
MultiState,
CompilerDirective,
)
3 changes: 2 additions & 1 deletion src/braket/ir/openqasm/program_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Program(BraketSchemaBase):
Examples:
>>> Program(source='OPENQASM 3.0; cx $0, $1')
>>> Program(source='OPENQASM 3.0; input float alpha; qubit[2] q; bit[2] c; rx(alpha) q[0]; h q[0]; cx q[0], q[1]; c = measure q;', inputs={"alpha": 0.0})
>>> Program(source='OPENQASM 3.0; input float alpha; qubit[2] q; bit[2] c; \
rx(alpha) q[0]; h q[0]; cx q[0], q[1]; c = measure q;', inputs={"alpha": 0.0})
"""

_PROGRAM_HEADER = BraketSchemaHeader(name="braket.ir.openqasm.program", version="1")
Expand Down

0 comments on commit 329cad9

Please sign in to comment.