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): |