Skip to content

Instantly share code, notes, and snippets.

@IvanIsCoding
IvanIsCoding / Quantum-Gates.ipynb
Last active November 14, 2025 04:00
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.
@IvanIsCoding
IvanIsCoding / Deutsch-Jozsa.ipynb
Last active December 28, 2019 10:23
Deutsch-Jozsa's Algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / deutsch.ipynb
Last active December 31, 2019 01:44
Deutsch's Algorithm
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / superdensecoding.ipynb
Created December 24, 2019 06:14
Superdense Coding, Quantum Teleportation's cousin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IvanIsCoding
IvanIsCoding / teleportation.ipynb
Created December 23, 2019 09:21
Quantum Teleportation 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 / Uncomputation.ipynb
Last active December 31, 2019 04:41
Uncomputation 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 / a.cpp
Last active October 21, 2023 09:07
Educational Dynamic Programming Contest - AtCoder
// Ivan Carvalho
// Problem A - Educational Dynamic Programming Contest - AtCoder
// Link : https://atcoder.jp/contests/dp
#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e5 + 10;
const int INF = 2*1e9;
int dp[MAXN],N,K,h[MAXN];
@IvanIsCoding
IvanIsCoding / tidalflow.cpp
Last active December 28, 2018 18:59
Tidal Flow Implementation
/*
Tidal Flow Algorithm by M. Fontaine : https://ioinformatics.org/journal/v12_2018_25_41.pdf
Implementation by I. Carvalho
Solution to FASTFLOW : https://www.spoj.com/problems/FASTFLOW/
Note : In this problem, node 1 is the source and node N is the Sink
*/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;