Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaHUH4DELW7qcFEE4Ei3ki
Removes wavefunction_simulator.rst (its basis-ordering section moves to programs_and_gates.rst, now big-endian), drops QVM setup and as_qvm usage, compiles with the compile-only get_qc, and adds an introducing_v5 migration guide. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaHUH4DELW7qcFEE4Ei3ki
…l notebook Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaHUH4DELW7qcFEE4Ei3ki
Covers constructing channels, keying them to instructions, how the simulators apply them, cycles, qudits and leakage, and migration from the Kraus model. Quantum-information background is linked to the quax documentation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RaHUH4DELW7qcFEE4Ei3ki
☂️ Python Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
This branch has not been deployed
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.
Opened by Claude (Claude Code) on behalf of @bramathon.
Summary
The documentation update for pyQuil v5. The QVM,
WavefunctionSimulator,PyQVMand the Kraus-map noise model are removed, and the JAX/quax simulators and noise model become public. Docs only: none of the code changes these pages assume are in this PR (see Assumed v5 APIs), so this is a draft until that code exists.Four commits:
conf.py: intersphinx for python, numpy, jax and quax, andjax_enable_x64indoctest_global_setup.wavefunction_simulator.rstis deleted. Its basis-ordering section moves toprograms_and_gates.rstand is rewritten big-endian, keeping thebasis_orderinglabel thatquil.pydocstrings link to.as_qvmand-qvmnames are gone from getting started, programs, the quantum computer, compiler, advanced usage, troubleshooting, exercises and Quil-T. Execution examples use the new simulators. Control-flow runs become QPU code blocks, because the simulators are straight-line only.introducing_v5.rstmigration guide; README quickstart rewritten._new_topologylabel, theQPU.cancelrole, and the duplicated NAIVE rewiring example.simulation.rstuser guide.simulation_architecture.rstloses its experimental banner and uses public paths. It also had two factual errors, now fixed:Circuit/MergePlanare in pyquil, not quax, and the parameter vector has one slot per distinct memory reference.simulation-demo.ipynbadded as a tutorial: public imports, hand-built noise instead offrom_compiler_isa, shots viaTrajectorySimulatorso readout error is included, and outputs stripped.noise.rstrewritten forChannel/SuperopChannel/MeasurementChannel/ reset channels /CycleChannel/NoiseModel. It covers construction, how channels are keyed to instructions and applied by each simulator, cycles, qudits and leakage,from_isa, fidelity estimation, JSON, and a migration table from the Kraus model. Superoperator, Lindbladian and instrument background is linked to the quax docs rather than repeated. The legacy noise images are deleted.Assumed v5 APIs (must land in code before merge)
from pyquil.simulation import PureStateVectorSimulator, DensityMatrixSimulator, TrajectorySimulator, Circuit, MergePlanfrom pyquil.noise import Channel, SuperopChannel, MeasurementChannel, ResetChannel, SuperopResetChannel, CycleChannel, NoiseModel, NoiseModelLike, DepolarizingNoiseModel, estimate_program_fidelity, estimate_program_observable_fidelity, get_custom_gates_from_programget_qc("<N>q"),get_qc("9q-square")and the other former-qvmnames without the suffix return a compile-onlyQuantumComputer: quilc compiles, but it cannot run.pyquil.api.QuilcCompiler(quantum_processor=..., timeout=...), the renamedQVMCompiler, for custom topologies.local_forest_runtimestarts quilc only.CI follow-ups for the code PR: drop
rigetti/qvm -Sfrom the doctest job, and drop--extras latexfrom the Makefile.Test plan
sphinx-build -b htmlwith no warnings from the doc pages. pandoc isn't installed locally, so the changelog conversion and the notebooks were skipped in this build.testoutputblocks.swapsoutput is unchanged from before.make doctestpasses once the assumed APIs land.🤖 Generated with Claude Code
https://claude.ai/code/session_01RaHUH4DELW7qcFEE4Ei3ki