-
I'm trying to use PEC in pennylane, but it seems like it is not supported. Here is a basic demo:
{ File ~/.pyenv/versions/3.11-dev/lib/python3.11/inspect.py:2449, in _signature_from_callable(obj, follow_wrapper_chains, skip_bound_arg, globals, locals, eval_str, sigcls) TypeError: <QuantumTape: wires=[0, 1, 2, 3], params=4> is not a callable object The above exception was the direct cause of the following exception: TypeError Traceback (most recent call last) File ~/Downloads/Algorithm-Research/Student-Hub/Indy-Ng/.venv/lib/python3.11/site-packages/mitiq/executor/executor.py:78, in Executor.init(self, executor, max_batch_size) File ~/.pyenv/versions/3.11-dev/lib/python3.11/inspect.py:1379, in getfullargspec(func) TypeError: unsupported callable"
Name: PennyLane Platform info: macOS-12.6-x86_64-i386-64bit
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
The Then call |
Beta Was this translation helpful? Give feedback.
hi @hametar0u, one thing to try is to make the noise strength of the representations closer to your actual noise strength.
Or, since this is a simulated example, you could try reducing the strength of the depolarizing noise, since the noisy result is far from the ideal result.
Given the large difference between noisy and ideal, it's also worth checking that you are comparing results of the same circuit.