qat.quops
This module regroups classes and functions to create and manipulate quantum channels, also called quantum operations, quantum maps or quantum process. They describe the generalized dynamics of quantum systems when coupled to an external environment.
Quantum Channels
Here are classes related to describing a generic quantum channel.
Identifiers for quantum channel representations |
|
Applies noise channel based on gate time |
|
Abstract class for parametric quantum channels |
|
Abstract class for quantum channels |
|
Quantum channel in the chi matrix representation |
|
Quantum channel in the Choi-Jamiolkowski representation |
|
Quantum channel in the Kraus representation |
|
Quantum channel in the Pauli Transfer Matrix (PTM) representation |
All quantum channels derive from the abstract class QuantumChannel
.
Different representations are available: namely Kraus operators, Pauli Transfer Matrix (PTM), Choi-Jamiolkowski mapping and \(\chi\)-matrix.
They can be converted into one another through dedicated methods, for example to_chi()
.
Channels that depend on a parameter, for instance a duration that represents the exposition time to an environment, are called parametric quantum channels and derive from ParametricQuantumChannel
.
The following functions allows to check for important properties of a QuantumChannel
.
Be aware that they are not defined for all representations.
Check if a channel is completely positive |
|
Check if a channel is trace preserving |
|
Check if a channel is trace reducing |
|
Check if a channel is unital |
Predefined quantum channels
The following commonly used channels are already defined in Qaptiva:
Quantum channel for depolarizing noise (alternative) |
|
Quantum channel for depolarizing noise |
|
Quantum channel for generalized amplitude damping noise |
|
Parametric quantum channel for amplitude damping noise |
|
Parametric quantum channel for pure dephasing noise |
Metrics
qat.quops.metrics
regroups functions related to metrics of the space of density matrices and of the space of quantum maps (also called processes in this context), i.e. distances, norms and fidelities.
Average process fidelity between two quantum channels |
|
Diamond norm of a quantum channel |
|
Entanglement process fidelity between two quantum channels |
|
Trace distance between Choi representations of two quantum channels |
|
Fidelity between two states |
|
Trace distance between two density matrices |
Operator basis
The \(\chi\)-matrix representation depends on the choice of operator basis. Here are functions to define such basis.
Convert matrix from canonical to Pauli |
|
Convert matrix from Pauli to canonical |
|
Pauli matrix basis |
|
Canonical matrix basis |
|
Canonical vector basis |
Mathematical utilities
Some useful functions related to the manipulation of quantum channels.
Check equality of states up to a global phase |
|
Kronecker product of a list of matrices |
|
Partial trace of a matrix |