qiskit.utils.QuantumInstance.transpile¶
- QuantumInstance.transpile(circuits, pass_manager=None)[Quellcode]¶
A wrapper to transpile circuits to allow algorithm access the transpiled circuits.
- Parameter
circuits (Union['QuantumCircuit', List['QuantumCircuit']]) – circuits to transpile
pass_manager (Optional['PassManager']) – A pass manager to transpile the circuits. If none is given, but either
pass_manager
orbound_pass_manager
has been set in the initializer, these are run. If none has been provided there either, the backend and compile configs from the initializer are used.
- Rückgabe
- The transpiled circuits, it is always a list even though
the length is one.
- Rückgabetyp
List[‚QuantumCircuit‘]