diff --git a/src/braket/ir/jaqcd/results.py b/src/braket/ir/jaqcd/results.py index 0c5c703..9da5b79 100644 --- a/src/braket/ir/jaqcd/results.py +++ b/src/braket/ir/jaqcd/results.py @@ -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, ) diff --git a/src/braket/ir/jaqcd/shared_models.py b/src/braket/ir/jaqcd/shared_models.py index dd902f2..744f6ad 100644 --- a/src/braket/ir/jaqcd/shared_models.py +++ b/src/braket/ir/jaqcd/shared_models.py @@ -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, ) diff --git a/src/braket/ir/openqasm/program_v1.py b/src/braket/ir/openqasm/program_v1.py index 38ba505..7c38bae 100644 --- a/src/braket/ir/openqasm/program_v1.py +++ b/src/braket/ir/openqasm/program_v1.py @@ -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")