This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import dynamiqs as dq | |
import jax.numpy as jnp | |
from qutip import destroy, mesolve, coherent | |
# Function to measure execution time (without JIT for JAX) | |
def measure_execution_time(func, *args, warmup=False, **kwargs): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from __future__ import division, print_function | |
import sys, urllib2, json, csv | |
import argparse | |
from tabulate import tabulate | |
desc = """ | |
Downloads the minimum prices from an input of book ISBN | |
numbers. | |
Usage: | |
./isbn_query.py -k APIKEY -i ISBN_FILE -o OUTPUT_CSV |