pyquil.quantum_processor package

class pyquil.quantum_processor.AbstractQuantumProcessor[source]

Bases: ABC

A generic interface describing the qubits, topology, and compiler representation of any arbitrary quantum_processor class.

abstract qubit_topology() Graph[source]

The connectivity of qubits in this quantum_processor given as a NetworkX graph.

abstract qubits() List[int][source]

A sorted list of qubits in the quantum_processor topology.

abstract to_compiler_isa() CompilerISA[source]

Construct an ISA suitable for targeting by compilation. This will raise an exception if the requested ISA is not supported by the quantum_processor.

Subpackages

Submodules