fix potential bug if basis gates comes from noise model
@@ -83,6 +83,7 @@ class QuantumInstance:
coupling_map = getattr(backend.configuration(), 'coupling_map', None)
# TODO: basis gates will be [str] rather than comma-separated str
basis_gates = backend.configuration().basis_gates
+ if isinstance(basis_gates, list):
basis_gates = ','.join(basis_gates)
self._compile_config = {
