Matrices as gates
February 3, 2025
Single-qubit gates are unitaries. Common examples include
Controlled operations
A CNOT flips the target conditioned on the control being . Its matrix is a permutation on the computational basis of two qubits.
Matrix dimensions grow as for qubits. Simulators track the full state vector; real hardware executes the same mathematics with noise and limited connectivity.
Next
Go to Install Qiskit to run gates in code.