Discussing the article: "Quantum Neural Network in MQL5 (Part III): A Virtual Quantum Processor Based on Qubits"

 

Check out the new article: Quantum Neural Network in MQL5 (Part III): A Virtual Quantum Processor Based on Qubits.

The article focuses on creating a trading system with a real quantum simulator instead of mathematical analogies. The system uses 3 virtual qubits, quantum gates and superposition principles to analyze markets. It is implemented as a trading EA for MetaTrader 5 in MQL5. The main achievement is the transition from simulation to real quantum principles of financial information processing.

In the second part of our research, we developed a system that uses mathematical analogues of quantum effects: resonance (cosine), interference (sine), decoherence (exponential). However, this remained only an imitation. Formally, it looked elegant, but in essence it was not quantum.

Over time, it became clear that the model is elegant, but it does not capture the essence of quantum processing — superposition, entanglement, and the irreversibility of measurements. We operated with functions, not principles.

Classical approaches remain limited:

  • LSTM gives up to 58% accuracy,
  • transformers are vulnerable to noise,
  • ARIMA has lost its relevance,
  • models are unstable due to overfitting.

A key breakthrough is the transition to virtual qubits

In the second version, a full-fledged quantum processor is used instead of analogues: 3 qubits, an 8-dimensional state space, gates and measurements. The architecture has been revised: now every operation obeys the laws of quantum mechanics - unitarity, normalization, behavior during measurements.

Quantum Neural Network in MQL5 (Part III): Virtual Quantum Processor with Qubits


Author: Yevgeniy Koshtenko

 

@Yevgeniy Koshtenko

There is a duplicate PropRiskManagerLoss.mqh file in the archive:

It appears that the file HybridQuantumNeuralV3.mqh is missing, preventing QuantumProp_EA_Lite.mq5 from compiling without errors.

 
Anatoli Kazharski #:

@Yevgeniy Koshtenko

There is a duplicate PropRiskManagerLoss.mqh file in the archive:

It appears that the file HybridQuantumNeuralV3.mqh is missing, preventing QuantumProp_EA_Lite.mq5 from compiling without errors.

Thank you very much! I’ve just spotted it myself and have sent it for review with the correct file)

 

Yevgeniy, this looks like a really good, professional product. We’ll test it and provide feedback. Could you tell me, is there any way to get this training model to use a GPU for training, as is the case with the LSTM model in Python, for example? Perhaps you’ve already looked into this, so as not to waste time. If not, we can think about it together, as hardware performance is important in this model – and rightly so. A high-quality model with in-depth analysis simply has to be demanding on the hardware.

 

Good morning.

I haven’t been able to replicate the test described in the article, or even produce a similar graph.

Could you please let us know the parameters and the symbol?

Thank you.