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.9.tar.gz (42.1 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.9-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devqubit_cirq-0.1.9.tar.gz
  • Upload date:
  • Size: 42.1 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.9.tar.gz
Algorithm Hash digest
SHA256 fb3f70fcd664b7e5761cd8b75c78d75f1f12e65ce0f3e6c20ad71d9a1479dc8e
MD5 8718c1c26825f17e800552d0971b9598
BLAKE2b-256 fffc0694c6e020fb26df9547468925a28db4791056ef8ae92dafdd0c39ed944f

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_cirq-0.1.9.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.9-py3-none-any.whl.

File metadata

  • Download URL: devqubit_cirq-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 31.8 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 6a1a61d493ea69d56c2f61e06ad569ec1b9ebe1ad83efb62f14b45fbfae59bac
MD5 12ed85006a0d3685bc7ab7f63f1ea082
BLAKE2b-256 405f4eb507fa8dd0e6134deb078a48263c5551d41bb0d1e67d789fe26d4a948b

See more details on using hashes here.

Provenance

The following attestation bundles were made for devqubit_cirq-0.1.9-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