DynexCircuit
DynexCircuit executes quantum gate circuits on the Dynex neuromorphic platform. Accepts PennyLane, Qiskit, Cirq, and OpenQASM circuits.
Constructor
Configuration object. For circuits, QPU backend is recommended.
execute() method
Parameters
The quantum circuit in one of the following formats:
- PennyLane: a Python function that applies gates and returns a measurement
- Qiskit: a
QuantumCircuitobject - OpenQASM: a string containing QASM 2.0 instructions
- Cirq: a Cirq circuit object
Parameters passed to the circuit function. Use
[] for circuits with no parameters.Number of qubits the circuit operates on.
Measurement type:
| Value | Returns |
|---|---|
"measure" | Computational basis measurement samples |
"probs" | Probability of each basis state per qubit |
"all" | All solutions, one array per shot |
"sampleset" | dimod SampleSet object |
Minimum number of solutions to collect from workers before returning.
shots > 1 collects multiple independent circuit runs.Number of parallel ODE integrations. Higher values improve measurement statistics. For QPU backends, keep in the range 1–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.
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.
Priority fee in nanoDNX (1 DNX = 10⁹ nanoDNX).
Returns
Depends onmethod:
| method | Return type | Description |
|---|---|---|
"measure" | array | Bit string measurement |
"probs" | array | Probability for each qubit |
"all" | list[array] | One array per shot |
"sampleset" | dimod.SampleSet | Full sample set |