The architecture of QTE model
(1) Embedded layer:Firstly, this layer takes biological time series data as input, maps each step sequence data to a dimensional state space through embedding, and outputs the embedded biological time series data. Secondly, this layer assigns temporal features to the input biological time series based on the position of vectors in the sequence and the dimension of each value in the vector, and adds positional encoding to each token. Finally, the input data is added to the positional encoding to obtain the input for the quantum encoding layer;
(2) Embedded layer:The quantum coding layer is composed of a stack of coding layers, each consisting of a quantum attention layer and a fully connected layer. Quantum attention layer: This module uses layer normalization to obtain normalized data. Then, by using VQC to replace the query matrix, key matrix, and value matrix in the classical multi head attention mechanism, the results of quantum multi head attention can be calculated. Finally, use residual connections to output the results;
(3) Multilayer perceptron:In the multi-layer perceptron of the encoder, we use the classical fully connected layer and the classical GELU activation function to output the final prediction result.