Workbench¶
Using Workbench
Workbench is accessed through QDE (Quantum Development Environment). See the QDE documentation for details on getting started.
Workbench is PsiQuantum's quantum programming interface, providing an intuitive Python-based environment for writing and executing quantum programs. It combines powerful simulation capabilities with a straightforward programming model.
Key Features¶
- Zero-install browser-based interface through Construct
- Local installation option with optimized multi-threaded C++ core
- Intuitive Python syntax for quantum operations
- Comprehensive set of elementary qubit operations
- Built-in circuit visualization
- Modular and extensible architecture
Simulation Capabilities¶
Workbench provides multiple simulation engines:
- Browser-based Frontend: Supports up to 28 qubits for light exploration
- Filter Pipeline: Modular components for QPU instruction handling
- Optimized Backend: Supports up to 41 qubits on remote hardware
Example Usage¶
from psiqworkbench import QPU, QInt
# Initialize QPU with 7 qubits. Note: ancilla qubit needed for addSquared.
qc = QPU()
qc.reset(7)
# Create quantum integers
a = QInt(4, 'a', qpu=qc)
b = QInt(2, 'b', qpu=qc)
# Initialize and manipulate
a.write(0)
b.write(0)
b.had()
# Perform quantum arithmetic
a.addSquared(b)
Integration with Construct¶
Workbench is deeply integrated with the Construct platform:
- Direct access through QDE
- Seamless interaction with Circuit Designer
- Resource estimation via QRE Engine
- Built-in version control
For complete documentation on using Workbench, including tutorials and advanced features, visit our Workbench Documentation Portal.
Note
While Workbench currently operates as a simulator, its API is designed to be compatible with future PsiQuantum hardware.