dot
symbolica.community.tensor Function
dot(left: TensorExpression | Expression, right: TensorExpression | Expression) -> TensorExpression Contract two rank-one tensors into a scalar product.
Parameters
left, rightTensorExpression, Tensor, or TensorNetworkRank-one operands in compatible representation spaces.
Returns
TensorExpression or TensorNetwork
Symbolic operands return TensorExpression. If either operand carries component data, the result is a lazy TensorNetwork.
Notes
The pairing includes the representation metric, for example Minkowski signs. This is a bilinear product; it does not conjugate either operand.
Examples
from symbolica.community.tensor import Representation, TensorName, dot
space = Representation.euc(3)
p = TensorName.vector("dot_p")(space)
q = TensorName.vector("dot_q")(space)
dot(p, q).is_scalarMember details
Overloads
Overload 1 #
dot(left: TensorExpression | Expression, right: TensorExpression | Expression) -> TensorExpression Contract two rank-one tensors into a scalar product.
Returns
TensorExpression or TensorNetwork
Symbolic operands return TensorExpression. If either operand carries component data, the result is a lazy TensorNetwork.
Notes
The pairing includes the representation metric, for example Minkowski signs. This is a bilinear product; it does not conjugate either operand.
Examples
from symbolica.community.tensor import Representation, TensorName, dot
space = Representation.euc(3)
p = TensorName.vector("dot_p")(space)
q = TensorName.vector("dot_q")(space)
dot(p, q).is_scalarParameters
| Name | Type | Default | Description |
|---|---|---|---|
left | TensorExpression | Expression | — | Rank-one operands in compatible representation spaces. |
right | TensorExpression | Expression | — | Rank-one operands in compatible representation spaces. |
Overload 2 #
dot(left: Union[Tensor, TensorNetwork], right: _ScalarInput | TensorExpression | TensorNetwork | Tensor | FactorProjector[TensorExpression] | FactorProjector[TensorNetwork]) -> TensorNetwork Contract two rank-one tensors into a scalar product.
Returns
TensorExpression or TensorNetwork
Symbolic operands return TensorExpression. If either operand carries component data, the result is a lazy TensorNetwork.
Notes
The pairing includes the representation metric, for example Minkowski signs. This is a bilinear product; it does not conjugate either operand.
Examples
from symbolica.community.tensor import Representation, TensorName, dot
space = Representation.euc(3)
p = TensorName.vector("dot_p")(space)
q = TensorName.vector("dot_q")(space)
dot(p, q).is_scalarParameters
| Name | Type | Default | Description |
|---|---|---|---|
left | Union[ | — | Rank-one operands in compatible representation spaces. |
right | _ScalarInput | TensorExpression | TensorNetwork | Tensor | FactorProjector[ | — | Rank-one operands in compatible representation spaces. |
Overload 3 #
dot(left: _ScalarInput | TensorExpression | TensorNetwork | Tensor | FactorProjector[TensorExpression] | FactorProjector[TensorNetwork], right: Union[Tensor, TensorNetwork]) -> TensorNetwork Contract two rank-one tensors into a scalar product.
Returns
TensorExpression or TensorNetwork
Symbolic operands return TensorExpression. If either operand carries component data, the result is a lazy TensorNetwork.
Notes
The pairing includes the representation metric, for example Minkowski signs. This is a bilinear product; it does not conjugate either operand.
Examples
from symbolica.community.tensor import Representation, TensorName, dot
space = Representation.euc(3)
p = TensorName.vector("dot_p")(space)
q = TensorName.vector("dot_q")(space)
dot(p, q).is_scalarParameters
| Name | Type | Default | Description |
|---|---|---|---|
left | _ScalarInput | TensorExpression | TensorNetwork | Tensor | FactorProjector[ | — | Rank-one operands in compatible representation spaces. |
right | Union[ | — | Rank-one operands in compatible representation spaces. |
View generated signature source: docs/api/python/spynso3.pyi:10812