You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
When I create a bell state using two qubits and use DumpRegister to dump one of the qubit states, there is nothing in the console. However, the documentation mentioned that If the given qubits are entangled with some other qubit and their state cannot be separated, it just reports that the qubits are entangled.
namespaceTEST{
open Microsoft.Quantum.Diagnostics;
open Microsoft.Quantum.Intrinsic;
open Microsoft.Quantum.Canon;@EntryPoint()
operation main(): Unit {usecontrol= Qubit();usetarget= Qubit();
H(control);
CNOT(control, target);
DumpRegister((),[target]);//nothing// DumpRegister((), [control, target]); will print correctly.//DompMachine(); will print correctly.
Reset(target);
Reset(control);}}
The program returns as:
Null value
ID: a173c47f-cdd8-ecec-cb67-6a14dde7d6df
Version Independent ID: 5616455f-7d15-ae7a-10ec-c0efaab75ce8
When I create a bell state using two qubits and use DumpRegister to dump one of the qubit states, there is nothing in the console. However, the documentation mentioned that If the given qubits are entangled with some other qubit and their state cannot be separated, it just reports that the qubits are entangled.
The program returns as:
Null value
The text was updated successfully, but these errors were encountered: