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,cupy,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,cupy,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.2.tar.gz (3.0 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.2-py3-none-any.whl (97.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geqo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 41270f361e981fd21c0598bd85218aaa59e92ae81d14851c8631357df60e1901
MD5 5b24de750d448e7553a9498728f1e70c
BLAKE2b-256 ef1e546d130bfb7487ef8bb1e49ccaf06a507d0cadec653cbcff2cf999ea8195

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for geqo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 57483ba02e936884adf114221a0077874b69d63a193b67bddafbedbcf094bf0a
MD5 42a6c0963dacaa81ce59681e43f18710
BLAKE2b-256 8aeca693ffe020038836462612be5298621b46ba7524cf5bc00ae59c0e6aa97d

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