Skip to main content

dynacir

Description

Dynacir is a transpilation plugin for Qiskit that optimizes dynamic quantum circuits.

Features

  • Feature 1 (current): Merges sequential resets on a given qubit into a single reset.
  • Feature 2 (upcoming): Merge sequences of reset-first single-qubit gate-...-reset-final single-qubit gate into just reset-final single-qubit gate
  • Feature 3 (upcoming): Compile inefficient classical logic to minimize memory load

Installation

To install dynacir, run the following command in your terminal:

pip install git+https://github.com/derek-wang-ibm/dynacir.git

Usage

First, create a QuantumCircuit.`

from qiskit import QuantumCircuit, transpile

qc = QuantumCircuit(2)
qc.reset(0)
qc.x(0)
qc.cx(0, 1)
qc.reset(0)
qc.reset(0)
qc.h(0)
qc.draw(output='mpl', style='iqp')

Then, apply a PassManager generated using the dynacir plugin.

from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager
from qiskit_ibm_runtime import QiskitRuntimeService

pm = generate_preset_pass_manager(optimization_level=3, optimization_method="dynacir"

qc_dynacir = pm.run(qc)
qc_dynacir.draw(output='mpl', style='iqc')
)

Metadata

Release files for dynacir 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dynacir 0.1.4
File Size Uploaded Provenance Actions
dynacir-0.1.4.tar.gz 8.2 kB Without provenance Details for dynacir-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dynacir 0.1.4
File Interpreter ABI Platform Actions
dynacir-0.1.4-py3-none-any.whl Python 3 none any Details for dynacir-0.1.4-py3-none-any.whl

Total release size: 20.1 kB

Release files / dynacir-0.1.4.tar.gz

Download URL dynacir-0.1.4.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4cbef6942213a8c3c4449491127496b1b9ae0dd1ef495859495df6eaa5e85abd
BLAKE2b-256 checksum
How to use checksums
a50d82c3390d6bfec7e09882afe2cb4412b51f5274a6c094ca1d06a6d916f172
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Release files / dynacir-0.1.4-py3-none-any.whl

Download URL dynacir-0.1.4-py3-none-any.whl
Size 11.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3261b113d53850b93918dba548cc3143286214dee8d75099cc98dff9f4104123
BLAKE2b-256 checksum
How to use checksums
860d74ca4952283223d77963475fad66d176ec5502b13aa5872306a519064e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.1

Security for dynacir 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page