PrepareEntangledState operation

Warning

This documentation refers to the Classic QDK, which has been replaced by the Modern QDK.

Please see https://aka.ms/qdk.api for the API documentation for the Modern QDK.

Namespace: Microsoft.Quantum.Preparation

Package: Microsoft.Quantum.Standard

Pairwise entangles two qubit registers.

That is, given two registers, prepares the maximally entangled state $\frac{1}{\sqrt{2}} \left(\ket{00} + \ket{11} \right)$ between each pair of qubits on the respective registers, assuming that each register starts in the $\ket{0\cdots 0}$ state.

operation PrepareEntangledState (left : Qubit[], right : Qubit[]) : Unit is Adj + Ctl

Input

left : Qubit[]

A qubit array in the $\ket{0\cdots 0}$ state

right : Qubit[]

A qubit array in the $\ket{0\cdots 0}$ state

Output : Unit