Get Started with Gate Model#
Learn to submit QCDL gate-model algorithms to quantum processing units (QPU) in the Leap quantum cloud service.
The gate-model architecture for quantum computing.
Introduction to quantum circuit description language (QCDL).
The two main steps of running quantum algorithms on dual-rail quantum computers.
To learn about annealing quantum computing, see the Get Started with Quantum Annealing section.
Example#
The following example creates a Bell state circuit, producing a dictionary that can be passed to a compiler or simulator:
>>> from dwave.gate.qcdl import qcdl
>>> from dwave.gate.qcdl.operations import cx, h, measure
...
>>> @qcdl(num_qubits=2)
... def main(q0, q1):
... h(q0) # Hadamard gate on q0
... cx(q0, q1) # CNOT with q0 as control, q1 as target
... measure(q0)
... measure(q1)
...
>>> qcdl_program = main()