Skip to content

Instantly share code, notes, and snippets.

name: xeus-lite-wasm
channels:
- "https://repo.prefix.dev/emscripten-forge-dev"
- "https://repo.prefix.dev/conda-forge"
dependencies:
- xeus-python
- rustworkx
- matplotlib
@IvanIsCoding
IvanIsCoding / pyproject.toml
Created May 19, 2025 00:17
Pixi for Rustworkx Deployment in JupyterLite
[project]
name = "pixi-wasm"
version = "0.1.0"
description = "Setup a pixi environment for building a jupyterlite app with WASM"
platforms = ["emscripten-wasm32", "linux-64"]
channels = ["conda-forge"]
[feature.wasm]
channels = ["https://repo.prefix.dev/emscripten-forge-dev", "https://repo.prefix.dev/conda-forge"]
platforms = ["emscripten-wasm32"]
@IvanIsCoding
IvanIsCoding / index.html
Created May 11, 2025 18:10
More Robust Rustworkx WASM test
<!doctype html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/pyodide/v0.27.5/full/pyodide.js"></script>
</head>
<body>
Pyodide test page <br>
Open your browser console to see Pyodide output
<script type="text/javascript">
async function main() {
@IvanIsCoding
IvanIsCoding / index.html
Created May 11, 2025 03:18
Pyodide + Rustworkx Demo
<!doctype html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/pyodide/v0.27.5/full/pyodide.js"></script>
</head>
<body>
Pyodide test page <br>
Open your browser console to see Pyodide output
<script type="text/javascript">
async function main() {
@IvanIsCoding
IvanIsCoding / output.txt
Created May 4, 2025 17:43
rustworkx foldhash vs ahash benchmark
(base) ➜ minibench uv run released_rustworkx.py
Python version: 3.12.3 | packaged by Anaconda, Inc. | (main, May 6 2024, 14:46:42) [Clang 14.0.6 ]
rustworkx version: 0.16.0
Dijkstra on directed path graph with 100000 nodes (run 100 times) took on average 0.6737 ± 0.0607 seconds
(base) ➜ minibench uv run experimental_rustworkx.py
Python version: 3.12.3 | packaged by Anaconda, Inc. | (main, May 6 2024, 14:46:42) [Clang 14.0.6 ]
rustworkx version: 0.17.0
Dijkstra on directed path graph with 100000 nodes (run 100 times) took on average 0.6434 ± 0.0024 seconds
@IvanIsCoding
IvanIsCoding / ShorMath.ipynb
Last active November 16, 2024 09:32
Shor's algorithm discussion
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / Grover.ipynb
Created January 2, 2020 07:42
Grover's algorithm in Qiskit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / MultipleQubits.ipynb
Created December 31, 2019 06:20
Multiple qubit circuits in Qiskit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / Measurements.ipynb
Created December 31, 2019 04:37
Measurement of Qubits using Qiskit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / Quantum-Gates.ipynb
Last active July 4, 2024 14:09
Quantum gates and unitary matrices in Qiskit
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.