Skip to main content

*

Overloads​

NameDescription
(const complex lhs * const ComplexPolynomial rhs) -> ComplexPolynomialScalar multiplication operator for Polynomial objects.
(PauliString lhs * integer rhs) -> PauliStringMultiplies a PauliString by an integer.
(const PauliString lhs * const PauliString rhs) -> PauliStringMultiplies two PauliStrings.
(const PauliString lhs * const PauliStringSum rhs) -> PauliStringSumLeft-multiplies a PauliStringSum by a PauliString.
(PauliStringSum lhs * const complex rhs) -> PauliStringSumMultiplies a PauliStringSum by a scalar.
(PauliStringSum lhs * const real rhs) -> PauliStringSumMultiplies a PauliStringSum by a scalar.
(PauliStringSum lhs * const integer rhs) -> PauliStringSumMultiplies a PauliStringSum by a scalar.
(const PauliStringSum lhs * const PauliString rhs) -> PauliStringSumRight-multiplies a PauliStringSum by a PauliString.
(const PauliStringSum lhs * const PauliStringSum rhs) -> PauliStringSumMultiplies two PauliStringSums.
(PauliString lhs * real rhs) -> PauliStringMultiplies a PauliString by a real scalar.
(complex lhs * const ComplexMPO scalar) -> ComplexMPOScalar multiplication of an Matrix Product Operator (MPO) with Complex values.
(complex lhs * const ComplexMPS scalar) -> ComplexMPSScalar multiplication of an Matrix Product State (MPS) with Complex values.
(real lhs * const ComplexMPO scalar) -> ComplexMPOScalar multiplication of an Matrix Product Operator (MPO) with Complex values.
(real lhs * const RealMPO scalar) -> RealMPOScalar multiplication of an Matrix Product Operator (MPO) with Real values.
(real lhs * const ComplexMPS scalar) -> ComplexMPSScalar multiplication of an Matrix Product State (MPS) with Complex values.
(real lhs * const RealMPS scalar) -> RealMPSScalar multiplication of an Matrix Product State (MPS) with Real values.
(const bool lhs * const State rhs) -> StateMultiplies a constant coefficient by a quantum state.
(const real lhs * const RealPolynomial rhs) -> RealPolynomialScalar multiplication operator for Polynomial objects.
(const real lhs * const State rhs) -> StateMultiplies a constant coefficient by a quantum state.
(const complex lhs * const State rhs) -> StateMultiplies a constant coefficient by a quantum state.
(const complex lhs * const Operator rhs) -> OperatorMultiplies complex scalar by an operator.
(const complex lhs * PauliStringSum rhs) -> PauliStringSumMultiplies a scalar by a PauliStringSum.
(const complex scalar * PauliString rhs) -> PauliStringMultiplies a PauliString by a complex scalar.
(PauliString lhs * const complex rhs) -> PauliStringMultiplies a PauliString by a complex scalar.
(const real lhs * PauliStringSum rhs) -> PauliStringSumMultiplies a scalar by a PauliStringSum.
(const real scalar * PauliString rhs) -> PauliStringMultiplies a PauliString by a real scalar.
(const integer lhs * const Operator rhs) -> OperatorMultiplies integer scalar by an operator.
(const integer lhs * PauliStringSum rhs) -> PauliStringSumMultiplies a scalar by a PauliStringSum.
(const integer scalar * PauliString rhs) -> PauliStringMultiplies a PauliString by an integer scalar.
(const integer lhs * const State rhs) -> StateMultiplies a constant coefficient by a quantum state.
(const real lhs * const Operator rhs) -> OperatorMultiplies real scalar by an operator.
(integer lhs * const ComplexMPO scalar) -> ComplexMPOScalar multiplication of an Matrix Product Operator (MPO) with Complex values.
(integer lhs * const RealMPO scalar) -> RealMPOScalar multiplication of an Matrix Product Operator (MPO) with Real values.
(integer lhs * const ComplexMPS scalar) -> ComplexMPSScalar multiplication of an Matrix Product State (MPS) with Complex values.
(integer lhs * const RealMPS scalar) -> RealMPSScalar multiplication of an Matrix Product State (MPS) with Real values.

(const complex lhs * const ComplexPolynomial rhs) -> ComplexPolynomial​

Scalar multiplication operator for Polynomial objects.

Parameters​

  • rhs: The Polynomial operand.

(PauliString lhs * integer rhs) -> PauliString​

Multiplies a PauliString by an integer.

Parameters​

Returns​

A new scaled PauliString.

(const PauliString lhs * const PauliString rhs) -> PauliString​

Multiplies two PauliStrings.

Parameters​

Returns​

A new PauliString containing the product.

(const PauliString lhs * const PauliStringSum rhs) -> PauliStringSum​

Left-multiplies a PauliStringSum by a PauliString.

Parameters​

Returns​

A new PauliStringSum.

(PauliStringSum lhs * const complex rhs) -> PauliStringSum​

Multiplies a PauliStringSum by a scalar.

Parameters​

Returns​

A new scaled PauliStringSum.

(PauliStringSum lhs * const real rhs) -> PauliStringSum​

Multiplies a PauliStringSum by a scalar.

Parameters​

Returns​

A new scaled PauliStringSum.

(PauliStringSum lhs * const integer rhs) -> PauliStringSum​

Multiplies a PauliStringSum by a scalar.

Parameters​

