Class QuantumCircuit

java.lang.Object
org.episteme.natural.physics.quantum.QuantumCircuit

public class QuantumCircuit extends Object
Simulates a quantum circuit composed of qubits and gates. *

Reference:
Dirac, P. A. M. (1930). The Principles of Quantum Mechanics. Oxford University Press.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • QuantumCircuit

      public QuantumCircuit(int numQubits)
  • Method Details

    • addGate

      public void addGate(QuantumGate gate, int... targetQubits)
      Adds a gate to the circuit.
      Parameters:
      gate - The quantum gate
      targetQubits - Indices of qubits to apply the gate to
    • run

      public BraKet run()
      Runs the circuit starting from the |0...0> state.
      Returns:
      Final state vector (Ket)