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.1

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.1
File Size Uploaded
eoqrid-0.3.1.tar.gz 19.1 kB Details

Built distribution (wheel)

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

Total release size: 38.7 kB

Release files / eoqrid-0.3.1.tar.gz

Download URL eoqrid-0.3.1.tar.gz
Size 19.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f741aeb0b7c0fe8cc0086e245ec50c064c948dea587d5dee38416925542e45c2
BLAKE2b-256 checksum
How to use checksums
35cc147cb7747012d2b270d80b817abaa44d93c872b2310a0aac8b8b2c84d818
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 Oct 12, 2026.

Transparency log

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

Download URL eoqrid-0.3.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d935b5ff605715d33286a051f63d8c74749e9553bf5f6937df1ee2e43a3c4bf0
BLAKE2b-256 checksum
How to use checksums
0c21627fb47815a77e55258c3c5dc45dc8baf1fcafbc983508c46ad09fd19c24
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 Oct 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

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