Interface HardwareBackend

All Superinterfaces:
Backend
All Known Implementing Classes:
IonQBackend

public interface HardwareBackend extends Backend
Hardware backend abstraction. Implementations submit circuits to vendor hardware services using OpenQASM 2.0.

Implementations must not mutate the provided QuantumCircuit; if transformation is required, clone the circuit first. Each backend is responsible for packaging QASM into a vendor payload, submitting jobs, polling results, and parsing vendor JSON into a Result.

  • Method Details

    • vendor

      String vendor()
      Vendor name (e.g., "IonQ", "IBM").
    • toVendorPayload

      String toVendorPayload(String qasm, RunOptions options)
      Convert a QASM program into a vendor-specific payload.
      Parameters:
      qasm - QASM string
      options - run options
      Returns:
      JSON payload
    • parseVendorResult

      Result parseVendorResult(String json)
      Parse a vendor JSON response into a Result.
      Parameters:
      json - vendor JSON
      Returns:
      Result