Add Qfire compiler-aware quantum benchmarking submission#5
Open
ajiteshbankulaa wants to merge 1 commit intoqBraid:mainfrom
Open
Add Qfire compiler-aware quantum benchmarking submission#5ajiteshbankulaa wants to merge 1 commit intoqBraid:mainfrom
ajiteshbankulaa wants to merge 1 commit intoqBraid:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
qBraid Challenge Submission: Compiler-Aware Benchmarking for Reduced Wildfire Intervention QAOA
VideoLink: https://app.screencastify.com/watch/a7bJiBXEZm4uxbrKmFb5?checkOrg=1fb0f585-cfef-4b1b-8133-b84c1cf4701c
Summary
This PR submits Qfire / QuantumProj for the qBraid Challenge: Compiler-Aware Quantum Benchmarking.
Our project builds a portable quantum optimization workflow in Python around a reduced wildfire intervention QAOA workload derived from a 10x10 wildfire resilience scenario. The workflow starts from a Qiskit QuantumCircuit source representation, uses qBraid centrally in the transpilation / transformation pipeline, compares two compilation strategies, runs across multiple execution environments, and evaluates the tradeoff between:
The motivating application is wildfire resilience planning, where the full planning workflow operates on a 10x10 grid with a strict budget of 10 interventions, matching the wildfire challenge framing. :contentReference[oaicite:0]{index=0}
Technical Question
How well does a reduced wildfire intervention QAOA workload survive compilation across strategies and execution environments?
More specifically, we study which compilation path best preserves useful optimization behavior under realistic execution constraints.
Algorithm / Workload
We implement a nontrivial quantum algorithmic workload:
This is not a toy state-preparation demo or a single circuit primitive. It is a reduced optimization workflow tied to a real application problem.
Source Representation
The benchmark begins from a framework-level source representation in Python:
QuantumCircuitThis satisfies the requirement to start from a framework qBraid can transpile.
How qBraid Is Used
qBraid is central to the workflow.
We use qBraid to transform / transpile the workload through distinct compilation paths rather than relying only on native framework transpilation. The benchmark uses qBraid in the circuit preparation and transformation pipeline to compare how compilation strategy changes both:
Examples of qBraid-centered usage in this project include:
qbraid.transpile(...)Compilation Strategies Compared
We compare two compilation strategies:
Portable OpenQASM 2 bridge
Target-aware OpenQASM 3 bridge
These strategies are compared to study how compilation choices affect both quality and cost.
Execution Environments
We run the compiled workload across at least two execution environments:
Additionally, when available, we also support:
This allows us to compare unconstrained behavior against more realistic or noisy execution conditions.
Metrics Collected
Output-quality metrics
We report:
Compiled-resource metrics
We report:
This directly addresses the qBraid challenge requirement to compare quality against compiled resource cost.
Key Result / Conclusion
Our main finding is that compilation strategy materially changes the usefulness of the workload after compilation.
In our benchmark:
Best tradeoff conclusion: [replace with your exact result, for example:
“the target-aware OpenQASM 3 bridge preserved approximation quality better under noisy execution, while the portable OpenQASM 2 bridge reduced compilation complexity but degraded output quality more noticeably.”]
What This Repository Includes
Required Questions — Direct Answers
What algorithm did you implement?
A reduced QAOA optimization workload derived from wildfire intervention planning.
What was your source representation?
A Qiskit QuantumCircuit implemented in Python.
How did qBraid transform the workload?
qBraid was used centrally to transpile / transform the workload through distinct compiler-aware paths before execution and evaluation.
What two compilation strategies did you compare?
A portable OpenQASM 2 bridge and a target-aware OpenQASM 3 bridge.
What changed in the compiled programs?
The compiled programs differed in resource metrics such as depth, 2-qubit gate count, total gates, and sometimes in how well they preserved useful optimization behavior.
Which strategy best preserved algorithm performance?
[replace with your exact result]
What was the cost of that strategy in compiled resources?
[replace with your exact result, for example: higher depth, higher 2Q count, or other measured tradeoff]
Getting Started
1. Clone the repo
git clone [REPO_URL] cd [REPO_NAME]