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.1.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.1-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devqubit_cirq-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 4919284ac5d17792ec122c67482b8a06a32c64857774bcee7fee3f483a71db3e
MD5 1dd2cd4902564e99e8955021df04abd3
BLAKE2b-256 7366b4374ecf88aef053e0cd6d4fc7e49535c21b9aee6fe369833b7bbaf639a6

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: devqubit_cirq-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e290a4cb0daabc59dee19edbfe121136c693cce9d7f8b9fb0d23c438cc90fc1
MD5 5aac8f0bbb0fe4df2de7e1a2323eead3
BLAKE2b-256 19b69e28f452537fe518db35d5058ff06243afbba8449c3599932416ce0e454d

See more details on using hashes here.

Provenance

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