TwoQubitWeylDecomposition
class qiskit.synthesis.TwoQubitWeylDecomposition(unitary_matrix, *, fidelity=0.999999999, _unpickling=False)
Bases: object
Two-qubit Weyl decomposition.
Decompose two-qubit unitary
where
and we stay in the “Weyl Chamber”
This is an abstract factory class that instantiates itself as specialized subclasses based on the fidelity, such that the approximation error from specialization has an average gate fidelity at least as high as requested. The specialized subclasses have unique canonical representations thus avoiding problems of numerical stability.
Passing non-None fidelity to specializations is treated as an assertion, raising QiskitError if forcing the specialization is more approximate than asserted.
References
- Cross, A. W., Bishop, L. S., Sheldon, S., Nation, P. D. & Gambetta, J. M., Validating quantum computers using randomized model circuits, arXiv:1811.12926 [quant-ph]
- B. Kraus, J. I. Cirac, Optimal Creation of Entanglement Using a Two-Qubit Gate, arXiv:0011050 [quant-ph]
- B. Drury, P. J. Love, Constructive Quantum Shannon Decomposition from Cartan Involutions, arXiv:0806.4015 [quant-ph]
Parameters
- unitary_matrix (ndarray) – The unitary to decompose.
- fidelity – The target fidelity of the decomposed operation.
Attributes
a
タイプ: float
b
タイプ: float
c
タイプ: float
global_phase
タイプ: float
K1l
タイプ: ndarray
K2l
タイプ: ndarray
K1r
タイプ: ndarray
K2r
タイプ: ndarray
unitary_matrix
タイプ: ndarray
requested_fidelity
タイプ: float | None
calculated_fidelity
タイプ: float
Methods
actual_fidelity
actual_fidelity(**kwargs)
Calculates the actual fidelity of the decomposed circuit to the input unitary.
Return type
circuit
circuit(*, euler_basis=None, simplify=False, atol=1e-12)
Returns Weyl decomposition in circuit form.
Return type
from_bytes
classmethod from_bytes(bytes_in, *, requested_fidelity, **kwargs)
Decode bytes into TwoQubitWeylDecomposition.
Return type