mqt.bench.benchmarks.ghz_dynamic

Dynamic GHZ benchmark definition.

Module Contents

create_circuit(num_qubits: int) QuantumCircuit[source]

Returns a dynamic quantum circuit implementing the GHZ state. Going from a circuit depth dependent on the number of qubits to a constant depth by using intermediate measurements.

A clear example on how to transform the classical GHZ circuit to the dynamic version can be seen in https://arxiv.org/pdf/2308.13065 Fig 5.

Parameters:

num_qubits – number of qubits of the returned quantum circuit