Transpilation purpose

What does transpilation usually do in quantum computing?

A

Removes noise from the results after the circuit has been executed

B

Rewrites a circuit to match a target device's gate set and connectivity

C

Runs the circuit repeatedly and reports the most frequent bitstring

D

Simulates the circuit classically to predict its output distribution