Skip to main content

A quantum computing framework

Project description

geqo

geqo is a framework for constructing and describing quantum circuits and executing them on simulators and on quantum hardware devices.

The documentation can be found here.

Quick installation and testing

  1. clone the repository: git clone https://github.com/JoSQUANTUM/geqo
  2. create a virtual environment: python -m venv geqo-env
  3. enable environment: source geqo-env/bin/activate
  4. install geqo with all options: pip install geqo/[sympy,numpy,visualization,dev]
  5. optional: run unit tests: python -m pytest geqo/tests/

geqo is also available on PyPI. To install from PyPI just create and activate an environment with steps 2 and 3 and then install geqo with pip install geqo[sympy,numpy,visualization,dev].

Running a simple example

  • the example task is to get unitary of a quantum circuit for the EPR pair generation
  • start Python in the environment from the steps above
  • run the following commands:
from geqo.gates import Hadamard, CNOT
from geqo.core import Sequence
seq=Sequence([],["q1","q2"],[ (Hadamard(),["q1"]), (CNOT(), ["q1","q2"]) ])

from geqo.simulators import simulatorUnitarySymPy
sim=simulatorUnitarySymPy(2)
sim.apply(seq,[0,1])
sim.u

The expected result is

Matrix([
[sqrt(2)/2,         0,  sqrt(2)/2,          0],
[        0, sqrt(2)/2,          0,  sqrt(2)/2],
[        0, sqrt(2)/2,          0, -sqrt(2)/2],
[sqrt(2)/2,         0, -sqrt(2)/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

geqo-0.1.0.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geqo-0.1.0-py3-none-any.whl (81.2 kB view details)

Uploaded Python 3

File details

Details for the file geqo-0.1.0.tar.gz.

File metadata

  • Download URL: geqo-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for geqo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81892229595ca7cbf316cabe6df16c3d5cb71fbd2df2ec97bb54b232368eb4f4
MD5 e86b0a22788d8ad132d9774f5f567910
BLAKE2b-256 9f4746d1362f546ad118ec57e101ba382547abdba7b2622042cdfc6e95eed4ef

See more details on using hashes here.

File details

Details for the file geqo-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: geqo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 81.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for geqo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e48b9f65abc340e3384483945798b5f73bcb6e10888a45b16875150e22fba261
MD5 f3f7e8432e4bb1117ee35217820e0c4f
BLAKE2b-256 3ac6670f6ee51005307e34cf17096a71ce63a287da6b7469a2ddd1a007fd56d4

See more details on using hashes here.

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