Skip to content

Instantly share code, notes, and snippets.

@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.
@IvanIsCoding
IvanIsCoding / Qubit.ipynb
Last active December 31, 2019 01:42
Qubit and Qiskit's statevector_simulator
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / Bernstein-Vazirani.ipynb
Created December 29, 2019 08:14
Bernstein-Vazirani's algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.