-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Description
Hi developers,
Would a more detailed error message of SpaceMismatch in a tensor contraction be possible? The current one only reports those incompatible spaces, but currently I always need to add more tests mannually to find out tensors and legs that those incompatible spaces belongs to.
So will a more detailed output be more helpful? For example,
ERROR: SpaceMismatch("(Vect[IsingAnyon](:I=>1) ⊗ Vect[IsingAnyon](:σ=>1)') ≠ (Vect[IsingAnyon](:σ=>1) ⊗ Vect[IsingAnyon](:σ=>1)')")
may be more detailed output by
The x-th graded space of the domain of the tensor T: Vect[IsingAnyon](:I=>1) ⊗ Vect[IsingAnyon](:σ=>1)') is incompatible with the y-th graded space of the codomain of the tensor K: Vect[IsingAnyon](:σ=>1) ⊗ Vect[IsingAnyon](:σ=>1)')
Then the bug can be immediately traced.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels