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.1.tar.gz (2.7 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.1-py3-none-any.whl (83.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: geqo-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 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.1.tar.gz
Algorithm Hash digest
SHA256 e22345ea5ec2d2d92cfa7b705cf8f39be067f673fcb117219a9fd89b18c7351a
MD5 ed310be01736ca01e310f02ad4fb4f91
BLAKE2b-256 b66eeb1f43a42faf9cf35721412743757090fffe288606eeb07beb76364aea6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geqo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 83.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ce82b260dfbe78878b390be30ae30dbfdb997e913416ec0256c92f8107c7235
MD5 8461a23b6bac2882ba599d51fd9011f6
BLAKE2b-256 ed4989274e8cd0be29845a4d3936a7fa665ea630132c82c1995eeb7fd3891c8f

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