Figure 7 shows the corresponding computational graph and Listing 11 the corresponding code in SQL when the Hadamard product (\(\circ \)) is exposed as SQL operation (**). To process a batch of input tuples instead of a single one, the multiplications are applied on matrices instead of vec...
A quantum gate that acts on several qubits is described by a matrix of dimensions 2n×2n2n×2n, where nn represents the number of qubits. The most common quantum gates are Pauli-X, Pauli-Z, Hadamard, Controlled NOT (CNOT or CX), and Controlled-Z, which are represented in matrices corres...