Skip to content

Add Hamiltonian Energy optimization example#60

Open
caijintaoduolacmeng-star wants to merge 1 commit into
ionq:mainfrom
caijintaoduolacmeng-star:codex/quantum-function-example
Open

Add Hamiltonian Energy optimization example#60
caijintaoduolacmeng-star wants to merge 1 commit into
ionq:mainfrom
caijintaoduolacmeng-star:codex/quantum-function-example

Conversation

@caijintaoduolacmeng-star
Copy link
Copy Markdown

Summary

  • Add an examples/ directory with a Hamiltonian Energy Quantum Function optimization script.
  • Build the workload with typed ionq_core.models, submit via create_job, poll via wait_for_job, and parse the returned energy.
  • Document setup, the example Hamiltonian/ansatz/backend, and both Unix and PowerShell API-key commands.

Closes #58

Verification

  • ruff check examples README.md -> All checks passed
  • ruff format --check examples -> 1 file already formatted
  • ty check examples/ -> All checks passed
  • git diff --check -> passed
  • payload serialization sanity check -> passed

@caijintaoduolacmeng-star caijintaoduolacmeng-star requested a review from a team as a code owner June 4, 2026 19:33
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.

Add an examples/ quantum-function workload (Hamiltonian energy) with parameter optimization

1 participant