pyquil.quantum_processor.compiler module

class pyquil.quantum_processor.compiler.CompilerQuantumProcessor(isa: CompilerISA)[source]

Bases: AbstractQuantumProcessor

An AbstractQuantumProcessor initialized with a user constructed CompilerISA.

qubit_topology() Graph[source]

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

qubits() List[int][source]

A sorted list of qubits in the quantum_processor topology.

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.