Description
Environment
Viewing online website
What is happening?
Location:
https://qiskit-community.github.io/qiskit-machine-learning/tutorials/01_neural_networks.html
Issue:
The text reads:
"For the EstimatorQNN, the expected output shape for the forward pass is (1, num_qubits * num_observables)”
In practice, the forward pass returns an array of shape (batch_size, num_observables)—one column per observable—regardless of the number of qubits. For example, supplying three 3-qubit observables (XXX, XIX, IIX) yields an output of shape (1, 3)
, not (1, 9)
.
Suggested fix:
Replace the sentence with something like:
“The forward pass returns an array of shape (batch_size, num_observables)
—where batch_size
is the number of input samples and num_observables
is the length of the observables list.”
How can we reproduce the issue?
Navigate to https://qiskit-community.github.io/qiskit-machine-learning/tutorials/01_neural_networks.html
What should happen?
View description of suggestion
Any suggestions?
Replace the sentence with something like:
“The forward pass returns an array of shape (batch_size, num_observables)
—where batch_size
is the number of input samples and num_observables
is the length of the observables list.”