Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions src/Simulation/Core/Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ public enum Pauli
/// <summary>
/// Pauli Identity operator. Corresponds to Q# constant <code>PauliI</code>.
/// </summary>
PauliI,
PauliI = 0,
/// <summary>
/// Pauli X operator. Corresponds to Q# constant <code>PauliX</code>.
/// </summary>
PauliX,
PauliX = 1,
/// <summary>
/// Pauli Y operator. Corresponds to Q# constant <code>PauliY</code>.
/// </summary>
PauliY,
PauliY = 3,
/// <summary>
/// Pauli Z operator. Corresponds to Q# constant <code>PauliZ</code>.
/// </summary>
PauliZ
PauliZ = 2
}

/// <summary>
Expand Down
8 changes: 4 additions & 4 deletions src/Simulation/Native/src/simulator/gates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ namespace Gates
/// a type for runtime basis specification
enum Basis
{
PauliI,
PauliX,
PauliY,
PauliZ
PauliI = 0,
PauliX = 1,
PauliY = 3,
PauliZ = 2
};

/// a general one qubit gate, storing the qubit number
Expand Down