ZNEPro

End-user SDK guide

Quickstart

Install znepro and call submit_job. That call is the client contract: POST /api/v1/client/tasks/init, a sealed object PUT, POST /api/v1/client/tasks/commit, then a poll. This page matches published znepro-python 1.0.3. The wire histogram is q0_left: bitstring[0] is qubit 0. The SDK default bit_order="q0_left" leaves keys that are already in that order unchanged. bit_order="qiskit" reverses Qiskit get_counts() keys onto q0_left. Observable indices on the live runtime run through qubit 4095 (4096 qubits, MAX_QUBIT = 4095). tasks.target_observable is text. A calibration card is optional.

This page is the customer quickstart. System architecture, data flow, and the audit plan live in the repository and are not part of this guide.

Provider family and device id

The adapter family is how you build the circuit and the optional calibration card: IBM/Qiskit, AWS Braket (Rigetti, IonQ, IQM), Cirq, Quantinuum/TKET, or a neutral-atom card (QuEra, Pasqal, Atom). The device id is the hardware_backend string on init. The orchestrator stores that string on tasks.hardware_backend, and the admin console groups telemetry by that column. Published znepro-python 1.0.3 writes superconducting when submit_job or create_ticket omits hardware_backend. Pass ibm_fez or Cepheus-1-108Q when the task row should name that device.

Provider / adapter familyhardware_backendDevice
IBM / Qiskitibm_fezIBM Fez, Heron r2, 156 qubits
AWS Braket (Rigetti)Cepheus-1-108QRigetti Cepheus-1-108Q
Omitted on initsuperconductingSDK 1.0.3 default written to tasks.hardware_backend
Cirq, Quantinuum/TKET, neutral atom (QuEra, Pasqal, Atom), IonQ, IQMthe published device id for that QPUSame init field. The family only chooses the calibration extractor.

IBM Quantum. Pass hardware_backend="ibm_fez" for IBM Fez (Heron r2, 156 qubits). Omitting it stores superconducting. The Qiskit adapter family is separate from that device id.

submit_job

One measured histogram, one ticket. The uploaded keys are q0_left. Use bit_order="qiskit" only for Qiskit get_counts(), which the SDK reverses. Use bit_order="q0_left" for Braket histograms that already store qubit 0 in the first character. Pass observables, clip_box, an explicit hardware_backend, and a calibration card only when you have one. submit_job performs the ticket lifecycle below.

znepro-python · submit_job

# pip install znepro
import os
from znepro import ZNEProClient, extract_from_braket, extract_from_qiskit

client = ZNEProClient(
    base_url="https://api.znepro.com",
    api_key=os.environ["ZNEPRO_API_KEY"],
)

# Wire contract is q0_left: bitstring[0] is q[0].
# bit_order="q0_left" (the SDK default) keeps keys that are already q0_left.
# bit_order="qiskit" reverses get_counts() keys onto that order.
# Omitting hardware_backend stores "superconducting" on tasks.hardware_backend.

ibm = client.submit_job(
    qasm,
    counts,  # Qiskit get_counts(); rightmost character is q0
    observable="ZZ",
    observables=["ZZ"],
    hardware_backend="ibm_fez",  # IBM Fez, Heron r2, 156Q
    bit_order="qiskit",
    clip_box=True,
    calibration=extract_from_qiskit(backend.properties()),  # optional
)

rigetti = client.submit_job(
    qasm,
    counts,  # Braket keys are already q0_left
    observable="ZZ",
    observables=["ZZ"],
    hardware_backend="Cepheus-1-108Q",  # Rigetti Cepheus-1-108Q
    bit_order="q0_left",
    clip_box=True,
    calibration=extract_from_braket(device),  # optional
)

Pricing and EMS

A verified marketplace account receives 25,000 EMS once. Registering again, or a later subscribe-success notice, does not restore EMS already used. An unsubscribed account is refused before a task runs. Usage that is waiting on unsubscribe is still settled.

Settled EMS is G × S + M × 100. S is the largest reported shot count on the job, and it is at least 2,000. M is the number of Pauli terms. G is the number of qubit-wise commuting groups, so terms that can share one hardware run are not each billed as a separate run. A single measured histogram and the server-side λ = 2 twin use the same shot count, so S is not doubled. The per-term charge M × 100 still applies.

EMS inside the free balance is not sent to AWS. Overage is reported as kilo_effective_shots: one integer unit is 1,000 overage EMS. A remainder below 1,000 EMS stays on the account until a later job completes a unit. Paid EMS is priced per thousand at $1.50 through the first 1,000,000, $1.15 through 10,000,000, and $0.90 after that. The same job id is settled once.

SDK and benchmarks

Public sources live at github.com/Znepro. znepro-python is the client that runs init, the sealed PUT, commit, and poll. znepro-benchmarks holds the offline-reproducible hardware studies. The 30-case Fez suite (ibm-fez-v1, engine-0.1.3) and the Cepheus-1-108Q suite (engine-0.1.3) are archived at engine_version 0.1.3. engine_version 0.1.4 is the live runtime receipt and the 50Q–100Q Fez utility study (ibm-fez-utility-100q-v1).

Ticket lifecycle

Use this shape when you seal the payload yourself. hardware_backend on init is copied onto the task row. The example below sends ibm_fez. Leave the field out and SDK 1.0.3 sends superconducting. The object PUT does not carry the API key.

import os
from znepro import ZNEProClient

client = ZNEProClient(
    base_url="https://api.znepro.com",
    api_key=os.environ["ZNEPRO_API_KEY"],
)

# 1. POST /api/v1/client/tasks/init
#    body: target_observable, hardware_backend
ticket = client.create_ticket("ZZ", hardware_backend="ibm_fez")

# 2. Seal the job JSON and PUT it. No bearer on the object URL.
client.upload_payload(
    ticket["upload_presigned_url"],
    payload_json,
    ticket["encryption_key_hex"],
)

# 3. POST /api/v1/client/tasks/commit with task_id only
client.commit_ticket(ticket["task_id"])

# 4. Poll the sealed result
result = client.poll_ticket(
    task_id=ticket["task_id"],
    output_presigned_url=ticket.get("output_presigned_url"),
    encryption_key_hex=ticket["encryption_key_hex"],
)