Examples

Examples

Examples

Welcome to our comprehensive resource page, designed to guide you through both beginner and advanced examples of computing with Dynex's quantum-as-a-service (QaaS) technology. Whether you're just starting out or looking to deepen your understanding of quantum computations, our examples are tailored to help you effectively harness the power of Dynex technology. Explore step-by-step tutorials that demonstrate Dynex's capabilities, and gain valuable insights into how to apply these techniques to solve real-world problems. This resource is your gateway to mastering the transformative potential of quantum computing with Dynex.

Using the Dynex SDK for n.quantum computing is straight forward. The following code executes a quantum gate based circuit on Dynex (we are using a PennyLane circuit here, but a range of other languages are supported):

import pennylane as qml
from dynex import DynexConfig, ComputeBackend, DynexCircuit

# Define a simple 2-qubit circuit
def bell_circuit(params):
    qml.Hadamard(wires=0)
    qml.CNOT(wires=[0, 1])
    return qml.state()

# Configure QPU backend
config = DynexConfig(
    compute_backend=ComputeBackend.QPU,
    qpu_model='apollo_rc1'
)

dynex_circuit = DynexCircuit(config=config)
result = dynex_circuit.execute(
    bell_circuit,
    params=[],
    wires=2,
    method='measure'
)
print("Circuit result:", result)

To perform a quantum annealing problem, the following example shows how to compute a QUBO problem:

import dynex
import dimod
from dynex import DynexConfig, ComputeBackend

# Build a simple BQM: minimize x0 + x1 with interaction penalty
bqm = dimod.BinaryQuadraticModel(
    {0: -1.0, 1: -1.0},
    {(0, 1): 2.0},
    0.0,
    'BINARY'
)

# Configure to use Dynex neuromorphic GPU chips
config = DynexConfig(compute_backend=ComputeBackend.GPU)

# Wrap model and create sampler
model = dynex.BQM(bqm)
sampler = dynex.DynexSampler(model, config=config, description="My first Dynex job")

# Sample
sampleset = sampler.sample(num_reads=1000, annealing_time=200)

# Inspect results
best = sampleset.first
print(f"Best sample:  {best.sample}")
print(f"Best energy:  {best.energy}")

Explore Dynex's Quantum Computing Capabilities with Our Video Demos

Discover the power and versatility of Dynex's quantum-as-a-service (QaaS) technology through our curated list of example videos. These demos showcase a range of applications, including:

> Quantum Chatbot: Showcase of a Q-NLP trained special purpose chatbot for Canadian building codes.
> Quantum Sudoku: See how Dynex's platform effortlessly solves Sudoku puzzles, demonstrating the future of problem-solving.
> Quantum Transformer Algorithms: Learn how to use Quantum Transformers for advanced AI tasks, achieving unprecedented processing speeds and performance.
> Aircraft Loading Optimization: Explore how Dynex optimizes aircraft loading, streamlining aerospace operations.
> Optimized Satellite Positioning: Delve into the world of quantum algorithms enhancing satellite positioning accuracy.
> Job and Flow Shop Scheduling: Witness the efficient solutions for complex scheduling problems using Dynex's quantum computing technology.
> Workforce Scheduling: Discover how Dynex optimizes workforce resource allocation, improving operational performance and employee satisfaction.
> Multi-Vehicle Routing: Experience the cutting-edge solutions for optimizing vehicle routing, enhancing logistics and transportation efficiency.

Additionally, find tutorials for getting started with Dynex, customer testimonials, and more. These videos highlight the diverse and impactful capabilities of our technology, providing insights into how quantum computing can solve real-world problems.

Examples for beginners

To get familiar with the computing possibilities on the Dynex technology, we have prepared a number of Python Jupyter Notebooks. Here are some of our beginner guides demonstrating the use of the Dynex SDK to formulate and build the quadratic models, sampling them on the Dynex technology and retrieve the results:

> Simple BQM Sampling

Advanced Examples

As quantum computing technology matures and becomes more accessible, its integration into various industries is set to transform multiple fields. In the pharmaceutical industry, Dynex enables breakthroughs in drug discovery and personalized treatments through advanced examples like Quantum Protein Folding and Quantum RNA Folding, improving our ability to combat disease. The automotive and aerospace sectors benefit from enhanced Computational Fluid Dynamics (CFD) simulations and optimized satellite positioning, pushing the boundaries of design and efficiency. Financial services can harness Dynex for quantum portfolio optimization, leading to superior risk management and fraud detection. In telecommunications, Dynex enhances network performance with applications like optimal WiFi hotspot positioning. Furthermore, algorithms such as MaxCut, Quantum Single Image Super-Resolution, and Quantum Integer Factorization showcase Dynex's prowess in solving complex computational problems.

Example implementations for use cases in algorithms, pharmaceutical, finance, telecommunication and aerospace:

> Advanced Examples

Machine Learning Examples

Quantum computing algorithms for machine learning harness the power of quantum mechanics to enhance various aspects of machine learning tasks. As both, quantum computing and neuromorphic computing are sharing similar features, these algorithms can also be computed efficiently on the Dynex technology – but without the limitations of limited qubits, error correction or availability.

> Machine Learning Examples