Quantum Unitary Matching

Your goal is to match the target unitary transformation shown on the Bloch spheres.

Unitary Infidelity

0.00000

Target Unitary

Your Unitary

Best Match So Far

Infidelity: N/A

Sequence:

Apply Quantum Gates

Rotates 180° about the X-axis
Rotates 180° about the Y-axis
Rotates 180° about the Z-axis
Hadamard: Rotates around a tilted axis
Phase Gate: Rotates 90° about Z-axis
T Gate: Rotates 45° about Z-axis

Your Circuit's Gate Sequence

Action on |0⟩ State

Action on |1⟩ State

Target
Your Circuit

Instructions & Details

Your goal is to match the target unitary transformation. Apply quantum gates to create a circuit that gets as close as possible to the target's action on the |0⟩ and |1⟩ states.

The Bloch spheres show the result: the green vector is the target and the white vector is your circuit's state. Drag the spheres to view them from different angles.

The Unitary Infidelity score (lower is better, 0.0 is a perfect match) is calculated using the formula:

1 - |Tr(Utarget† · Ucircuit) / 2|2