Skip to content

docs: add AI-friendly visualization guidance to context - #243

Open
jfust3 wants to merge 3 commits into
harmoniqs:mainfrom
jfust3:docs/visualization-ai-guide-context
Open

docs: add AI-friendly visualization guidance to context#243
jfust3 wants to merge 3 commits into
harmoniqs:mainfrom
jfust3:docs/visualization-ai-guide-context

Conversation

@jfust3

@jfust3 jfust3 commented Jun 16, 2026

Copy link
Copy Markdown

Summary

  • Moves AI-oriented visualization guidance into src/visualizations/CONTEXT.md, matching maintainer feedback on docs: add AI-friendly visualization guidance #232.
  • Removes the top-level llms.txt file from the earlier submission.
  • Keeps the visualization guide additions for pulse plotting, examples, and common pitfalls.

Validation

  • git diff --check
  • Docs build not run locally because Julia is not installed in this environment.

Closes #61
Supersedes #232

@jack-champagne jack-champagne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, approved conditional on the removal of the nit above. thank you for your contribution @jfust3 !

Comment on lines +45 to 82

# ## Quick Reference for AI-Generated Plotting Code
#
# If you are asking an AI coding assistant to generate Piccolo visualization code,
# give it this rule of thumb: use Piccolo's high-level plotting helpers first,
# then fall back to Makie primitives only for custom layouts. The most common
# calls are:
#
# ```julia
# using Piccolo
# using CairoMakie
#
# traj = get_trajectory(qcp)
#
# # Physical pulse waveform reconstructed from the solved problem
# fig = plot_pulse(qcp; bounds = true, components = [:du, :ddu])
#
# # Raw optimization variables, useful for debugging the NLP state
# fig = plot(traj, [:u, :du, :ddu])
#
# # Quantum dynamics along the trajectory
# fig = plot_unitary_populations(traj) # for UnitaryTrajectory problems
# fig = plot_state_populations(traj) # for KetTrajectory problems
# ```
#
# For Bloch and Wigner helpers, also load `QuantumToolbox`:
#
# ```julia
# using QuantumToolbox
# fig = plot_bloch(traj; index = traj.N)
# fig = plot_wigner(traj, traj.N; xvec = -3:0.1:3, yvec = -3:0.1:3)
# ```
#
# The root [`llms.txt`](https://github.com/harmoniqs/Piccolo.jl/blob/main/llms.txt)
# file repeats these patterns in a compact form for coding agents and editor
# assistants.

# Inspect the resulting fidelity:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this should be just AI-agent focused, can write in neutral tone. We have a button on our docs pages that allows people to easily copy and paste this into their agents of choice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed — I updated the wording to keep it neutral rather than AI-agent-specific. git diff --check passes on the follow-up commit.

@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jfust3

jfust3 commented Jun 17, 2026

Copy link
Copy Markdown
Author

Updated the wording to remove the AI-agent-specific phrasing and keep it neutral. Validation: git diff --check passes.

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.

[unitaryDESIGN] Documentation Improvement for AI Agents

2 participants