mqt.bench.benchmarks.vqe_real_amp¶
VQE realamp ansatz benchmark definition.
Module Contents¶
- create_circuit(num_qubits: int, entanglement: str = 'reverse_linear', reps: int = 3) QuantumCircuit[source]¶
Returns a quantum circuit implementing the RealAmplitudes ansatz.
- Parameters:
num_qubits – number of qubits of the returned quantum circuit
entanglement – type of entanglement to use (default: “reverse_linear”, other options: “full”, “linear”, “full”, “pairwise”, “circular”, “sca”)
reps – number of repetitions (layers) in the ansatz
- Returns:
QuantumCircuit – a quantum circuit implementing the RealAmplitudes ansatz