pyquil.quantum_processor.compiler module

An implementation of an AbstractQuantumProcessor initialized with a user constructed CompilerISA.

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

Bases: AbstractQuantumProcessor

An AbstractQuantumProcessor initialized with a user constructed CompilerISA.

Initialize a CompilerQuantumProcessor with a given CompilerISA.

qubit_topology() Graph[source]

Return a NetworkX graph that represents the connectivity of qubits in this quantum_processor.

qubits() list[int][source]

Return the qubits in the quantum_processor topology as a sorted list.

to_compiler_isa() CompilerISA[source]

Return the CompilerISA that this quantum_processor is initialized with.