Tensor Product Calculator (Kronecker Product)
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Enter the entries of two 2×2 matrices A and B to get the 16 entries of their tensor product A ⊗ B.
Result
Row 1, column 1 = a11 × b11
Row 1, column 2 = a11 × b12
- Row 1, column 3 = a12 × b11
- Row 1, column 4 = a12 × b12
- Row 2, column 1 = a11 × b21
- Row 2, column 2 = a11 × b22
- Row 2, column 3 = a12 × b21
- Row 2, column 4 = a12 × b22
- Row 3, column 1 = a21 × b11
- Row 3, column 2 = a21 × b12
- Row 3, column 3 = a22 × b11
- Row 3, column 4 = a22 × b12
- Row 4, column 1 = a21 × b21
- Row 4, column 2 = a21 × b22
- Row 4, column 3 = a22 × b21
- Row 4, column 4 = a22 × b22
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- A: row 1, column 1: enter a number.
- A: row 1, column 2: enter a number.
- A: row 2, column 1: enter a number.
- A: row 2, column 2: enter a number.
- B: row 1, column 1: enter a number.
- B: row 1, column 2: enter a number.
- B: row 2, column 1: enter a number.
- B: row 2, column 2: enter a number.
- Read the result: Row 1, column 1 = a11 × b11; the panel also shows Row 1, column 2 = a11 × b12, Row 1, column 3 = a12 × b11, Row 1, column 4 = a12 × b12, Row 2, column 1 = a11 × b21, Row 2, column 2 = a11 × b22, Row 2, column 3 = a12 × b21, Row 2, column 4 = a12 × b22, Row 3, column 1 = a21 × b11, Row 3, column 2 = a21 × b12, Row 3, column 3 = a22 × b11, Row 3, column 4 = a22 × b12, Row 4, column 1 = a21 × b21, Row 4, column 2 = a21 × b22, Row 4, column 3 = a22 × b21 and Row 4, column 4 = a22 × b22.
How this calculator works
For matrices, the tensor product is the Kronecker product: A ⊗ B replaces each entry a_ij of A with the block a_ij × B. Two 2×2 matrices give a 4×4 matrix whose entry in row 2(p − 1) + r and column 2(q − 1) + s is a_pq × b_rs.
It is not commutative (A ⊗ B and B ⊗ A usually differ) but it is associative, and it obeys (A ⊗ B)(C ⊗ D) = AC ⊗ BD. In quantum computing it combines the states and gates of separate qubits.
The formula
| Symbol | Meaning |
|---|---|
| A: row 1, column 1 | |
| B: row 1, column 1 | |
| Row 1, column 1 = a11 × b11 |
Worked example
| A: row 1, column 1 | 1 |
|---|---|
| A: row 1, column 2 | 2 |
| A: row 2, column 1 | 3 |
| A: row 2, column 2 | 4 |
| B: row 1, column 1 | 0 |
| B: row 1, column 2 | 5 |
| B: row 2, column 1 | 6 |
| B: row 2, column 2 | 7 |
| Row 1, column 2 = a11 × b12 | 5 |
|---|---|
| Row 1, column 3 = a12 × b11 | 0 |
| Row 1, column 4 = a12 × b12 | 10 |
| Row 2, column 1 = a11 × b21 | 6 |
| Row 2, column 2 = a11 × b22 | 7 |
| Row 2, column 3 = a12 × b21 | 12 |
| Row 2, column 4 = a12 × b22 | 14 |
| Row 3, column 1 = a21 × b11 | 0 |
| Row 3, column 2 = a21 × b12 | 15 |
| Row 3, column 3 = a22 × b11 | 0 |
| Row 3, column 4 = a22 × b12 | 20 |
| Row 4, column 1 = a21 × b21 | 18 |
| Row 4, column 2 = a21 × b22 | 21 |
| Row 4, column 3 = a22 × b21 | 24 |
| Row 4, column 4 = a22 × b22 | 28 |
Row 1, column 1 = a11 × b11 0
Each step uses the unrounded value of the step before it; figures on this page are rounded for display.
Frequently asked questions
What is the top-left block of A ⊗ B?
a₁₁ × B. With a₁₁ = 1 it is B itself.
Is A ⊗ B the same as B ⊗ A?
Not in general: the same products appear, but in a different order.
What is the determinant of A ⊗ B for 2×2 matrices?
det(A)² × det(B)², because det(A ⊗ B) = det(A)ⁿ det(B)ᵐ for an m×m matrix A and an n×n matrix B.