*
Symbol of State.
Overloads
| Name | Description |
|---|---|
(const State lhs * const real rhs) -> State | Multiplies a quantum state by a constant coefficient. |
(const State lhs * const integer rhs) -> State | Multiplies a quantum state by a constant coefficient. |
(const State lhs * const bool rhs) -> State | Multiplies a quantum state by a constant coefficient. |
(const State lhs * const complex rhs) -> State | Multiplies a quantum state by a constant coefficient. |
(const State lhs * const real rhs) -> State
Multiplies a quantum state by a constant coefficient.
Returns a new quantum state resulting from the multiplication of the given state by the coefficient.
Parameters
- lhs: Left-hand side value.
- rhs: The coefficient to multiply the state by.
(const State lhs * const integer rhs) -> State
Multiplies a quantum state by a constant coefficient.
Returns a new quantum state resulting from the multiplication of the given state by the coefficient.
Parameters
- lhs: Left-hand side value.
- rhs: The coefficient to multiply the state by.
(const State lhs * const bool rhs) -> State
Multiplies a quantum state by a constant coefficient.
Returns a new quantum state resulting from the multiplication of the given state by the coefficient.
Parameters
- lhs: Left-hand side value.
- rhs: The coefficient to multiply the state by.
(const State lhs * const complex rhs) -> State
Multiplies a quantum state by a constant coefficient.
Returns a new quantum state resulting from the multiplication of the given state by the coefficient.
Parameters
- lhs: Left-hand side value.
- rhs: The coefficient to multiply the state by.