Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Tensor Product Calculator (Kronecker Product)

A: row 1, column 1: enter a number. Prefilled example: 1.

A: row 1, column 2: enter a number. Prefilled example: 2.

A: row 2, column 1: enter a number. Prefilled example: 3.

A: row 2, column 2: enter a number. Prefilled example: 4.

B: row 1, column 1: enter a number. Prefilled example: 0.

B: row 1, column 2: enter a number. Prefilled example: 5.

B: row 2, column 1: enter a number. Prefilled example: 6.

B: row 2, column 2: enter a number. Prefilled example: 7.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. A: row 1, column 1: enter a number.
  2. A: row 1, column 2: enter a number.
  3. A: row 2, column 1: enter a number.
  4. A: row 2, column 2: enter a number.
  5. B: row 1, column 1: enter a number.
  6. B: row 1, column 2: enter a number.
  7. B: row 2, column 1: enter a number.
  8. B: row 2, column 2: enter a number.
  9. 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

  1. K11=a11×b11
Symbols used in the formula
SymbolMeaning
a11A: row 1, column 1
b11B: row 1, column 1
K11Row 1, column 1 = a11 × b11

Worked example

A: row 1, column 11
A: row 1, column 22
A: row 2, column 13
A: row 2, column 24
B: row 1, column 10
B: row 1, column 25
B: row 2, column 16
B: row 2, column 27
Row 1, column 2 = a11 × b125
Row 1, column 3 = a12 × b110
Row 1, column 4 = a12 × b1210
Row 2, column 1 = a11 × b216
Row 2, column 2 = a11 × b227
Row 2, column 3 = a12 × b2112
Row 2, column 4 = a12 × b2214
Row 3, column 1 = a21 × b110
Row 3, column 2 = a21 × b1215
Row 3, column 3 = a22 × b110
Row 3, column 4 = a22 × b1220
Row 4, column 1 = a21 × b2118
Row 4, column 2 = a21 × b2221
Row 4, column 3 = a22 × b2124
Row 4, column 4 = a22 × b2228
  1. K11=1×0=0

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.

Related calculators