Skip to content

Commit f7b8b84

Browse files
committed
fixing spelling
Signed-off-by: Sachin Pisal <[email protected]>
1 parent d3bb565 commit f7b8b84

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

runtime/cudaq/dynamics/operators.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class operator_sum {
7070
/// that is, the dimension of each degree of freedom
7171
/// that the operator acts on. Example for two, 2-level
7272
/// degrees of freedom: `{0:2, 1:2}`.
73-
/// @arg `parameters` : A map of the paramter names to their concrete, complex
74-
/// values.
73+
/// @arg `parameters` : A map of the parameter names to their concrete,
74+
/// complex values.
7575
complex_matrix
7676
to_matrix(const std::map<int, int> &dimensions,
7777
const std::map<std::string, double> &params = {}) const;
@@ -107,7 +107,7 @@ class operator_sum {
107107
/// addition is commutative, as is the product of two operators if they
108108
/// act on different degrees of freedom.
109109
/// The equality comparison does *not* take commutation relations into
110-
/// account, and does not try to reorder terms blockwise; it may hence
110+
/// account, and does not try to reorder terms block-wise; it may hence
111111
/// evaluate to False, even if two operators in reality are the same.
112112
/// If the equality evaluates to True, on the other hand, the operators
113113
/// are guaranteed to represent the same transformation for all arguments.
@@ -168,7 +168,7 @@ class product_operator : public operator_sum {
168168
/// addition is commutative, as is the product of two operators if they
169169
/// act on different degrees of freedom.
170170
/// The equality comparison does *not* take commutation relations into
171-
/// account, and does not try to reorder terms blockwise; it may hence
171+
/// account, and does not try to reorder terms block-wise; it may hence
172172
/// evaluate to False, even if two operators in reality are the same.
173173
/// If the equality evaluates to True, on the other hand, the operators
174174
/// are guaranteed to represent the same transformation for all arguments.
@@ -185,8 +185,8 @@ class product_operator : public operator_sum {
185185
/// that is, the dimension of each degree of freedom
186186
/// that the operator acts on. Example for two, 2-level
187187
/// degrees of freedom: `{0:2, 1:2}`.
188-
/// @arg `parameters` : A map of the paramter names to their concrete, complex
189-
/// values.
188+
/// @arg `parameters` : A map of the parameter names to their concrete,
189+
/// complex values.
190190
complex_matrix
191191
to_matrix(const std::map<int, int> dimensions,
192192
const std::map<std::string, std::complex<double>> parameters) const;
@@ -205,7 +205,7 @@ class product_operator : public operator_sum {
205205
template <typename TEval>
206206
TEval _evaluate(operator_arithmetics<TEval> &arithmetics) const;
207207

208-
/// @brief A map of the paramter names to their concrete, complex values.
208+
/// @brief A map of the parameter names to their concrete, complex values.
209209
std::map<std::string, std::complex<double>> parameters;
210210

211211
const std::vector<std::variant<scalar_operator, elementary_operator>> &
@@ -343,7 +343,7 @@ class elementary_operator : public product_operator {
343343
/// @brief The degrees of freedom that the operator acts on in canonical
344344
/// order.
345345
std::vector<int> degrees;
346-
/// @brief A map of the paramter names to their concrete, complex values.
346+
/// @brief A map of the parameter names to their concrete, complex values.
347347
/// This will be enabled once we can handle generalized callback function
348348
/// arguments.
349349
/// @FIXME: Not needed until generalizing the function arguments.
@@ -439,7 +439,7 @@ class scalar_operator : public product_operator {
439439
std::vector<scalar_operator> _operators_to_compose;
440440

441441
/// NOTE: We should revisit these constructors and remove any that have
442-
/// become unecessary as the implementation improves.
442+
/// become unnecessary as the implementation improves.
443443
scalar_operator() = default;
444444
// Copy constructor.
445445
scalar_operator(const scalar_operator &other);

0 commit comments

Comments
 (0)