Skip to main content

eoqrid

Exchange-Only Quantum Computing Simulator

Feature

eoqrid is a Python library for simulating silicon-based quantum processors operating on the exchange-only architecture. Key features include:

  • Logical Circuit Transpilation

    • Translates logical quantum circuits into native exchange interactions and measurement sequences, optimizing circuits for target chip topologies.
  • Physical Circuit Simulation

    • Simulates physical quantum circuits defined by exchange interactions and measurements, enabling verification of execution results.

Install

pip install eoqrid

or

git clone https://github.com/samn33/eoqrid.git
cd eoqrid
pip install .

Uninstall

pip uninstall eoqrid

Usage

from qiskit import QuantumCircuit
from eoqrid import EoqEngine

qc = QuantumCircuit(1)
qc.h(0)

print("== quantum circuit ==")
print(qc)

eoq = EoqEngine(3)
qc_phys = eoq.transpile(qc)

print("== transpiled quantum circuit ==")
print(qc_phys)
print(f"depth = {qc_phys.depth()}")

res = eoq.execute(qc_phys)

print("== quantum state (logical) ==")
res.qstate.draw()

print("== quantum state (physical) ==")
res.qstate.draw(mode='physical')
== quantum circuit ==
   ┌───┐
q: ┤ H ├
   └───┘
== transpiled quantum circuit ==
         ┌──────┐┌───────────────┐                 ┌───────────────┐
q_0 -> 0 ┤0     ├┤0              ├─────────────────┤0              ├
         │  Sin ││  Ex(5.3279,1) │┌───────────────┐│  Ex(5.3279,1) │
q_1 -> 1 ┤1     ├┤1              ├┤0              ├┤1              ├
         └──────┘└───────────────┘│  Ex(1.9106,1) │└───────────────┘
q_2 -> 2 ──|0>────────────────────┤1              ├─────────────────
                                  └───────────────┘
depth = 4
== quantum state (logical) ==
c[0] = +0.7071+0.0000*i : 0.5000 |++++++
c[1] = +0.7071+0.0000*i : 0.5000 |++++++
== quantum state (physical) ==
c[000] = +0.0000+0.0000*i : 0.0000 |
c[001] = +0.0000+0.5774*i : 0.3333 |++++
c[010] = +0.0000+0.2113*i : 0.0447 |+
c[011] = +0.0000+0.0000*i : 0.0000 |
c[100] = -0.0000-0.7887*i : 0.6220 |+++++++
c[101] = +0.0000+0.0000*i : 0.0000 |
c[110] = +0.0000+0.0000*i : 0.0000 |
c[111] = +0.0000+0.0000*i : 0.0000 |

Documents

Requirements

  • Linux (Ubuntu 24.04 LTS)
  • Python 3.12

Licence

MIT

Author

Sam.N

Metadata

Release files for eoqrid 0.3.0

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

Source distribution (sdist)

Source distribution for eoqrid 0.3.0
File Size Uploaded
eoqrid-0.3.0.tar.gz 18.6 kB Details

Built distribution (wheel)

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

Total release size: 37.0 kB

Release files / eoqrid-0.3.0.tar.gz

Download URL eoqrid-0.3.0.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
681d1f4faf77d3d5d1338161ef759b1be943de8695875f3ab28001d327e83496
BLAKE2b-256 checksum
How to use checksums
a290f30501029655996d49faf23e0d2a6782344e9fcbc12aebd73ba4d0a36598
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release files / eoqrid-0.3.0-py3-none-any.whl

Download URL eoqrid-0.3.0-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46336c6542b251bd463035e84e5e570bda9af0a70fa85941d6a87424ba2cc560
BLAKE2b-256 checksum
How to use checksums
fe63dfe5c6237dfcd04e5377dfaaaef3cf2451ad9b4a2905de1cdad615e35bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

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