Skip to content

Incorrect output-shape description in 01_neural_networks tutorial #948

Open
@kaistermaister1

Description

@kaistermaister1

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.”

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions