ket.ibm

Module providing functionality to interact with IBM Quantum and IBM Cloud devices.

Note

This module requires additional dependencies from ket-lang[ibm].

Install with: pip install ket-lang[ibm].

Classes ket.ibm

IBMDevice

IBM Qiskit backend for Ket process.

class IBMDevice(backend: Backend, num_qubits: int | None = None, *, use_qiskit_transpiler: bool = False)

IBM Qiskit backend for Ket process.

Parameters:
  • backend – The backend to be used for the quantum execution.

  • num_qubits – The number of qubits to be used for the quantum circuit.

  • use_qiskit_transpiler – Use Qiskit transpiler instead of Ket’s.

configure()

Set up Ket process.

Example

device = IBMDevice(backend)
process = Process(device.configure())
property circuit: QuantumCircuit

Quantum circuit object for the IBM device.

property isa_circuit: QuantumCircuit

Quantum circuit object for the IBM device.

property backend: Backend

Backend object for the IBM device.