Hands-on lab · 1 step
Train a hardware-efficient ansatz to GHZ
The circuit is a fixed hardware-efficient ansatz on qubits with layers: in each layer every qubit gets then , followed by the CNOT ladder , . All angles start at , where the circuit outputs . Choose angle values so that the output is the GHZ state , using the identity-at-zero and basis-state tracking arguments of the lesson.
Step 1: Reach the GHZ state with the HEA template
The circuit structure is locked: you may only change the values of the trainable parameters. The parameter named is the angle of layer on qubit , with for the rotation and for the rotation. Layer is so in time order: then on each qubit, then , then . The circuit is applied to , with and qubit the leftmost (most significant) bit.
Set the parameters so that the output state is The grader requires the fidelity . A single non-zero angle suffices.