@@ -696,7 +696,7 @@ def _get_qir_str(
696696 config = self ._config
697697 # Barriers aren't removed by transpilation and must be explicitly removed in the Qiskit to QIR translation.
698698 supports_barrier = "barrier" in config .basis_gates
699- skip_transpilation = kwargs .pop ("skip_transpilation" , False )
699+ skip_transpilation = kwargs .pop ("skip_transpilation" , True )
700700
701701 backend = QSharpBackend (
702702 qiskit_pass_options = {"supports_barrier" : supports_barrier },
@@ -722,8 +722,7 @@ def _translate_input(
722722 qir = self ._get_qir_str (circuit , target_profile , skip_transpilation = True )
723723 logger .debug (f"QIR:\n { qir } " )
724724
725- # We'll transpile automatically to the supported gates in QIR unless explicitly skipped.
726- skip_transpilation = input_params .pop ("skipTranspile" , False )
725+ skip_transpilation = input_params .pop ("skipTranspile" , True )
727726
728727 qir_str = self ._get_qir_str (
729728 circuit , target_profile , skip_transpilation = skip_transpilation
@@ -734,8 +733,7 @@ def _translate_input(
734733 if not skip_transpilation :
735734 # We'll only log the QIR again if we performed a transpilation.
736735 if logger .isEnabledFor (logging .DEBUG ):
737- qir = str (qir_str )
738- logger .debug (f"QIR (Post-transpilation):\n { qir } " )
736+ logger .debug (f"QIR (Post-transpilation):\n { qir_str } " )
739737
740738 if "items" not in input_params :
741739 arguments = input_params .pop ("arguments" , [])
0 commit comments