*
Overloads
| Name | Description |
|---|---|
(const complex lhs * const ComplexPolynomial rhs) -> ComplexPolynomial | Scalar multiplication operator for Polynomial objects. |
(PauliString lhs * real rhs) -> PauliString | Multiplies a PauliString by a real scalar. |
(PauliString lhs * integer rhs) -> PauliString | Multiplies a PauliString by an integer. |
(const PauliString lhs * const PauliString rhs) -> PauliString | Multiplies two PauliStrings. |
(const PauliString lhs * const PauliStringSum rhs) -> PauliStringSum | Left-multiplies a PauliStringSum by a PauliString. |
(PauliStringSum lhs * const complex rhs) -> PauliStringSum | Multiplies a PauliStringSum by a scalar. |
(PauliStringSum lhs * const real rhs) -> PauliStringSum | Multiplies a PauliStringSum by a scalar. |
(PauliStringSum lhs * const integer rhs) -> PauliStringSum | Multiplies a PauliStringSum by a scalar. |
(const PauliStringSum lhs * const PauliString rhs) -> PauliStringSum | Right-multiplies a PauliStringSum by a PauliString. |
(const PauliStringSum lhs * const PauliStringSum rhs) -> PauliStringSum | Multiplies two PauliStringSums. |
(complex lhs * const ComplexMPO scalar) -> ComplexMPO | Scalar multiplication of an Matrix Product Operator (MPO) with Complex values. |
(complex lhs * const ComplexMPS scalar) -> ComplexMPS | Scalar multiplication of an Matrix Product State (MPS) with Complex values. |
(real lhs * const ComplexMPO scalar) -> ComplexMPO | Scalar multiplication of an Matrix Product Operator (MPO) with Complex values. |
(real lhs * const RealMPO scalar) -> RealMPO | Scalar multiplication of an Matrix Product Operator (MPO) with Real values. |
(real lhs * const ComplexMPS scalar) -> ComplexMPS | Scalar multiplication of an Matrix Product State (MPS) with Complex values. |
(real lhs * const RealMPS scalar) -> RealMPS | Scalar multiplication of an Matrix Product State (MPS) with Real values. |
(const bool lhs * const State rhs) -> State | Multiplies a constant coefficient by a quantum state. |
(const real lhs * const RealPolynomial rhs) -> RealPolynomial | Scalar multiplication operator for Polynomial objects. |
(const real lhs * const State rhs) -> State | Multiplies a constant coefficient by a quantum state. |
(const complex lhs * const State rhs) -> State | Multiplies a constant coefficient by a quantum state. |
(const complex lhs * const Operator rhs) -> Operator | Multiplies complex scalar by an operator. |
(const complex lhs * PauliStringSum rhs) -> PauliStringSum | Multiplies a scalar by a PauliStringSum. |
(const complex scalar * PauliString rhs) -> PauliString | Multiplies a PauliString by a complex scalar. |
(PauliString lhs * const complex rhs) -> PauliString | Multiplies a PauliString by a complex scalar. |
(const real lhs * PauliStringSum rhs) -> PauliStringSum | Multiplies a scalar by a PauliStringSum. |
(const real scalar * PauliString rhs) -> PauliString | Multiplies a PauliString by a real scalar. |
(const integer lhs * const Operator rhs) -> Operator | Multiplies integer scalar by an operator. |
(const integer lhs * PauliStringSum rhs) -> PauliStringSum | Multiplies a scalar by a PauliStringSum. |
(const integer scalar * PauliString rhs) -> PauliString | Multiplies a PauliString by an integer scalar. |
(const integer lhs * const State rhs) -> State | Multiplies a constant coefficient by a quantum state. |
(const real lhs * const Operator rhs) -> Operator | Multiplies real scalar by an operator. |
(integer lhs * const ComplexMPO scalar) -> ComplexMPO | Scalar multiplication of an Matrix Product Operator (MPO) with Complex values. |
(integer lhs * const RealMPO scalar) -> RealMPO | Scalar multiplication of an Matrix Product Operator (MPO) with Real values. |
(integer lhs * const ComplexMPS scalar) -> ComplexMPS | Scalar multiplication of an Matrix Product State (MPS) with Complex values. |
(integer lhs * const RealMPS scalar) -> RealMPS | Scalar 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 * real rhs) -> PauliString
Multiplies a PauliString by a real scalar.
Parameters
- lhs: The PauliString.
- rhs: The real scalar.
Returns
A new scaled PauliString.
(PauliString lhs * integer rhs) -> PauliString
Multiplies a PauliString by an integer.
Parameters
- lhs: The PauliString.
- rhs: The integer scalar.
Returns
A new scaled PauliString.
(const PauliString lhs * const PauliString rhs) -> PauliString
Multiplies two PauliStrings.
Parameters
- lhs: The left-hand-side PauliString.
- rhs: The right-hand-side PauliString.
Returns
A new PauliString containing the product.
(const PauliString lhs * const PauliStringSum rhs) -> PauliStringSum
Left-multiplies a PauliStringSum by a PauliString.
Parameters
- lhs: The left-hand-side PauliString.
- rhs: The PauliStringSum.
Returns
A new PauliStringSum.
(PauliStringSum lhs * const complex rhs) -> PauliStringSum
Multiplies a PauliStringSum by a scalar.
Parameters
- lhs: The PauliStringSum.
- rhs: The scalar.
Returns
A new scaled PauliStringSum.
(PauliStringSum lhs * const real rhs) -> PauliStringSum
Multiplies a PauliStringSum by a scalar.
Parameters
- lhs: The PauliStringSum.
- rhs: The scalar.
Returns
A new scaled PauliStringSum.
(PauliStringSum lhs * const integer rhs) -> PauliStringSum
Multiplies a PauliStringSum by a scalar.
Parameters
- lhs: The PauliStringSum.
- rhs: The scalar.
Returns
A new scaled PauliStringSum.
(const PauliStringSum lhs * const PauliString rhs) -> PauliStringSum
Right-multiplies a PauliStringSum by a PauliString.
Parameters
- lhs: The PauliStringSum.
- rhs: The right-hand-side PauliString.
Returns
A new PauliStringSum.
(const PauliStringSum lhs * const PauliStringSum rhs) -> PauliStringSum
Multiplies two PauliStringSums.
Parameters
- lhs: The left-hand-side PauliStringSum.
- rhs: The right-hand-side PauliStringSum.
Returns
A new PauliStringSum.
(complex lhs * const ComplexMPO scalar) -> ComplexMPO
Scalar multiplication of an Matrix Product Operator (MPO) with Complex values.
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.
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.
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.
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.
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.
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
- lhs: The scalar.
- rhs: The PauliStringSum.
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
- lhs: The PauliString.
- rhs: The complex scalar.
Returns
A new scaled PauliString.
(const real lhs * PauliStringSum rhs) -> PauliStringSum
Multiplies a scalar by a PauliStringSum.
Parameters
- lhs: The scalar.
- rhs: The PauliStringSum.
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
- lhs: The scalar.
- rhs: The PauliStringSum.
Returns
A new scaled PauliStringSum.
(const integer scalar * PauliString rhs) -> PauliString
Multiplies a PauliString by an integer scalar.
Parameters
- scalar: The integer scalar to multiply by.
- rhs: The PauliString to multiply.
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.
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.
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.
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.
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.