Skip to main content

Quapp pennylane library supporting Quapp Platform for Quantum Computing

Project description

quapp-pennylane

Quapp PennyLane library supporting the Quapp Platform for Quantum Computing with providers, devices, circuit export, invocation, and job fetching utilities.

Overview

quapp-pennylane is a Python library that integrates the Quapp Platform with PennyLane-based quantum backends and simulators. It provides common abstractions for providers and devices, helpers for circuit construction/export, robust job submission and result fetching flows, and consistent, job-scoped logging across components. Recent improvements focus on cleaner and more consistent logging, better error handling, and clear separation of concerns between invocation and fetching flows.

Features

  • Provider and device factories for PennyLane-compatible platforms (e.g., local simulators and vendor-backed devices exposed via PennyLane).
  • Circuit export utilities and helpers for building and running PennyLane circuits.
  • Handlers for job invocation and job result fetching with enhanced, context-rich logging.
  • Job-scoped, instance-bound logging for improved traceability and debugging.
  • Refined log levels and simplified imports to reduce noise and improve clarity.

Installation

Install via pip:

pip install quapp-pennylane

Recently Changes Highlights

  • fix: Patch pydantic.BaseModel.__config__ at import time for Pydantic v2 environments — qcs-api-client<0.22.0 accesses self.__config__.env_prefix (Pydantic v1 inner Config class removed in v2); shim provides a fallback __config__ on BaseModel so instance lookup resolves via class MRO instead of hitting Pydantic v2's __getattr__ which raises AttributeError
  • fix: Pin pydantic>=1.7.2,<2.0.0 in pyproject.toml — makes the Pydantic v1 requirement of qcs-api-client<0.22.0 explicit to prevent pip from resolving v2
  • fix: Extend compatibility shims in quapp_pennylane/__init__.py for pennylane-rigetti==0.36.0 against PennyLane 0.37–0.42+:
    • measurements.Expectation — renamed to ExpectationMP in PennyLane 0.37+
    • operation.Tensor — removed in PennyLane 0.40+; aliased to ops.Prod (its functional replacement for isinstance checks)
    • pennylane.QubitDevice — moved to pennylane.devices in PennyLane ~0.40+; re-exported at the top-level namespace
  • build: Bump a version to 0.0.4.dev9

For detailed usage and API references, please refer to the in-code documentation or contact the maintainers.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quapp_pennylane-0.0.4.dev11.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quapp_pennylane-0.0.4.dev11-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

Details for the file quapp_pennylane-0.0.4.dev11.tar.gz.

File metadata

  • Download URL: quapp_pennylane-0.0.4.dev11.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for quapp_pennylane-0.0.4.dev11.tar.gz
Algorithm Hash digest
SHA256 6d88a1bf2f151afcd80126627b9cb07eaad451e14755d105a307938244996a3f
MD5 2833cd929aefb51ea3015a3203b96194
BLAKE2b-256 5ed59b566114c59c3da49860c2481ccca9cc1ee49d0176b663ca19af9d466c70

See more details on using hashes here.

File details

Details for the file quapp_pennylane-0.0.4.dev11-py3-none-any.whl.

File metadata

File hashes

Hashes for quapp_pennylane-0.0.4.dev11-py3-none-any.whl
Algorithm Hash digest
SHA256 80d8814f5218e903095930581af1f46abbf20ce69c1b6359296624af3f3640f2
MD5 575dfaf26fb221e367bcea51ea5af914
BLAKE2b-256 9ea851be3ca12834cb9538f4378e62c382a47758c043207a80d5d6dfa44873f1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page