GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ionq-samples/getting-started: A collection of Python samples demonstrating how to get started with IonQ using various quantum frameworks

BranchesTags
Open more actions menu

Latest commit

 

History

70 Commits
70 Commits

Folders and files

NameName
Last commit message
Last commit date
.githooks
.githooks
 
 
.github/workflows
.github/workflows
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
api.ipynb
api.ipynb
 
 
cirq.ipynb
cirq.ipynb
 
 
cudaq.ipynb
cudaq.ipynb
 
 
helpers.py
helpers.py
 
 
pennylane.ipynb
pennylane.ipynb
 
 
pyproject.toml
pyproject.toml
 
 
qbraid.ipynb
qbraid.ipynb
 
 
qiskit.ipynb
qiskit.ipynb
 
 

Repository files navigation

IonQ Quantum Computing Samples

Python samples demonstrating quantum computing on IonQ's platform using popular quantum libraries. A great starting point for exploring quantum computation.

For advanced examples implementing specific algorithms, check out the ionq-samples organization.


Quick Start

Prerequisites

  • Python 3.10-3.13
  • IonQ API key (set as IONQ_API_KEY environment variable)

Installation

Using pip:

pip install -e .

Using uv (faster):

curl -LsSf https://astral.sh/uv/install.sh | sh
uv pip install -e .

Running Notebooks

Jupyter:

jupyter notebook

VS Code: Open any .ipynb file and select a Python kernel.

Cloud: Click the Open in Colab badge in each notebook.


Docker

Run in a containerized environment:

# Build
docker build --platform=linux/x86_64 -t ionq-notebooks .

# Run
docker run -p 8888:8888 -e IONQ_API_KEY="your_api_key" ionq-notebooks

Open http://localhost:8888 in your browser.


Development

Running Tests

# All tests
pytest tests/

# Parallel execution
pytest -n auto tests/

# Specific notebook
pytest tests/test_notebooks.py::test_notebook_execution[qiskit.ipynb]

# With custom timeout
NBEXEC_TIMEOUT_SECONDS=900 pytest tests/

GitHub Actions automatically tests all notebooks on every push.


Git Hooks

This repository includes a pre-commit Git hook to automatically clean Jupyter notebook metadata using nb-clean before committing. This helps reduce unnecessary noise in commits and avoid merge conflicts.

To enable this, run the following command in your terminal from the root of this repository:

git config core.hooksPath .githooks

Note: If uv is not installed, the hook will issue a warning and skip the cleaning process.


Support

Submit issues or PRs in this repository, or contact [email protected].

About

A collection of Python samples demonstrating how to get started with IonQ using various quantum frameworks

docs.ionq.com/sdks/index

Topics

cirqcuda-quantumpennylaneprojectqqbraidqiskitquantum-computing

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

28 stars

Watchers

6 watching

Forks

12 forks
Report repository

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.