Skip to main content

DynexCircuit

DynexCircuit executes quantum gate circuits on the Dynex neuromorphic platform. Accepts PennyLane, Qiskit, Cirq, and OpenQASM circuits.

Constructor

DynexConfig
required
Configuration object. For circuits, QPU backend is recommended.

execute() method

Parameters

required
The quantum circuit in one of the following formats:
  • PennyLane: a Python function that applies gates and returns a measurement
  • Qiskit: a QuantumCircuit object
  • OpenQASM: a string containing QASM 2.0 instructions
  • Cirq: a Cirq circuit object
list
required
Parameters passed to the circuit function. Use [] for circuits with no parameters.
int
required
Number of qubits the circuit operates on.
str
default:"\"measure\""
Measurement type:
int
default:"1"
Minimum number of solutions to collect from workers before returning. shots > 1 collects multiple independent circuit runs.
int
default:"100"
Number of parallel ODE integrations. Higher values improve measurement statistics. For QPU backends, keep in the range 1–100.
int
default:"100"
ODE integration depth — the number of integration steps used in the neuromorphic circuit simulation. Higher values allow circuits to converge more reliably. For QPU backends, keep in the range 10–1000.
float
default:"9.0"
Maximum allowed absolute coefficient value for QPU backends. Coefficients exceeding this are auto-scaled. For circuit BQMs (QASM), scaling is handled by the Apollo API and this parameter is ignored.
int
Priority fee in nanoDNX (1 DNX = 10⁹ nanoDNX).

Returns

Depends on method:

Examples

PennyLane circuit

Qiskit circuit

OpenQASM circuit

Getting a SampleSet