Skip to content

Instantly share code, notes, and snippets.

@alxthm
alxthm / meltano_make_crontab.py
Last active August 12, 2022 20:34
Python script to transform meltano schedules from a json format into a crontab file
import json
import logging
import os
import sys
from pathlib import Path
from typing import List
"""
Transform meltano schedules from a json format into a crontab file.
@alxthm
alxthm / tictactoe.py
Last active September 14, 2023 18:45
A basic tictactoe game
from abc import ABC
from enum import Enum
from itertools import product
from typing import Optional
import readchar
from readchar.key import UP, DOWN, LEFT, RIGHT, ENTER
"""
Small TicTacToe game.

How to measure the photon number parity of cavity?

Let's say system A is your "memory", i.e. it encodes the quantum information and you want it to be isolated from the environment. Imagine you have another system B in the circuit, with which you can interact, and which you can measure.

If system B is coupled to A in a certain way, its resonance frequency $f_B$ will change depending on the number of photons in system A:

$$ f_B = f_0 + n \chi $$