tequila.simulators.simulator_api.compile_circuit¶
-
tequila.simulators.simulator_api.
compile_circuit
(abstract_circuit: QCircuit, variables: Dict[Variable, RealNumber] = None, backend: str = None, samples: int = None, noise: tequila.circuit.noise.NoiseModel = None, device: str = None, *args, **kwargs) → tequila.simulators.simulator_base.BackendCircuit[source]¶ Compile a circuit to render it callable and return it.
- Parameters
abstract_circuit (QCircuit:) – the circuit to compile
variables (dict, optional:) – the variables to compile the circuit with.
backend (str, optional:) – the backend to compile the circuit to.
samples (int, optional:) – only matters if not None; compile the circuit for sampling/verify backend can do so
device (optional:) – the device on which the circuit should (perhaps emulatedly) sample.
noise (str or NoiseModel, optional:) – the noise to apply to the circuit
args –
kwargs –
- Returns
the compiled circuit.
- Return type
BackendCircuit