Deprecations#

cosmiq follows semantic versioning. Before 1.0, a minor release may change the API, but never without warning:

  1. Deprecate first. The name is marked deprecated (it warns with cq.CosmiqDeprecationWarning), listed in api/deprecated.txt, and a deprecations release note says what to use instead.

  2. Wait at least one minor release.

  3. Then remove it, with an upgrade release note.

CI enforces this: a change that would break users’ code fails unless api/deprecated.txt shows it was deprecated in an earlier release and its removal version has arrived. After 1.0, removals happen only in major releases.

Deprecated in cosmiq#

Generated from api/deprecated.txt:

Nothing is deprecated in this release: api/deprecated.txt lists no name.

Deprecation notes#

The deprecations sections of the release notes:

0.1.0#

  • As on every PennyLane device, shots= on the cosmiq.emulator constructor is accepted with PennyLane’s deprecation warning; give the QNode its shots (qml.set_shots).