pyquil.device.Specs

class pyquil.device.Specs[source]

Basic specifications for the device, such as gate fidelities and coherence times.

Variables:
  • qubits_specs (List[QubitSpecs]) – The specs associated with individual qubits.
  • edges_specs (List[EdgesSpecs]) – The specs associated with edges, or qubit-qubit pairs.

Create new instance of _Specs(qubits_specs, edges_specs)

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

T1s() Get a dictionary of T1s (in seconds) from the specs, keyed by qubit index.
T2s() Get a dictionary of T2s (in seconds) from the specs, keyed by qubit index.
count(value)
f1QRBs() Get a dictionary of single-qubit randomized benchmarking fidelities (normalized to unity) from the specs, keyed by qubit index.
fActiveResets() Get a dictionary of single-qubit active reset fidelities (normalized to unity) from the specs, keyed by qubit index.
fBellStates() Get a dictionary of two-qubit Bell state fidelities (normalized to unity) from the specs, keyed by targets (qubit-qubit pairs).
fCPHASEs() Get a dictionary of CPHASE fidelities (normalized to unity) from the specs, keyed by targets (qubit-qubit pairs).
fCZ_std_errs() Get a dictionary of the standard errors of the CZ fidelities from the specs, keyed by targets (qubit-qubit pairs).
fCZs() Get a dictionary of CZ fidelities (normalized to unity) from the specs, keyed by targets (qubit-qubit pairs).
fROs() Get a dictionary of single-qubit readout fidelities (normalized to unity) from the specs, keyed by qubit index.
from_dict(d) Re-create the Specs from a dictionary representation.
index(value, [start, [stop]]) Raises ValueError if the value is not present.
to_dict() Create a JSON-serializable representation of the device Specs.

Attributes

edges_specs Alias for field number 1
qubits_specs Alias for field number 0