Quantum gates are similar to logic gates in classical computers and are used to perform computations in quantum computers.Quantum gates manipulate qubits and are represented as square unitary matrices.The mathematics behind quantum gates involves understanding unitary matrices and their properties.Applying a quantum gate involves matrix multiplication with the qubit it operates on.