Compiler#

Python -> QuantumCircuit compiler.

quantpiler.compiler.assemble(func: Callable, ancillas_count: int) qiskit.circuit.QuantumCircuit#

Compile python function to qiskit circuit.

Parameters:
  • func (Callable) – Function to compile.

  • ancillas_count (int) – Number of needed ancilla qubits.

Raises:

NotImplementedError – Some of required operations not supported yet.

Returns:

Compiled circuit.

Return type:

QuantumCircuit