Skip to content

Instantly share code, notes, and snippets.

View shanto268's full-sized avatar
💻
No Longer Working From Home ;)

Sadman Ahmed Shanto shanto268

💻
No Longer Working From Home ;)
View GitHub Profile
@shanto268
shanto268 / squadds_install_mac_linux.md
Last active March 15, 2024 04:10
Install SQuADDS on a fresh conda environment on Mac/Linux

Installing SQuADDS on a Fresh Mac/Linux Conda Environment

Create a shell script with the following content. This allows a local development environment for SQuADDS.

#!/bin/bash

# Ensure script fails if any command fails
set -e
@SamWolski
SamWolski / install_qm_m2.sh
Created May 1, 2023 21:49
Install Qiskit-Metal on Apple Silicon
# Specify the env will be emulating x86
CONDA_SUBDIR=osx-64 conda create -n <env_name> python=3.10
# Activate env
conda activate <env_name>
# Set env to fetch x86 packages
conda config --env --set subdir osx-64
# Install qiskit metal
pip install qiskit-metal
# Install just the notebook component of jupyter
# Don't install the full 'jupyter' package which will lead to qt conflicts
@danielgross
danielgross / mathpix2gpt.py
Last active July 11, 2024 15:11
mathpix2gpt.py
import requests
import time
import os
import sys
import openai
import tiktoken
from termcolor import colored
openai.api_key = open(os.path.expanduser('~/.openai')).read().strip()
@shanto268
shanto268 / install_qiskit_metal_m1_mac.md
Last active February 21, 2024 16:41
Installing qiskit-metal on a M1 Mac (Apple Silicon)

There was no one resource avaiable online that walks through the process of installing qiskit-metal on a M1 Mac (Apple Silicon).

Hoping this helps others.

  1. Create a fresh conda environment with python 3.9 and configure it to emulate x86
CONDA_SUBDIR=osx-64 conda create -n <env_name> python=3.9
conda activate