Skip to content

Conversation

@gcattan
Copy link

@gcattan gcattan commented Nov 5, 2025

Summary

This PR fix issue when running QAOA on hardware.
Specifically, it solves observable dimension not matching the circuit's layout, e.g.:

ValueError: The number of qubits of the circuit (133) does not match the number of qubits of the ()-th observable (16).

Details and comments

The PR applies the circuit layout to the observable if the circuit has a layout.

@gcattan gcattan marked this pull request as ready for review November 5, 2025 08:27
@gcattan gcattan marked this pull request as draft November 5, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant