weylchamber package

Top-level package for weylchamber.

Submodules:

Summary

__all__ Classes:

WeylChamber

Class for plotting data in the Weyl Chamber

__all__ Functions:

F_PE

Evaluate the Perfect-Entangler Functional

J_T_LI

Calculate value of the local-invariants functional

bell_basis

Two-qubit Bell basis associated with the given canonical basis

c1c2c3

Calculate Weyl chamber coordinates \((c_1, c_2, c_3)\)

canonical_gate

Return the canonical gate for the given \((c_1, c_2, c_3)\)

closest_LI

Find the closest gate that has the given Weyl chamber coordinates

concurrence

Calculate the concurrence directly from the Weyl Chamber coordinates

from_magic

The inverse of to_magic()

g1g2g3

Calculate local invariants \((g_1, g_3, g_3)\)

g1g2g3_from_c1c2c3

Calculate local invariants from the Weyl chamber coordinates

gate

Two-qubit gate that maps basis to states

mapped_basis

Result of applying gate to basis

point_in_region

Check if \((c_1, c_2, c_3)\) are in the given region of the Weyl chamber

point_in_weyl_chamber

Check if the coordinates \((c_1, c_2, c_3)\) are inside the Weyl chamber

project_to_PE

Project onto the boundary surface of the perfect entanglers

random_gate

Return a random two-qubit gate

random_weyl_point

Return a random point \((c_1, c_2, c_3)\) in the Weyl chamber (units of π)

to_magic

Convert A from the canonical basis to the the “magic” Bell basis

weyl_region

Return the region of the Weyl chamber the given point is in.