Skip to content

Commit 5013fe2

Browse files
authored
Minor docs correction for SymbolicPulse library (#10161)
* Correct doc string for Sawtooth,Triangle, Cos, Sin * Added a few missing \
1 parent 716b648 commit 5013fe2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qiskit/pulse/library/symbolic_pulses.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1450,7 +1450,7 @@ def Sin(
14501450
14511451
.. math::
14521452
1453-
f(x) &= \\text{A}\\sin\\left(2\\pi\text{freq}x+\\text{phase}\\right) , 0 <= x < duration
1453+
f(x) = \\text{A}\\sin\\left(2\\pi\\text{freq}x+\\text{phase}\\right) , 0 <= x < duration
14541454
14551455
where :math:`\\text{A} = \\text{amp} \\times\\exp\\left(i\\times\\text{angle}\\right)`.
14561456
@@ -1517,7 +1517,7 @@ def Cos(
15171517
15181518
.. math::
15191519
1520-
f(x) &= \\text{A}\\cos\\left(2\\pi\text{freq}x+\\text{phase}\\right) , 0 <= x < duration
1520+
f(x) = \\text{A}\\cos\\left(2\\pi\\text{freq}x+\\text{phase}\\right) , 0 <= x < duration
15211521
15221522
where :math:`\\text{A} = \\text{amp} \\times\\exp\\left(i\\times\\text{angle}\\right)`.
15231523
@@ -1584,7 +1584,7 @@ def Sawtooth(
15841584
15851585
.. math::
15861586
1587-
f(x) &= 2\\text{A}\\left[g\\left(x\\right)-
1587+
f(x) = 2\\text{A}\\left[g\\left(x\\right)-
15881588
\\lfloor g\\left(x\\right)+\\frac{1}{2}\\rfloor\\right]
15891589
15901590
where :math:`\\text{A} = \\text{amp} \\times\\exp\\left(i\\times\\text{angle}\\right)`,
@@ -1655,7 +1655,7 @@ def Triangle(
16551655
16561656
.. math::
16571657
1658-
f(x) &= \\text{A}\\left[\\text{sawtooth}\\left(x\\right)right] , 0 <= x < duration
1658+
f(x) = \\text{A}\\left[\\text{sawtooth}\\left(x\\right)\\right] , 0 <= x < duration
16591659
16601660
where :math:`\\text{A} = \\text{amp} \\times\\exp\\left(i\\times\\text{angle}\\right)`,
16611661
and :math:`\\text{sawtooth}\\left(x\\right)` is a sawtooth wave with the same frequency

0 commit comments

Comments
 (0)