Shots Backend
CuStateVecShotsBackend()
A pytket Backend using GeneralState to obtain shots.
Constructs a new cuStateVec backend object.
Source code in pytket/extensions/custatevec/backends/custatevec_backend.py
backend_info
property
Returns information on the backend.
process_circuit(circuit, n_shots=None, valid_check=True, **kwargs)
Submits circuits to the backend for running.
Source code in pytket/extensions/custatevec/backends/custatevec_backend.py
process_circuits(circuits, n_shots=None, valid_check=True, **kwargs)
Submits circuits to the backend for running and returns result handles.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
circuits
|
Sequence[Circuit]
|
List of circuits to be submitted. |
required |
n_shots
|
int | Sequence[int] | None
|
Number of shots for shot-based calculation. |
None
|
valid_check
|
bool
|
Whether to check for circuit correctness. |
True
|
Returns:
| Type | Description |
|---|---|
list[ResultHandle]
|
List of result handles for the submitted circuits. |
Source code in pytket/extensions/custatevec/backends/custatevec_backend.py
362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 | |