Atos Quantum Learning Machine
- 79Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the Quantum Learning Machine (QLM), and what kinds of tasks can it support?
79 questions
- 1
What is the Quantum Learning Machine (QLM), and what kinds of tasks can it support?
Model answer
QLM is a classical simulator for quantum computers. It provides quantum programming libraries, circuit optimization tools, and simulators for perfect and noisy circuits.
Explanation
The framework can be used to write quantum circuits, optimize them, and simulate their behavior on classical computers.
- 2
What is myQLM, and how does it differ from the full QLM?
Model answer
myQLM is the laptop version of QLM, intended for toy circuits and experimentation with variational algorithms. The full QLM is a larger remote machine with more powerful simulation capabilities.
Explanation
The tutorial uses myQLM locally, while the full QLM can handle more demanding simulations, including more capable noisy simulations.
- 3
Why does Atos's experience with high-performance computing relate to its quantum software platform?
Model answer
Atos builds large computing systems by integrating processors, and applies this systems-integration experience to combining classical and quantum processors. This background also informs its focus on circuit compilation and hardware constraints.
Explanation
The presentation describes Atos as a high-performance computer builder that integrates processors into larger systems.
- 4
What role do QLM's circuit optimization tools serve?
Model answer
They optimize quantum circuits while accounting for constraints of the target hardware, such as connectivity. This helps translate hardware-agnostic programs into forms suited to particular devices.
Explanation
The presentation identifies hardware constraints and compilation from user programs to hardware-specific implementations as key aspects of QLM.
- 5
How does QLM support interoperability with frameworks such as Qiskit and Cirq?
Model answer
Programs written in QLM can be run through other frameworks' backends, and circuits written in frameworks such as Qiskit can be run on QLM simulators or optimized with QLM tools.
Explanation
The interoperability works in both directions rather than requiring users to stay within one framework.
- 6
What is QLM as a Service?
Model answer
QLM as a Service allows a program written on a user's laptop with myQLM to access a larger QLM server. The server can provide more powerful simulators, including full noisy-simulation capabilities.
Explanation
myQLM can act as a local programming interface while computationally demanding work is performed on a remote QLM.
- 7
What simulation approaches are available in QLM besides a standard linear-algebra state-vector simulator?
Model answer
The presentation also describes stabilizer or Clifford-based simulators and matrix product state simulators. The latter can be useful for circuits without too much entanglement.
Explanation
These approaches provide alternatives to standard perfect simulation, with different capabilities for different circuit structures.
- 8
Why can QLM's classical hardware be advantageous for noisy simulations?
Model answer
The QLM is described as a large-memory machine with shared rather than distributed memory, avoiding communication overhead between distributed-memory nodes. This can make noisy simulations faster.
Explanation
The presentation links simulation speed to the machine's memory capacity and architecture.
- 9
What is the distinction between a quantum processor and the QLM hardware?
Model answer
The QLM is a classical machine that emulates quantum computers; it is not itself a quantum hardware platform. A quantum processor is a device that performs quantum computations directly.
Explanation
The presentation explicitly characterizes QLM as a classical simulator rather than a quantum processor.
- 10
What are the main hardware-related compilation challenges QLM aims to address?
Model answer
QLM helps adapt quantum programs to device-specific constraints, including connectivity. Its compilation tools target hardware such as trapped-ion, superconducting, and Rydberg-atom processors.
Explanation
The framework's compilation focus is on translating textbook or hardware-agnostic programs into implementations compatible with particular technologies.
- 11
What does it mean for a quantum processor to be noisy in the NISQ era?
Model answer
It means the processor does not perform perfect initialization, gates, or readout. These imperfections must be considered when modeling and running quantum computations.
Explanation
NISQ refers to the Noisy Intermediate-Scale Quantum era, in which current devices have imperfect operations.
- 12
What is a noise model, and why is it used in quantum simulation?
Model answer
A noise model specifies errors that can affect quantum operations, initialization, or readout. Simulating such a model helps estimate how these imperfections affect a computation.
Explanation
The presentation describes noise models as a way to represent errors in non-ideal quantum processors.
- 13
What noise model is used in the myQLM hands-on exercise, and where is noise applied?
Model answer
The exercise uses a depolarizing noise model that adds noise after each one-qubit and two-qubit gate.
Explanation
This is presented as a simple demonstration model available through a myQLM plugin.
- 14
How does a noisy QPU in the tutorial differ from the perfect QPU?
Model answer
Both accept a job and return a result, but the noisy QPU adds modeled errors to the computation. The tutorial's noisy simulation is also slower because it uses stochastic sampling and repeatedly evaluates circuits during optimization.
Explanation
The noisy QPU is created by placing a depolarizing-noise plugin in front of a perfect QPU.
- 15
What kinds of noise can QLM's noise models represent?
Model answer
The presentation says users can specify noise for quantum operations, readout, and initialization. Operation noise can be described using chosen or tomography-measured process operators, while readout and initialization errors can also be specified.
Explanation
The framework is described as allowing users considerable freedom to define noise sources and models.
- 16
How can noise be described for circuit-based and analog quantum programs?
Model answer
For circuit-based programs, the presentation describes quantum-channel noise frameworks. For analog schedules, noise can be specified using operators, with other specification methods also available.
Explanation
The method depends on how the quantum program is represented: as a circuit or as an analog schedule.
- 17
Why is the myQLM noisy-simulation exercise not representative of the full QLM's complete capabilities?
Model answer
The exercise uses a deliberately simple, freely available plugin that runs on a laptop. The full QLM provides more extensive and powerful noisy-simulation capabilities.
Explanation
The tutorial distinguishes the demonstration simulator from the full QLM server.
- 18
What does the variational quantum eigensolver (VQE) optimize?
Model answer
VQE adjusts parameters in a quantum circuit to minimize the expectation value of a Hamiltonian. The parameter updates are carried out by a classical optimizer using results from a quantum processor or simulator.
Explanation
The circuit prepares candidate states, and the measured Hamiltonian energy guides the classical minimization.
- 19
How does a variational-job plugin help a QPU process a parameterized circuit?
Model answer
It enables the QPU interface to recognize a parameterized circuit and Hamiltonian as an optimization task. The plugin coordinates the classical optimization of the circuit's angles.
Explanation
A standard QPU cannot execute a circuit whose gate angles have not yet been specified; the variational layer manages this process.
- 20
What role does the classical optimizer play in VQE?
Model answer
The classical optimizer changes the circuit parameters to reduce the measured energy. It repeatedly submits candidate parameter values for evaluation.
Explanation
In the tutorial, a SciPy-based optimizer is used with a QPU or simulator to minimize the Hamiltonian expectation value.
- 21
What did the Heisenberg Hamiltonian example demonstrate about an ansatz circuit?
Model answer
A circuit containing only single-qubit rotations could not reach the ground-state energy because it could not create the required entanglement. Adding a CNOT allowed the circuit to reach the energy of −3.
Explanation
The example shows that the ansatz must be expressive enough to represent the Hamiltonian's entangled ground state.
- 22
Why did changing the initial angles fail to fix the one-qubit ansatz in the Heisenberg example?
Model answer
The limitation was the circuit structure, not the initial parameter values. Single-qubit gates create product states and cannot produce the entangled state needed for the ground state.
Explanation
Changing starting points cannot compensate for an ansatz that lacks the gates needed to represent the target state.
- 23
What effect did the noisy simulation have on the VQE result in the tutorial?
Model answer
The noisy run ended at an energy of about −2.77, rather than the ideal value of −3. This illustrates that noise can make the estimated energy inaccurate.
Explanation
The tutorial compares the noisy outcome with the ground-state energy found in the perfect simulation.
- 24
Which features of an optimization trace are useful to examine in a noisy VQE experiment?
Model answer
One should check whether the energy converges to the correct value and how quickly it converges. It is also important to notice whether it converges quickly to an incorrect value.
Explanation
The tutorial identifies both final accuracy and convergence behavior as useful indicators of performance under noise.
- 25
How can a QLM variational program be run on an IBM quantum device instead of a simulator?
Model answer
The user can replace the simulator QPU with a Qiskit backend-to-QPU interface, provide an IBM Quantum Experience token, and select a backend. The same job can then be submitted through the new QPU interface.
Explanation
The tutorial emphasizes that the program can be reused by changing the QPU rather than rewriting the variational job.
- 26
How could the same QLM program be adapted to another provider's processor?
Model answer
A provider connector, such as the one mentioned for Rigetti, can be used, or an API can be written to expose an experimental processor through the QPU interface. The QPU can then be replaced while keeping the rest of the code largely unchanged.
Explanation
The QPU interface separates the job description from the particular device that executes it.
- 27
What is a QLM job, and what can it contain?
Model answer
A job describes work to be submitted to a QPU. It typically contains a circuit and may also contain an observable to measure at the circuit's end.
Explanation
In the tutorial, jobs are created first and then submitted through the QPU's submit method.
- 28
What result is obtained when a circuit job has no observable specified?
Model answer
The result provides the probabilities or bitstrings associated with measuring the circuit's final state. A perfect state simulator can also provide state amplitudes.
Explanation
Without an observable, the job requests information about the final state rather than the expectation of a specified operator.
- 29
Why can a perfect state simulator return amplitudes while a noisy simulator generally returns samples or probabilities?
Model answer
A perfect state simulator represents the circuit's state and can expose its amplitudes. A noisy simulation does not generally provide those state amplitudes, so the tutorial instead obtains sampled probabilities.
Explanation
The tutorial demonstrates amplitudes for the perfect simulator and probability estimates for the noisy setting.
- 30
What is an observable in a QLM job, and what does the result report when one is included?
Model answer
An observable is an operator, often expressed as a Hamiltonian, to be measured after the circuit. The result reports its average or expectation value.
Explanation
A job combining a circuit and an observable returns a measured value for that observable.
- 31
How is a Hamiltonian represented as an observable in the tutorial?
Model answer
It is represented as a sum of terms, each consisting of a coefficient and a product of Pauli operators acting on specified qubits.
Explanation
The example constructs an observable from a list of terms containing coefficients, Pauli strings, and qubit indices.
- 32
When specifying a multi-qubit Pauli term, how are the Pauli operators assigned to particular qubits?
Model answer
The operator string specifies the Pauli operators and their order, while the accompanying qubit-index list specifies where each operator acts. Changing the index order changes which qubit receives each operator.
Explanation
For example, the string XY with indices [0,1] applies X to qubit 0 and Y to qubit 1.
- 33
What is the ground-state energy found for the two-qubit Heisenberg Hamiltonian used in the tutorial?
Model answer
The lowest eigenvalue is −3, which is the ground-state energy the variational circuit is intended to find.
Explanation
The tutorial constructs the small Hamiltonian matrix and inspects its eigenvalues to establish the target energy.
- 34
Why can the tutorial explicitly construct the Hamiltonian matrix, even though this would not usually be practical for a large problem?
Model answer
The example has only two qubits, so its small matrix is manageable. For a large problem, explicitly constructing the full matrix can be impractical, which is one reason to use quantum-computing methods.
Explanation
The tutorial presents matrix construction as a convenient check for a small demonstration problem.
- 35
What makes a circuit parameterized, and why is a variational layer needed to execute it?
Model answer
A parameterized circuit contains gates whose angles are variables rather than fixed numbers. A variational layer supplies and optimizes those values before the circuit can be evaluated.
Explanation
The ordinary QPU cannot choose unspecified angles on its own; an optimizer must manage them as part of the variational job.
- 36
What was the purpose of the tutorial's Bell-state-style circuit check?
Model answer
It checked that a perfect simulator produced nonzero amplitudes for ∣00⟩ and ∣11⟩, each with amplitude 1/2​. The corresponding measurement probabilities were 0.5 for each outcome.
Explanation
This simple circuit provided a check of both amplitude output from a perfect simulator and probability output from the simulator.
- 37
What is the MaxCut problem as described in the Qtensor presentation?
Model answer
MaxCut assigns one of two colors to each graph vertex to maximize the number of edges whose endpoints have different colors.
Explanation
The QAOA example uses this graph optimization problem as its starting point.
- 38
How does QAOA use parameters to seek a solution to a graph optimization problem?
Model answer
QAOA prepares an ansatz state using alternating circuit layers controlled by parameters such as Γ and B. The parameters are chosen to maximize or minimize the relevant energy expectation.
Explanation
In the presentation, the depth is denoted by p, and the circuit has parameterized layers used to form the ansatz state.
- 39
Why can the QAOA energy for MaxCut be decomposed into local contributions?
Model answer
The cost function is a sum of local terms, and the energy expectation can be written as a sum of the expectations of those terms. For MaxCut, the relevant terms act on pairs of vertices.
Explanation
This decomposition lets the simulator evaluate separate local contributions instead of treating the full energy as one indivisible calculation.
- 40
What is a light cone in the QAOA simulation method described in the presentation?
Model answer
It is the portion of the circuit and graph that can affect a particular local energy term. Gates sufficiently far from the term cancel against their conjugates and need not be included.
Explanation
The presentation uses circuit cancellation to reduce the calculation of each local expectation value to a smaller subgraph.
- 41
How is the subgraph for a local QAOA energy contribution determined?
Model answer
For a term associated with vertices i and j, the subgraph includes vertices within distance less than p from those central vertices, as described by the presentation's radius-p−1 construction.
Explanation
Only the graph neighborhood that can influence the local term through the depth-p circuit is needed for its light-cone calculation.
- 42
Why can QAOA light-cone subgraphs become trees for large random regular graphs?
Model answer
As the parent graph grows, the local neighborhoods sampled by the light cones are increasingly likely to have no short loops. The resulting subgraphs therefore often have tree-like structure.
Explanation
The presentation attributes this behavior to the statistics of random regular graphs.
- 43
Why can simulating QAOA energy be easier than sampling from the full ansatz state?
Model answer
The energy can be computed by summing many local expectation values, each represented by a smaller tensor network. Sampling the full output state is described as much harder.
Explanation
The light-cone simplification reduces the scope of each calculation even when the original graph is large.
- 44
What is the advantage of optimizing QAOA parameters on a classical simulator rather than directly on noisy quantum hardware?
Model answer
If the energy can be simulated efficiently, its expectation can be optimized exactly on a classical device, avoiding sampling and hardware-noise errors during parameter search. The resulting parameters can then be used to obtain a MaxCut solution.
Explanation
The presentation contrasts classical energy evaluation with noisy sampling on a quantum device.
- 45
How does a quantum circuit become a tensor network in the approach described?
Model answer
Each gate is represented as a tensor, and the gate tensors are connected along indices corresponding to the circuit's qubits and operations. The resulting tensor network encodes the circuit calculation.
Explanation
One-qubit gates are represented as rank-two tensors, while a two-qubit gate has two input and two output indices.
- 46
What is a tensor, and how do vectors and matrices fit into the concept?
Model answer
A tensor generalizes vectors and matrices. A vector and a matrix are lower-rank tensors, while a rank-three tensor can be visualized as a cube.
Explanation
The presentation introduces tensors as a general framework for representing the objects in a quantum-circuit contraction.
- 47
In diagrammatic tensor-network notation, what do vertices and edges represent?
Model answer
Vertices represent tensors, and edges represent tensor indices. A shared index appears as a connection between the corresponding tensors.
Explanation
This graphical representation makes the structure of tensor contractions visible.
- 48
What does contracting a shared tensor index mean?
Model answer
It means summing over the common index of the connected tensors. This combines the tensors into a new tensor.
Explanation
For tensors A and B sharing index j, contraction sums over j to produce a tensor with their remaining indices.
- 49
Why is the order of tensor contractions important?
Model answer
Different contraction orders can produce intermediate tensors of very different sizes. Large intermediate tensors require more memory and computation.
Explanation
Choosing an efficient order is a central problem because contraction can increase the size of intermediate results.
- 50
How many indices does the tensor for a two-qubit gate have in the circuit-to-tensor-network representation?
Model answer
It has four indices: two for the input qubits and two for the output qubits.
Explanation
Each index corresponds to one qubit input or output of the two-qubit operation.
- 51
Why can a tensor-network simulator sometimes handle circuits that are difficult for a state-vector simulator?
Model answer
Tensor-network simulation can exploit circuit structure and a favorable contraction order without storing the entire state vector. Its feasibility depends strongly on the contraction width and the resulting intermediate tensor sizes.
Explanation
The presentation emphasizes that the main bottleneck is often the size of intermediate tensors rather than simply the number of qubits.
- 52
What is a line graph in Qtensor's contraction-planning approach?
Model answer
It is a representation in which each tensor index becomes a graph vertex, while each tensor is represented by a fully connected subgraph over its indices.
Explanation
This is the reverse of the usual tensor-network picture, where tensors are vertices and indices are edges.
- 53
How does contraction of an index appear in the line-graph representation?
Model answer
The index vertex being contracted is removed, and all its neighboring vertices are connected to one another. The number of neighbors determines the number of indices in the resulting tensor.
Explanation
This graph update mirrors summing over the corresponding shared tensor index.
- 54
How does the number of neighbors of a contracted vertex relate to the size of the resulting tensor?
Model answer
If the contracted vertex has k neighbors, the resulting tensor has k indices. For qubits with two-dimensional indices, it contains 2k elements.
Explanation
This makes the neighbor count a direct indicator of the memory cost of a contraction step.
- 55
What is contraction width, and why is it important?
Model answer
Contraction width is the maximum number of neighbors encountered for any vertex during the contraction process. It strongly determines the memory and computational resources required.
Explanation
A large maximum neighbor count implies that at least one contraction creates a large intermediate tensor.
- 56
How does Qtensor use graph theory to find a contraction order?
Model answer
It converts the tensor network into a line graph and uses tree-decomposition software to find an ordering of the index contractions.
Explanation
The ordering aims to keep intermediate tensors small by controlling the graph structure encountered during contraction.
- 57
Why can diagonal gates simplify the line graph used for contraction planning?
Model answer
A diagonal gate can be represented with fewer effective indices because its off-diagonal components vanish. This simplifies the line graph and can lead to a better contraction order.
Explanation
The presentation notes that QAOA's principal two-qubit gate is diagonal, making this simplification particularly useful.
- 58
What does a greedy contraction optimizer do, and what is its limitation?
Model answer
It repeatedly chooses the vertex with the fewest connections as the next contraction. It is fast, but it may not find a good order for complicated circuits.
Explanation
The presentation contrasts this simple optimizer with more sophisticated planning methods.
- 59
Why can a tree-like subgraph be easier to contract than a subgraph with many loops?
Model answer
A tree has low tree width, so its line graph can have a low contraction width and require smaller intermediate tensors. More loop-rich structures generally make efficient contraction harder.
Explanation
The presentation explains that tree-like light cones can lower contraction complexity.
- 60
Why can Qtensor's contraction complexity vary non-monotonically as the original graph grows?
Model answer
The local subgraphs used for energy calculations can change structure as the parent graph grows. Larger graphs may yield more tree-like light cones, which can reduce contraction complexity despite the increase in graph size.
Explanation
The number of vertices alone does not determine difficulty; the structure of the resulting tensor networks matters.
- 61
What practical memory scale did the presentation associate with contraction width around 27 or 28?
Model answer
It gave about four gigabytes of RAM as a rule-of-thumb scale for a laptop simulation at that width, depending on the problem structure.
Explanation
The presentation stresses that these are estimates and that actual requirements depend on the tensor network.
- 62
What is the main benefit of using Qtensor for QAOA energy calculations?
Model answer
Qtensor uses tensor networks and local light-cone calculations to evaluate QAOA energy efficiently. It can also optimize parameters using the calculated energy and its gradients.
Explanation
The simulator is primarily focused on QAOA simulations, while supporting other circuit simulations as well.
- 63
Which kinds of calculations can Qtensor perform besides QAOA energy evaluation?
Model answer
It can calculate probability amplitudes for quantum circuits, including a single amplitude or batches of amplitudes. It also supports energy expectations and parallelized calculations.
Explanation
The presentation lists these as features of the tensor-network simulator.
- 64
Why can calculating a batch of amplitudes be advantageous in a tensor-network simulator?
Model answer
Once one amplitude is being calculated, a batch of amplitudes for the same circuit may be obtained for approximately the same contraction cost. This can make multi-amplitude queries more efficient.
Explanation
The presentation identifies batch amplitude calculation as a useful property of the tensor-network approach.
- 65
How can Qtensor use automatic differentiation to optimize circuit parameters?
Model answer
With a compatible library such as PyTorch, Qtensor can differentiate the simulated result with respect to gate parameters. The gradients for many parameters can be obtained through automatic differentiation rather than estimating each by repeated sampling.
Explanation
This feature is useful for optimizing parameterized circuits, including QAOA circuits.
- 66
What input formats or circuit frameworks can Qtensor work with?
Model answer
Qtensor supports Qiskit circuits as input and provides interfaces involving Qiskit and Cirq, as well as its own Q-tree circuit representation.
Explanation
The presentation highlights Qiskit compatibility and describes composers and simulators for multiple backends.
- 67
What is the purpose of Qtensor's parallelization support?
Model answer
It allows parts of the simulation calculation to be distributed across computing resources. The presentation identifies parallelization as an important capability, especially for larger simulations.
Explanation
Large tensor-network calculations can require more memory and computational power than a single machine provides.
- 68
How did Qtensor's reported performance compare with other simulators in the presentation?
Model answer
For the reported benchmarks, Qtensor outperformed a state-vector simulator and the compared Quimb implementation on the tested QAOA cases. The results depend on the circuits, contraction order, and hardware.
Explanation
The presentation shows benchmark comparisons, including timing for parameter optimization and contraction.
- 69
How can Qtensor generate circuits for different backends using a common interface?
Model answer
A composer is created with the relevant graph and parameters, and methods modify the composer to build the circuit. Similar interfaces are provided for Qiskit, Cirq, and Q-tree composers.
Explanation
The shared interface lets users change the backend-specific object without changing the general circuit-building workflow.
- 70
What happens if a circuit-building method that adds an ansatz is applied twice to the same composer?
Model answer
The circuit is extended with the ansatz a second time, so the resulting circuit contains two repetitions of the previous ansatz structure.
Explanation
The presentation notes that composer methods change the circuit object in place.
- 71
How does a user simulate an amplitude with Qtensor?
Model answer
The user creates a simulator object, passes the circuit to its simulation method, and obtains an amplitude, with the first computational-basis amplitude returned by default in the demonstrated example.
Explanation
The presentation shows this workflow for a Q-tree simulator and describes an analogous interface for Cirq.
- 72
How can a user request multiple amplitudes or the complete output state from Qtensor?
Model answer
The user supplies a batch-size parameter to request amplitudes over selected qubits. Passing the number of qubits requests the complete state, containing 2n amplitudes for n qubits.
Explanation
The batch option expands the calculation beyond a single amplitude.
- 73
How does Qtensor calculate the QAOA energy for a graph?
Model answer
It obtains a light-cone circuit for each graph edge, simulates the corresponding local contribution, and sums the contributions to produce the energy expectation.
Explanation
A QAOA simulator can iterate over the edges and combine the local results.
- 74
How can a Qiskit circuit be used as input to Qtensor?
Model answer
A conversion function translates the Qiskit circuit into a Qtensor circuit. The converted circuit can then be used to calculate a single amplitude or a batch of amplitudes.
Explanation
This makes it possible to use Qtensor's simulation methods without building the circuit directly in its own representation.
- 75
What is the role of a tensor-network object in Qtensor's optimization workflow?
Model answer
It can be created from the circuit gates and used to obtain the line graph. That line graph is then passed to an optimizer to find a contraction order.
Explanation
The contraction order determines the sequence in which indices are eliminated during simulation.
- 76
Why must circuit parameters be configured to require gradients when using PyTorch with Qtensor?
Model answer
The parameters must be marked as requiring gradients so PyTorch tracks their influence through the simulation and can compute derivatives with respect to them.
Explanation
The circuit must use differentiable gate and simulator operations for the gradient calculation to work.
- 77
How are parameter gradients used in a simple gradient-descent optimization of QAOA?
Model answer
The parameters are updated using the learning rate multiplied by their calculated gradients. Repeating this process moves the parameters toward lower loss or improved energy.
Explanation
The presentation describes updating the Γ and B parameters using their gradients.
- 78
Why might an optimizer such as Adam be used instead of simple gradient descent?
Model answer
Adam is a more advanced optimizer that can perform better in situations involving local minima or saddle points. The presentation's example showed faster optimization with Adam.
Explanation
Adam is presented as an alternative from machine learning that can improve parameter-search performance.
- 79
How does the full-graph QAOA optimization differ from optimizing a single edge contribution?
Model answer
A single-edge calculation uses one light-cone circuit, while the full-graph energy sums contributions from all graph edges. The full calculation therefore requires more simulations.
Explanation
The tutorial builds the full loss by looping over edges, simulating each contribution, and accumulating the results.

Ask anything
We've read this whole study set, so questions about it get the best answers.