Quantum Linear Algebra – Matrix and Vector Operations

1: Select Operation

  1. Navigate to the simulation interface.
  2. In the "Select Operation" stage, choose a linear algebra operation to explore in the context of quantum computing:
    • Matrix Addition
    • Matrix Multiplication
    • Tensor (Kronecker) Product
    • Matrix-Vector Multiplication
    • Check Unitarity
  3. Click on the desired operation card.
  4. Click Next Step.

2: Choose Matrix A

  1. In the "Choose Matrix A" step, configure the first operand.
  2. Select a preset quantum gate (e.g., Identity, Pauli-X) from the dropdown menu for Matrix A (Indigo), or input custom values directly into the matrix cells.
  3. Review the structural display of the matrix representing the chosen quantum gate.
  4. Click Next Step.

3: Choose Matrix B

  1. In the "Choose Matrix B" step, configure the second operand.
  2. Similar to Matrix A, select a preset quantum gate from the dropdown menu for Matrix B (Fuchsia) or input custom values.
  3. Observe the preview of the operation (e.g., addition + or multiplication x) between Matrix A and Matrix B on the canvas.
  4. (Optional) Toggle "Show step-by-step calculation" if you want to see detailed algorithmic steps.
  5. Click Compute Result.

4: View Results

  1. In the "Results" stage, review the mathematical output of your chosen operation.
  2. Observe the "EXPRESSION" (e.g., A + B = C, or A x B = C).
  3. View the "FINAL RESULT" matrix prominently displayed on the canvas.
  4. Read the explanation at the bottom (e.g., "The resulting matrix represents the combined effect of applying gate B followed by gate A...").
  5. Click Reset Simulation to go back to the beginning and try another sequence or operation.