Skip to content

Instantly share code, notes, and snippets.

View quantshah's full-sized avatar

Shahnawaz Ahmed quantshah

View GitHub Profile
@quantshah
quantshah / cholesky.py
Created October 7, 2022 08:04
Cholesky decomposition from a random input matrix
import numpy as np
def clean_cholesky(chi):
"""Converts a random complex-valued matrix which has a shape
(N, N) to a Hermitian matrix.
Args:
chi (array (complex)): A matrix of shape (N, N).
@quantshah
quantshah / cubic.py
Created December 13, 2021 16:30
Cubic phase state definition and Wigner function
import numpy as np
from qutip.wigner import wigner
from qutip import coherent, squeeze, destroy, displace
import matplotlib.pyplot as plt
from matplotlib import colors
def cubic(initial_state, squeezing, gamma):
@quantshah
quantshah / mlphases.ipynb
Created October 17, 2019 06:20
Machine Learning Phases of Matter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / qnn.ipynb
Last active July 10, 2024 10:52
Universal quantum classifier using Pennylane - a python library for quantum machine learning
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / autodiff.ipynb
Created April 10, 2019 14:03
Automatic differentiation and gradient based optimization with Autograd and Pytorch
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / heom_example.ipynb
Created January 11, 2018 08:04
General HEOM code for sum of exponentials
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / init.vim
Created December 30, 2017 17:12 — forked from gnarula/init.vim
Neovim config
" Use vim-plug
call plug#begin('~/.local/share/nvim/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'zchee/deoplete-jedi'
Plug 'Shougo/echodoc.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
@quantshah
quantshah / rank_test.ipynb
Created April 2, 2017 03:15
Ranksum test for Phosphorylation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / parser_function.ipynb
Created November 14, 2016 20:38
A parser to update OpenFoam mesh files using values from GUI
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quantshah
quantshah / Gsoc-final.md
Last active August 22, 2016 22:19
Google Summer of Code 2016 : Intravoxel Incoherent Motion Techniques in Dipy

Google Summer of Code 2016

Implementing Intravoxel Incoherent Motion (IVIM) Techniques in Dipy

-Shahnawaz Ahmed (shahnawaz.ahmed95@gmail.com)

Dipy is a python library for analysis of diffusion-weighted MRI (dMRI). Diffusion patterns can reveal microscopic details about tissue architecture and is used in clinical as well as neuroscience research. The intra-voxel incoherent motion (IVIM) model describes diffusion and perfusion in the signal acquired with diffusion MRI as :

S(b) = S0(f e^(- b D*) + (1 - f) e^(-b D))

PR and discussion : dipy/dipy#1110