diff --git a/src/Simulation/Core/Qubit.cs b/src/Simulation/Core/Qubit.cs index 3ed1d618dec..30997f5f8e7 100644 --- a/src/Simulation/Core/Qubit.cs +++ b/src/Simulation/Core/Qubit.cs @@ -1,10 +1,11 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using Newtonsoft.Json; namespace Microsoft.Quantum.Simulation.Core { @@ -36,9 +37,11 @@ public Qubit(int id) public int Id { get; private set; } [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [JsonIgnore] public virtual object Value => this; [DebuggerBrowsable(DebuggerBrowsableState.Never)] + [JsonIgnore] public virtual IEnumerable Qubits => new Qubit[] { this }; public override bool Equals(object obj)