Beispiel #1
0
            private QVoid DumpUnitaryFromChoiState(QuantumSimulator simulator, IQArray <Qubit> reference, IQArray <Qubit> target)
            {
                var arrayDumper = new ArrayDumper(simulator);

                arrayDumper.Dump(new QArray <Qubit>(reference.Concat(target)));
                Simulator?.MaybeDisplayDiagnostic(
                    new DisplayableUnitaryOperator
                {
                    Data   = arrayDumper.Data,
                    Qubits = target.ToList()
                }
                    );
                return(QVoid.Instance);
            }