Skip to main content

devqubit adapter for Cirq

Project description

devqubit-cirq

Google Cirq adapter for devqubit. Automatically captures circuits and results from Cirq simulators.

Installation

pip install devqubit[cirq]

Usage

import cirq
from devqubit import track

q0, q1 = cirq.LineQubit.range(2)
circuit = cirq.Circuit([
    cirq.H(q0),
    cirq.CNOT(q0, q1),
    cirq.measure(q0, q1, key="result"),
])

with track(project="cirq-exp") as run:
    simulator = run.wrap(cirq.Simulator())
    result = simulator.run(circuit, repetitions=1000)

What's Captured

  • Circuits — Cirq JSON, OpenQASM 3
  • Results — Measurement counts, histograms
  • Simulator info — Simulator type, configuration

License

Apache 2.0

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

devqubit_cirq-0.1.3.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

devqubit_cirq-0.1.3-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file devqubit_cirq-0.1.3.tar.gz.

File metadata

  • Download URL: devqubit_cirq-0.1.3.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for devqubit_cirq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 14dda3787fe2b06e54132a5f577558b8d667f0546ff8187d9b89f448bbb17bb2
MD5 81f4a97f2f4a66e8dc3c62497527bb89
BLAKE2b-256 a709b72f856d4bc8a5c57a5647015d188c6584397eab4872f811db7673aa1e4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_cirq-0.1.3.tar.gz:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file devqubit_cirq-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: devqubit_cirq-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for devqubit_cirq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f43304b5c43791b008b34ddc8a3e56040ab6f3e8180b906a2720b77f81447f
MD5 ee90e988f9cc7aecc58d328428f6c499
BLAKE2b-256 719c4a4177250c3ca2e60a32d621c77a8bb903c4f57ed46145845adf8506388d

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_cirq-0.1.3-py3-none-any.whl:

Publisher: release.yaml on devqubit-labs/devqubit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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