pennylane_calculquebec.utility.graph.machine_graph

Contents

pennylane_calculquebec.utility.graph.machine_graph#

pennylane_calculquebec.utility.graph.machine_graph(machine_name, use_benchmark, q1Acceptance, q2Acceptance, excluded_qubits=[], excluded_couplers=[]) Graph#

builds a bidirectional graph from the qubits and coupler of a machine

Parameters:
  • machine_name (str) – the quantum machine’s name

  • use_benchmark (bool) – should we check qubit and coupler fidelities?

  • q1Acceptance (float) – at what fidelity is a qubit considered broken?

  • q2Acceptance (float) – at what fidelity is a coupler considered broken?

  • excluded_qubits (list[int]) – which qubits should we avoid?

  • excluded_couplers (list[list[int]]) – which couplers should we avoid?

Returns:

a graph representing the machine’s topology

Return type:

nx.Graph