Skip to content

Commit 381dd39

Browse files
committed
fix: Use matplotlib Agg backend for headless GitHub Actions runner
1 parent bda6954 commit 381dd39

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

q_refine/core/dashboard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import matplotlib
2+
matplotlib.use('Agg')
13
import matplotlib.pyplot as plt
24
import numpy as np
35
import os

q_refine_pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import numpy as np
2+
import matplotlib
3+
matplotlib.use('Agg')
24
import matplotlib.pyplot as plt
35
from qiskit_aer import AerSimulator
46
from qiskit_aer.noise import NoiseModel, depolarizing_error

0 commit comments

Comments
 (0)