pennylane_calculquebec.utility.graph.calculate_score#
- pennylane_calculquebec.utility.graph.calculate_score(source: int, graph: Graph, machine_name: str, use_benchmark=True) float#
Defines a score for a node by using cz fidelities on neighbouring couplers and state 1 readout fidelity
the bigger the better
- Parameters:
source (int) – the node you want to define a cost for
graph (nx.Graph) – the graph in which the node you want to define a cost for is
machine_name (str) – the quantum machine’s name
use_benhmark (bool) – should we use real benchmark for this operation?
- Returns:
a cost, where the highest cost is the best one.
- Return type:
float