SpinCircuitSolver.preprocess_circuit

SpinCircuitSolver.preprocess_circuit(circuit)[source]

Compute the Hilbert space dimension of the given quantum circuit as \((2S+1)^N\) where \(S\) is the length of the spin and \(N\) is the number of spins in the quantum circuit.

Parameters:

circuit (QuantumCircuit) – The circuit to pre-process.