UCC compiler tracking
New in q8s.runtime version v0.3.0
q8s.runtime now supports automatic tracking of UCC compiler passes with MLflow.
Install the library with the UCC integration:
pip install "q8s.runtime[ucc]"Enable autologging before compiling a circuit:
circuit.py
import mlflow
from q8s.runtime.mlflow.ucc import autolog
from mqt.bench import BenchmarkLevel, get_benchmark
from ucc import compile
autolog()
qc = get_benchmark(
benchmark="qft",
level=BenchmarkLevel.ALG,
circuit_size=25,
)
mlflow.set_experiment("ucc")
with mlflow.start_run():
result = compile(qc)Start a local MLflow server and execute the code:
mlflow server
export MLFLOW_TRACKING_URL=http://127.0.0.1:5000
python circuit.py