Skip to main content

*

Symbol of State.

Overloads

NameDescription
(const State lhs * const real rhs) -> StateMultiplies a quantum state by a constant coefficient.
(const State lhs * const integer rhs) -> StateMultiplies a quantum state by a constant coefficient.
(const State lhs * const bool rhs) -> StateMultiplies a quantum state by a constant coefficient.
(const State lhs * const complex rhs) -> StateMultiplies 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.