Returns​

A new scaled PauliStringSum.

(const PauliStringSum lhs * const PauliString rhs) -> PauliStringSum​

Right-multiplies a PauliStringSum by a PauliString.

Parameters​

Returns​

A new PauliStringSum.

(const PauliStringSum lhs * const PauliStringSum rhs) -> PauliStringSum​

Multiplies two PauliStringSums.

Parameters​

Returns​

A new PauliStringSum.

(PauliString lhs * real rhs) -> PauliString​

Multiplies a PauliString by a real scalar.

Parameters​

Returns​

A new scaled PauliString.

(complex lhs * const ComplexMPO scalar) -> ComplexMPO​

Scalar multiplication of an Matrix Product Operator (MPO) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPO with all tensors scaled by the scalar.

(complex lhs * const ComplexMPS scalar) -> ComplexMPS​

Scalar multiplication of an Matrix Product State (MPS) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPS with all tensors scaled by the scalar.

(real lhs * const ComplexMPO scalar) -> ComplexMPO​

Scalar multiplication of an Matrix Product Operator (MPO) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPO with all tensors scaled by the scalar.

(real lhs * const RealMPO scalar) -> RealMPO​

Scalar multiplication of an Matrix Product Operator (MPO) with Real values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPO with all tensors scaled by the scalar.

(real lhs * const ComplexMPS scalar) -> ComplexMPS​

Scalar multiplication of an Matrix Product State (MPS) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPS with all tensors scaled by the scalar.

(real lhs * const RealMPS scalar) -> RealMPS​

Scalar multiplication of an Matrix Product State (MPS) with Real values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPS with all tensors scaled by the scalar.

(const bool lhs * const State rhs) -> State​

Multiplies a constant coefficient by a quantum state.

Returns a new quantum state resulting from the multiplication of the given state by the coefficient.

Parameters​

  • rhs: The quantum state.

(const real lhs * const RealPolynomial rhs) -> RealPolynomial​

Scalar multiplication operator for Polynomial objects.

Parameters​

  • rhs: The Polynomial operand.

(const real lhs * const State rhs) -> State​

Multiplies a constant coefficient by a quantum state.

Returns a new quantum state resulting from the multiplication of the given state by the coefficient.

Parameters​

  • rhs: The quantum state.

(const complex lhs * const State rhs) -> State​

Multiplies a constant coefficient by a quantum state.

Returns a new quantum state resulting from the multiplication of the given state by the coefficient.

Parameters​

  • rhs: The quantum state.

(const complex lhs * const Operator rhs) -> Operator​

Multiplies complex scalar by an operator.

Parameters​

  • rhs: The operator.

(const complex lhs * PauliStringSum rhs) -> PauliStringSum​

Multiplies a scalar by a PauliStringSum.

Parameters​

Returns​

A new scaled PauliStringSum.

(const complex scalar * PauliString rhs) -> PauliString​

Multiplies a PauliString by a complex scalar.

Parameters​

  • scalar: The complex scalar to multiply by.
  • rhs: The PauliTern to multiply.

Returns​

The scaled PauliString

(PauliString lhs * const complex rhs) -> PauliString​

Multiplies a PauliString by a complex scalar.

Parameters​

Returns​

A new scaled PauliString.

(const real lhs * PauliStringSum rhs) -> PauliStringSum​

Multiplies a scalar by a PauliStringSum.

Parameters​

Returns​

A new scaled PauliStringSum.

(const real scalar * PauliString rhs) -> PauliString​

Multiplies a PauliString by a real scalar.

Parameters​

  • scalar: The real scalar to multiply by.
  • rhs: The PauliString to multiply.

Returns​

The scaled PauliString

(const integer lhs * const Operator rhs) -> Operator​

Multiplies integer scalar by an operator.

Parameters​

  • rhs: The operator.

(const integer lhs * PauliStringSum rhs) -> PauliStringSum​

Multiplies a scalar by a PauliStringSum.

Parameters​

Returns​

A new scaled PauliStringSum.

(const integer scalar * PauliString rhs) -> PauliString​

Multiplies a PauliString by an integer scalar.

Parameters​

Returns​

The scaled PauliString

(const integer lhs * const State rhs) -> State​

Multiplies a constant coefficient by a quantum state.

Returns a new quantum state resulting from the multiplication of the given state by the coefficient.

Parameters​

  • rhs: The quantum state.

(const real lhs * const Operator rhs) -> Operator​

Multiplies real scalar by an operator.

Parameters​

  • rhs: The operator.

(integer lhs * const ComplexMPO scalar) -> ComplexMPO​

Scalar multiplication of an Matrix Product Operator (MPO) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPO with all tensors scaled by the scalar.

(integer lhs * const RealMPO scalar) -> RealMPO​

Scalar multiplication of an Matrix Product Operator (MPO) with Real values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPO with all tensors scaled by the scalar.

(integer lhs * const ComplexMPS scalar) -> ComplexMPS​

Scalar multiplication of an Matrix Product State (MPS) with Complex values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPS with all tensors scaled by the scalar.

(integer lhs * const RealMPS scalar) -> RealMPS​

Scalar multiplication of an Matrix Product State (MPS) with Real values.

warning

Repeated use of this operation can make the numerics unstable, leading to poor accuracy.

Parameters​

  • scalar: The scalar value to multiply by.

Returns​

A new MPS with all tensors scaled by the scalar.