Skip to content

Forbid deprecation warnings in saved notebook outputs - #1799

Merged
classiqdor merged 1 commit into
mainfrom
forbid_deprecation_outputs
Nov 19, 2026
Merged

classiqdor merged 1 commit into
mainfrom
forbid_deprecation_outputs

Conversation

@classiqdor

Copy link
Copy Markdown
Contributor

Adds a pre-commit hook, forbid deprecation warnings in outputs, that fails when a notebook's saved outputs (stream outputs only, not code) contain a DeprecationWarning, FutureWarning or SyntaxWarning, including subclasses such as ClassiqDeprecationWarning.

The Lint workflow runs pre-commit on all files, so the 19 notebooks whose outputs show a deprecation today are excluded. Each one comes off the list once it's fixed and re-run:

Warning Notebooks Fixed by
modular_exp modular_exp_example #1784
submit_batch_sample benchmark_ghz, benchmark_dynamical_localization #1785
submit_estimate projected_based_embedding_tutorial #1786
quantum_program.transpiled_circuit.* select_structures_BE, stateprep_guassian_using_qsvt #1787 (re-run)
quantum_program.transpiled_circuit.* both advection_equation_*, quantum_walks_via_efficient_blockencoding #1787 fixes the code. The outputs need a re-run.
ExecutionSession.minimize, called inside CombinatorialProblem.optimize link_monitoring, portfolio_optimization, task_scheduling_problem, integer_linear_programming, evidence_scaling_labs, max_clique, max_k_vertex_cover, set_partition, ising_model, radio_access_network_positioning_antennas the SDK

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@classiqdor
classiqdor merged commit d55c5e1 into main Nov 19, 2026
8 checks passed
@classiqdor
classiqdor deleted the forbid_deprecation_outputs branch November 19, 2026 12:41
@github-actions

Copy link
Copy Markdown

🌟 Incredible, @classiqdor! You've merged your 231st PR! 🎯🎊

Your ongoing commitment to classiq-library is truly remarkable. You're a driving force in our community! 🚀
Your contributions are helping to shape the future of quantum computing! What exciting features or improvements do you envision next? 🔮

We are grateful for your dedication! 💫

This branch was successfully deployed

2 active deployments
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