haiqu.state_compression() to compress quantum circuits and improve performance on noisy quantum hardware.
For a 10-qubit adder circuit, state compression increases the likelihood of measuring the correct result from 7.7% to 88.8% (11.5x improvement). Combining state compression with noise mitigation delivers 99.7% success (13.0x improvement).
Having a bug or an issue?
Submit feedback
haiqu.state_compression()
What does it do? State compression shortens quantum circuits, improving performance on noisy quantum hardware. How do I use it? Pass a quantum circuit to haiqu.state_compression() to create a compression job, then retrieve results with job.result(). What are the options? Optional parameters include compression_level, fine_tuning, noise_profile, and approximation_level for advanced configuration. Which option do you recommend? Start with the default settings for most use cases. For parameter-specific exploration, see dedicated notebooks for compression_level and fine_tuning.
Initialize the benchmark
Import the necessary libraries, initialize the Haiqu SDK, and create an adder circuit to demonstrate state compression. The adder circuit adds two integers m and k.