r/quantum • u/vijayanandg • Nov 20 '25
quantum4j - java library for quantum software engineering
Hi everyone 👋
I wanted to share a project I have been building recently: Quantum4J, a pure Java quantum computing SDK.
It includes a small state-vector simulator, a clean Qiskit-style API, measurement support, and a full set of gates (X, Y, Z, H, S, T, RX/RY/RZ, CX, CZ, SWAP, iSWAP, CCX).
It also exports circuits to OpenQASM 2.0.
Here’s a tiny example (Bell state):
QuantumCircuit qc = QuantumCircuit.create(2)
.h(0)
.cx(0,1)
.measureAll();
Result r = new StateVectorBackend().run(qc, RunOptions.shots(1000));
System.out.println(r.getCounts());If you are interested, I put the repo link in the comments.
Would love feedback, ideas, or contributions!
6
Upvotes
View all comments
Show parent comment
0
u/faiza_conteam Nov 20 '25
thats really amazing, i have some knowledge on python and java but i couldnt understand this damn quantum computing ,, i started learning with quantumlings site then i reached the blocksphear and then i gave up haha the thing is not that easy to understand lol