Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Simulation/Core/Qubit.cs
Original file line number Diff line number Diff line change
@@ -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
{
Expand Down Expand Up @@ -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<Qubit> Qubits => new Qubit[] { this };

public override bool Equals(object obj)
Expand Down