Class QuantumCircuit
java.lang.Object
org.episteme.natural.physics.quantum.QuantumCircuit
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGate(QuantumGate gate, int... targetQubits) Adds a gate to the circuit.run()Runs the circuit starting from the |0...0> state.
-
Constructor Details
-
QuantumCircuit
public QuantumCircuit(int numQubits)
-
-
Method Details
-
addGate
Adds a gate to the circuit.- Parameters:
gate- The quantum gatetargetQubits- Indices of qubits to apply the gate to
-
run
Runs the circuit starting from the |0...0> state.- Returns:
- Final state vector (Ket)
-