iqm.benchmarks.entanglement.ghz

iqm.benchmarks.entanglement.ghz#

GHZ state benchmark

Functions

append_rms(circuit, num_rms, backend)

Appends 1Q Clifford gates sampled uniformly at random to all qubits in the given circuit.

extract_fidelities(cal_url, qubit_layout)

Returns couplings and CZ-fidelities from calibration data URL

fidelity_analysis(run)

Analyze counts and compute the state fidelity

fidelity_ghz_coherences(dataset, ...)

Estimates the GHZ state fidelity based on the multiple quantum coherences method based on [Mooney, 2021]

fidelity_ghz_randomized_measurements(...)

Estimates GHZ state fidelity through cross-correlations of RMs.

generate_ghz_linear(num_qubits)

Generates a GHZ state by applying a Hadamard and a series of CX gates in a linear fashion.

generate_ghz_log_cruz(num_qubits)

Generates a GHZ state in log-depth according to https://arxiv.org/abs/1807.05572 :param num_qubits: the number of qubits of the GHZ state

generate_ghz_log_mooney(num_qubits)

Generates a GHZ state in log-depth according to https://arxiv.org/abs/2101.08946 :param num_qubits: the number of qubits of the GHZ state

generate_ghz_spanning_tree(graph, qubit_layout)

Generates a GHZ state in log-depth by computing a minimal spanning tree for a given coupling map.

get_cx_map(qubit_layout, graph)

Calculate the cx_map based on participating qubits and the 2QB gate fidelities between them.

get_edges(coupling_map, qubit_layout[, ...])

Produces a networkx.Graph from coupling map fidelity information, with edges given by couplings

plot_fidelities(observations, qubit_layouts)

Plots all the fidelities stored in the observations into a single plot of fidelity vs.

Classes

GHZBenchmark(backend, configuration)

The GHZ Benchmark estimates the quality of generated Greenberger–Horne–Zeilinger states

GHZConfiguration(*, benchmark, shots, ...)

GHZ state configuration

Inheritance

Inheritance diagram of iqm.benchmarks.entanglement.ghz